ishfady Posted December 3, 2009 Share Posted December 3, 2009 Hi I have windows XP on my intel pc. I have installed Apache2.2 and it work fine. Then I installed PHP 5.3.1. When I start apache, I get following error Syntax error on line 128 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Invalid command 'PHPIniDir', perhaps misspelled or defined by a module not included in the server configuration I don't under this error. Please can someone help to sort this problem. Many thank Quote Link to comment Share on other sites More sharing options...
trq Posted December 3, 2009 Share Posted December 3, 2009 its pretty straight forward. The directive PHPIniDir does not belong within the httpd.conf file. Quote Link to comment Share on other sites More sharing options...
ishfady Posted December 3, 2009 Author Share Posted December 3, 2009 thank mate So do I have remove PHPIniDir from httpd.conf. Now I only have this #PHPIniDir "C:/Program Files/PHP/" LoadFile "C:/Program Files/php/php5ts.dll" LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" But I still can't start apache with this two entry in httpd.conf I am not getting any error. Only popup windows with message "The Requested Operation has Fail" Please someone help. cheers Quote Link to comment Share on other sites More sharing options...
trq Posted December 3, 2009 Share Posted December 3, 2009 So do I have remove PHPIniDir from httpd.conf Yes. You need to setup a windows environment variable called PHPRC which point to the directory your ini is in. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.