cwhite Posted December 20, 2007 Share Posted December 20, 2007 Hi! I need to install apache and was told that PHPIniDir needs to be set. I downloaded apache_2.2.6-win32-x86-no_ssl.msi. However when I install apache, the httpd conf is different from what I was given as a sample and what I see as examples on the internet. There's no "Section 1: Global Environment" where the PHPIniDir is supposed to be set. Can someone tell me a possible reason why? Quote Link to comment Share on other sites More sharing options...
cwhite Posted December 20, 2007 Author Share Posted December 20, 2007 (where is the edit button?) It seems that installing PHP will automatically add PHPIniDir to httpd.conf. Does anyone know how to silent install PHP so it does that? I don't know what the parameter name for that would be. It should have this format: msiexec /i apache_2.2.6-win32-x86-no_ssl.msi /passive ALLUSERS=1 Quote Link to comment Share on other sites More sharing options...
trq Posted December 20, 2007 Share Posted December 20, 2007 Sorry, I'm not a windows user and can't help you out with a silent install (ive no idea what you mean) of php. However, the Section 1: Global Environment that your talking about within the httpd.conf file simply means anywhere within the file that is not within a <directive>. PHP should itself set up a default location for the php.ini file, but if you wish to change this globally using PHPIniDir, just put it on the first line. Ive no idea why your httpd.conf file is not commented, are you sure that is the file apache is using for its configuration? On my Debian setup for instance, the main configuration file is /etc/apache/apache2.conf while user customised directive go within /etc/apache/httpd.conf (which is empty by default). 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.