Jump to content

Question about httpd conf


cwhite

Recommended Posts

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?

Link to comment
Share on other sites

(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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.