Jump to content

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?

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.