Avatar of susnewyork
susnewyork
Flag 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
Web ServersScripting LanguagesWeb Applications

Avatar of undefined
Last Comment
Ken Fayal

8/22/2022 - Mon
Ken Fayal

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.
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
susnewyork

ASKER
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.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
Ken Fayal

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.