I'm about to tear my hair out because the wierd behavior iis is doing!
So i just reinstalled the 2003 server wit a fresh copy and IIS does not show the index page, instead it give a "404 error page or folder cannot be found" or "The page cannot be displayed You have attempted to execute a CGI, ISAPI, or other executable
program from a directory that does not allow programs to be executed."
The wierd part this is thats it just a plain html static files that is served. So no php, asp or something that would need some execute permissions.
So if i write: http://domain.com - iss serves you with an error message like the ones meantioned.
However... if i write domain.com/index.html or another file it works great!
Aslo - if I change the asp version from lets say 1 to 4 or to 2 and restart IIS it works agains for a while and then reverts to the error message.
It is just the default document that does not get served by IIS.
I've been googling for hours for a possible answer to this wierd issue.
b) What's the HTTP log file entry for the request that fails (you appear to have at least two different errors, so I assume two different types of requests are being made)
c) Have you made any changes to IIS at all? i.e. added any content, or changed any settings?
as you see the request is for a php page that does not exsist - I have acctualy now (to test) installed php and http://www.helicontech.com/isapi_rewrite/ to see if it maked any difference. But nope - same issue. In config I have removed all default docs except for the index.html
Aslo If I reguest for the other static pages - they load fine.
Here is the tml code used in the index.hrml page, (its just a default "under construction page)":
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta property="fb:app_id" content="222804381183470" />
<title>Forex website coming Soon, tools for forex traders</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="/tools/style.css" rel="stylesheet" type="text/css" />
<link href="/tools/960.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/Clarendon_LT_Std_700.font.js"></script>
<script type="text/javascript">
Cufon.replace('h1,h3', {fontFamily: 'Clarendon LT Std', hover:true})
</script>
</head>
<body>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33131240-1']);
_gaq.push(['_setDomainName', 'domain-example.com.eu']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<div id="shim"></div>
<div id="content">
<div class="logo_box"><img src="/pics/fxlogo/logo.png" alt="domain-example.com, market data, charts" longdesc="http://www.domain-example.com.eu" /></div>
<div class="main_box">
<h2>Currency trading is our passion!<br/><span>we are building this website to you, to share out love.<br />It's gonna be really awesome and candystickelly delicious!.<br />Just like our logo. You just wanna to take a bite, mmm!<br> We promise!<br />In the mean time connect with us with the information below.</span></h2>
<ul class="info">
<li>
<h3>Contact domain-example.com</h3>
<p><a href="mailto:%66xtr%61ding@%66%6Fre%78%77%61%72r%69o%72.eu"><img src="pics/png/mail.png" border="0" /></a></a>
</li>
<li>
<h3>On the social web</h3>
<p class="social">
<a href="https://twitter.com/Forex_warrior" target="_blank" class="tw"></a>
<a href="http://facebook.com/forextradinginfo" target="_blank" class="fb"></a>
<a href="#" class="li"></a> </p>
</li>
<li>
<h3>Location</h3>
<p>domain-example.com<br/>www.domain-example.com.eu, Sweden</p>
</li>
</ul>
</div>
</div>
</body>
</html>
The page is just a template i downloaded from the internet, so I have not codedit my self.
However I do not think it is the html template that is causing this issue, since I have another website running with different html code in index.html and it is also experiencing the same issue.
If I reboot the IIS server with the run commands: net stop iisadmin/net start W3SVC the index pages start load fine for a limited amount of time and then revert back to the 403 error. This is very strange and I cannot seem to figure it out.
Thanks a lot Ken in advance for taking time to help me.
b) Can you please post just the relevant log file entries? I can't see any requests for index.html that are showing 403 errors, but I could have missed some. The requests for the PHP file
appear to mostly be from bots (like Google, Baidu etc). These are search engines crawling your site. In any case, I don't see the relevance to the issue at hand.
Please make some requests to the index.html file, whilst you are experiencing the issue, and post the corresponding IIS logfile entries. At the same time, look in the Windows Event Log to see what is being logged there.
A) Well no its clean as a whistle -I cannot find anything related
B) there is not many logs at and they are small - only like or week or so becuase I reinstalled the system - If its ok with you - I could zip them mail them? - they are not large since I do not have much traffic at all for the moment.
B) there is not many logs at and they are small - only like or week or so becuase I reinstalled the system - If its ok with you - I could zip them mail them?
No thanks. You're basically saying that your time is more valuable than mine, and are asking that I work for free to solve your issue that you're unwilling to invest the necessary time into.
You say that you are getting a 403 when you request index.html. It should be trivial for you to request such a page, verify that you are getting a 403, and then get the corresponding log file entry out of your IIS log file. Especially since you claim to
have little traffic.
From the log file entries that I can see above, the only 403s you are getting are for index.php, and those are "execute denied" errors (403.1). The index.html files all have a 200 (OK) status code.
Additionally, you state that you are getting 404 errors when requesting
http://domain.com - I can find no 404 errors in the log file you have extracted above.
No thanks. You're basically saying that your time is more valuable than mine, and are asking that I work for free to solve your issue that you're unwilling to invest the necessary time into.
I'm really sorry about that - I did not mean it like that and I am very sorry that you took it that way and it was not my intention in anyway. If you have wanted some $$ for reading them you could just have told me, I would have had no problem
with that. The reason that I asked is that I am not a super duper tech person so I have a very hard-time to read the logs. I understand some of it but not all. I usally know how to get computers to do what I want, with a little help from our mutal friend google,
but this is little out of my scope. I was not trying to take some kind of short cut. Again I am very sorry and I hope that I have not offended you in any way. I do really respect your time and I do really appreciate that you have taken some you personal
time to help me.
Anyway - you are right - the 403.1 is the most common and is the one I see almost all of the time where the broswer states that you have treid to exeicute a cgi or something and you do not have acceess to it. That is the one! I do not know ho w get rid
of it. I try to dig into the logs again and see if I can find anything more. Hopefully there is more generated now of logfiles as the days have passed. (since the system is new)
Anyway - you are right - the 403.1 is the most common and is the one I see almost all of the time where the broswer states that you have treid to exeicute a cgi or something and you do not have acceess to it.
From the log files you have posted, these are entirely for PHP files. You need to configure PHP correctly (either as a CGI, or as an ISAPI).
If you can post what version of PHP you are trying to use, what steps you have taken to configure it and what result you are seeing, then we can assist.
However, it would really help if you can be precise with what symptoms you are seeing, when they occuring and what you have done. As stated, I can't see any errors for index.html files, nor any 404 (File Not Found) errors. Yet this is what your first post
was about - nothing to do with PHP at all.
If you have wanted some $$ for reading them you could just have told me,
I don't want $$ - I just want you to solve your own problem, because that will result in you understanding why and how the problem is occuring, and allow you to avoid this (and similar) problems in the future. If you just hand this off to me, then you're
basically saying you're not willing to figure this out yourself, and by implication, not willing to educate yourself about the system that you're responsible for.
angrywarrior
The reason that I asked is that I am not a super duper tech person so I have a very hard-time to read the logs.
The following blog post may help in working out where the HTTP status and substatus code are:
The fields that begin with "s-" are server fields (e.g. s-ip = server IP address) and the fields that begin with "c-" are client fields (e.g. c-ip is the client's IP address). The HTTP status and HTTP substatus codes are stored in the field sc-status and
sc-substatus
(cs- are client-> server fields, e.g. cs-method is the HTTP method that the client used to make the request to the server, cs-uri-stem is the URL that was requested by the client from the server. sc- are server->client fields, e.g. sc-bytes is the number
of bytes transferred from the server to the client)
But I wanted to test things out.. Just like you said to me that you wanted me to learn.. :-)
It seems that ASP is causing this annoying behavior - when I removed/not allowing ASP to work on the server the everything works smoothly . It seem like asp and php/wordpress are not best friends - maybe its the rewrite that crashes with ASP (I use the
http://www.helicontech.com/isapi_rewrite/), i do not know....
But the fact is that everything works fine until I enable ASP.. then the hell begins with index.xxx pages is not being fetched and you get different types of 40X errors. I cannot however figure out on how to solve it. I guess I have to setup an other machine
for doing my asp redirects for my domains. .
41 Posts
This is driving me nuts!
Mar 14, 2013 08:54 PM|angrywarrior|LINK
I'm about to tear my hair out because the wierd behavior iis is doing!
So i just reinstalled the 2003 server wit a fresh copy and IIS does not show the index page, instead it give a "404 error page or folder cannot be found" or "The page cannot be displayed You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed."
The wierd part this is thats it just a plain html static files that is served. So no php, asp or something that would need some execute permissions.
So if i write: http://domain.com - iss serves you with an error message like the ones meantioned.
However... if i write domain.com/index.html or another file it works great!
Aslo - if I change the asp version from lets say 1 to 4 or to 2 and restart IIS it works agains for a while and then reverts to the error message.
It is just the default document that does not get served by IIS.
I've been googling for hours for a possible answer to this wierd issue.
Any ideas?
Thanks Daniel
1767 Posts
Moderator
Re: This is driving me nuts!
Mar 15, 2013 12:07 AM|Ken Schaefer|LINK
a) Anything in the Windows Event Logs?
b) What's the HTTP log file entry for the request that fails (you appear to have at least two different errors, so I assume two different types of requests are being made)
c) Have you made any changes to IIS at all? i.e. added any content, or changed any settings?
41 Posts
Re: This is driving me nuts!
Mar 15, 2013 06:08 PM|angrywarrior|LINK
Thank you Ken for taking time to reply to me!
om A) and B) Let me check it and I will come with an answer..
To C) No - just installed the whole server 6 days ago - no changes made to IIS except for adding the default document "index.html".
41 Posts
Re: This is driving me nuts!
Mar 19, 2013 12:50 PM|angrywarrior|LINK
Sorry for the delay, been a little busy.. :-)
I have check the log and excerpt here:
as you see the request is for a php page that does not exsist - I have acctualy now (to test) installed php and http://www.helicontech.com/isapi_rewrite/ to see if it maked any difference. But nope - same issue. In config I have removed all default docs except for the index.html
Aslo If I reguest for the other static pages - they load fine.
Here is the tml code used in the index.hrml page, (its just a default "under construction page)":
The page is just a template i downloaded from the internet, so I have not codedit my self.
However I do not think it is the html template that is causing this issue, since I have another website running with different html code in index.html and it is also experiencing the same issue.
If I reboot the IIS server with the run commands: net stop iisadmin/net start W3SVC the index pages start load fine for a limited amount of time and then revert back to the 403 error. This is very strange and I cannot seem to figure it out.
Thanks a lot Ken in advance for taking time to help me.
All the best.
Daniel
1767 Posts
Moderator
Re: This is driving me nuts!
Mar 19, 2013 10:56 PM|Ken Schaefer|LINK
Hi,
a) Is there anything in the Windows Event Log?
b) Can you please post just the relevant log file entries? I can't see any requests for index.html that are showing 403 errors, but I could have missed some. The requests for the PHP file appear to mostly be from bots (like Google, Baidu etc). These are search engines crawling your site. In any case, I don't see the relevance to the issue at hand.
Please make some requests to the index.html file, whilst you are experiencing the issue, and post the corresponding IIS logfile entries. At the same time, look in the Windows Event Log to see what is being logged there.
41 Posts
Re: This is driving me nuts!
Mar 19, 2013 11:47 PM|angrywarrior|LINK
Hi Ken,
A) Well no its clean as a whistle -I cannot find anything related
B) there is not many logs at and they are small - only like or week or so becuase I reinstalled the system - If its ok with you - I could zip them mail them? - they are not large since I do not have much traffic at all for the moment.
Is that ok?
Thanks.
1767 Posts
Moderator
Re: This is driving me nuts!
Mar 20, 2013 07:26 PM|Ken Schaefer|LINK
No thanks. You're basically saying that your time is more valuable than mine, and are asking that I work for free to solve your issue that you're unwilling to invest the necessary time into.
You say that you are getting a 403 when you request index.html. It should be trivial for you to request such a page, verify that you are getting a 403, and then get the corresponding log file entry out of your IIS log file. Especially since you claim to have little traffic.
From the log file entries that I can see above, the only 403s you are getting are for index.php, and those are "execute denied" errors (403.1). The index.html files all have a 200 (OK) status code.
Additionally, you state that you are getting 404 errors when requesting http://domain.com - I can find no 404 errors in the log file you have extracted above.
41 Posts
Re: This is driving me nuts!
Mar 20, 2013 08:33 PM|angrywarrior|LINK
I'm really sorry about that - I did not mean it like that and I am very sorry that you took it that way and it was not my intention in anyway. If you have wanted some $$ for reading them you could just have told me, I would have had no problem with that. The reason that I asked is that I am not a super duper tech person so I have a very hard-time to read the logs. I understand some of it but not all. I usally know how to get computers to do what I want, with a little help from our mutal friend google, but this is little out of my scope. I was not trying to take some kind of short cut. Again I am very sorry and I hope that I have not offended you in any way. I do really respect your time and I do really appreciate that you have taken some you personal time to help me.
41 Posts
Re: This is driving me nuts!
Mar 20, 2013 08:45 PM|angrywarrior|LINK
Anyway - you are right - the 403.1 is the most common and is the one I see almost all of the time where the broswer states that you have treid to exeicute a cgi or something and you do not have acceess to it. That is the one! I do not know ho w get rid of it. I try to dig into the logs again and see if I can find anything more. Hopefully there is more generated now of logfiles as the days have passed. (since the system is new)
All the best
Daniel
1767 Posts
Moderator
Re: This is driving me nuts!
Mar 20, 2013 09:41 PM|Ken Schaefer|LINK
From the log files you have posted, these are entirely for PHP files. You need to configure PHP correctly (either as a CGI, or as an ISAPI).
If you can post what version of PHP you are trying to use, what steps you have taken to configure it and what result you are seeing, then we can assist.
However, it would really help if you can be precise with what symptoms you are seeing, when they occuring and what you have done. As stated, I can't see any errors for index.html files, nor any 404 (File Not Found) errors. Yet this is what your first post was about - nothing to do with PHP at all.
1767 Posts
Moderator
Re: This is driving me nuts!
Mar 20, 2013 09:50 PM|Ken Schaefer|LINK
I don't want $$ - I just want you to solve your own problem, because that will result in you understanding why and how the problem is occuring, and allow you to avoid this (and similar) problems in the future. If you just hand this off to me, then you're basically saying you're not willing to figure this out yourself, and by implication, not willing to educate yourself about the system that you're responsible for.
The following blog post may help in working out where the HTTP status and substatus code are:
http://blogs.iis.net/ma_khan/archive/2008/06/21/troubleshooting-iis-6-status-and-substatus-codes.aspx
In the log file this line tells you what fields are being logged:
#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
The fields that begin with "s-" are server fields (e.g. s-ip = server IP address) and the fields that begin with "c-" are client fields (e.g. c-ip is the client's IP address). The HTTP status and HTTP substatus codes are stored in the field sc-status and sc-substatus
(cs- are client-> server fields, e.g. cs-method is the HTTP method that the client used to make the request to the server, cs-uri-stem is the URL that was requested by the client from the server. sc- are server->client fields, e.g. sc-bytes is the number of bytes transferred from the server to the client)
41 Posts
Re: This is driving me nuts!
Apr 27, 2013 10:15 AM|angrywarrior|LINK
Hi Ken!
So, sorry for the long time to respond..
But I wanted to test things out.. Just like you said to me that you wanted me to learn.. :-)
It seems that ASP is causing this annoying behavior - when I removed/not allowing ASP to work on the server the everything works smoothly . It seem like asp and php/wordpress are not best friends - maybe its the rewrite that crashes with ASP (I use the http://www.helicontech.com/isapi_rewrite/), i do not know....
But the fact is that everything works fine until I enable ASP.. then the hell begins with index.xxx pages is not being fetched and you get different types of 40X errors. I cannot however figure out on how to solve it. I guess I have to setup an other machine for doing my asp redirects for my domains. .
Thanks, have a fab day!
All the best.
Daniel
asp index php windows 2003 server iis6