Forum Moderators: phranque

Message Too Old, No Replies

Starting Apache2 automatically

         

sjaaq

12:49 pm on Jul 21, 2005 (gmt 0)

10+ Year Member



Hi,

I have a system with RedHat9, it came with an old version of Apache, which I removed.
I installed apache-2.0.54 without any problems, also I can start it up manually with the command:
/usr/local/apache2/bin/apachectl start
However I always used "redhat-config-services" to start or stop a service, in this case I get an error something like:
Starting httpd: grep: /etc/httpd/conf/httpd.conf: No such file or directory...
I know that apache used to be installed by default in this directory, but is there a workaround to start it up automatically anyway?

thnx a lot in advance!

ChadSEO

3:58 pm on Jul 21, 2005 (gmt 0)

10+ Year Member



Hmm, let's see if I can remember how to do this. First see if the file /etc/rc.d/init.d/httpd exists. If so, remove it (or just move it out of the way). Then you can link your new apache to that old file location using:

ln -s /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd

Then your "redhat-config-services" should work on apache again.

sjaaq

4:44 pm on Jul 21, 2005 (gmt 0)

10+ Year Member



Thnx a lot it works :)