reina Posted January 19, 2009 Share Posted January 19, 2009 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? Quote Link to comment Share on other sites More sharing options...
trq Posted January 19, 2009 Share Posted January 19, 2009 The location of your default configuration is set during compile time however this can be overiden at httpd startup. Id suggest taking a look at the boot script. Quote Link to comment Share on other sites More sharing options...
reina Posted January 19, 2009 Author Share Posted January 19, 2009 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. Quote Link to comment Share on other sites More sharing options...
trq Posted January 19, 2009 Share Posted January 19, 2009 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? 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.