Jump to content

How to let Apache know which httpd.conf to be used


reina

Recommended Posts

We have apache installed at RedHat Linux. It was installed at a directory other than the default location. There are two httpd.conf files on the server, one at the apache installation directory, and the other one is the default one at /etc/httpd/conf. The apache ran very well with the customized httpd.conf before, but after I installed php 5, the server seems taking the default httpd.conf and doesn't display the html pages which are installed at our apache directory. How to let the server know not to use the default httpd.conf and use the customized one instead?

Which script should I take a look at? I am a newbie to Linux and apache. I didn't recompile apache when installing php 5. Did it change the option when compiling php 5? The server worked fine with the customized httpd.conf before I installed php 5. There were two httpd.conf files and the server seemed knowing which one to use before php 5 is installed.

Did you actually compile apache and php or where they installed via rpm's? Installing php shouldn't effect the apache install excepting maybe some adjustments to the default configuration files.

 

I'm not a RH user so I'm not exactly sure how the apache/php configurations are layed out. If your only new to Linux though, looking at the boot script (within /etc/init.d) is likely only going to confuse you more.

 

Have you tried saving a backup of the current configuration file then copying the one you wish to use into its location?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.