Thursday, July 30, 2009

How do i get Apache and PHP Running?

I have installed Apache web server and PHP 5. When I start Apache i get this error message, Syntax error on line 999 of c:/program files/apache group/apache/conf/httpd.conf


:


Invalid command 'PHPIniDir' , perhaps mis-spelled or defined by a module not included in the server configuration


I have no idea what this means. Can anyone point me in the right direction to get Apache and PHP running on my comp because I have PHP homework to do and I cannot get it to run.

How do i get Apache and PHP Running?
The PHPIniDir is a variable that tells Apache where the php.exe file is located. On my computer, it is set to "C:/Program Files/PHP/".





To change this value, open the file httpd.conf in notepad and search for PHPIniDir. If you don't find this anywhere, add the line


PHPIniDir "C:/Program Files/PHP/"


Then, restart Apache.





If you are using Windows XP and it is still not working, try the tutorial at http://www.expertsrt.com/tutorials/Matt/...


It is very detailed and easy to understand.


No comments:

Post a Comment