Link to home
Create AccountLog in
Avatar of susnewyork
susnewyorkFlag for United States of America

asked on

Http Error 500 when executing a .php file

Hi, i am receiving a error 500 when i run a .php file. I am completely knew to php but familiar with IIS, i am running version 6 for IIS and 5.2 for PHP. Im assuming the problem is with a php extension, but i have added the php5isapi.dll to the mapping extension for the site and still no luck. I am not using CGI and have allowed the php5isapi.dll in the web service extension list as well. Actually i followed these exact steps in this link: http://peterguy.com/php/install_IIS6.html

Please let me know what you would need from me to help me out, i've spent a lot of time on this and im stuck at the moment.
Thanks
Avatar of Ken Fayal
Ken Fayal
Flag of United States of America image

500 is a server error.  You probably already knew that.  First try to put a simple HTML file and see if you get the error.  Then write a simple line of PHP code and see if you get the error.  What you are trying to do is isolate whether it's the server configuration or if it is just a bad line of code that is causing it.
Avatar of susnewyork

ASKER

Ok, i didnt get the error when i applied a small "hello world" html document. The error still comes up under a .php extension though. My enviornment variable points to "E:\PHP" where the install is along with other .dll files. Any other thoughts?.

Thanks
Actually i just fixed it, i had pointed my "Doc_Root" to the wrong directory in php.ini i also had to redirect the path within the site in IIS under properties-home directory.
ASKER CERTIFIED SOLUTION
Avatar of Ken Fayal
Ken Fayal
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account