Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing Apache 2

Status
Not open for further replies.
Jul 16, 2004
153
Hello all,
I have a real simple question on some problems I am having after I have installed apache.

I have a Red Hat Fedora 3 box I just recently installed as a web server for Big Brother Network monitoring. I have installed Apache 2 with no problem. The issue is that when I log in as root, the server will start with no problem, but when I log in as a user, the server will not start, I try and manually start the service with "apachectl start" but I get the following error: "command not found", I even tried going in as "SU" but with no luck.

My question is there a way to either:
1. Allow my user to start apache.
2. Make Apache start automaticly when the computer starts up even with a user other than root logs on.

Thanks

Mel
 
As a good general rule, users have no need to start and stop services on the server. In fact, Linux by default will not allow a non-root user to start any service that binds to port numbers 1024 and below.


Since I compile Apache from source, I just add:

/usr/sbin/apachectl start

to the end of /etc/rc.d/rc.local




Want the best answers? Ask the best questions!

TANSTAAFL!!
 
You should try the whole path when you want to start a service like this.
Code:
[foo@foo /]# /usr/and/the/path/to/apache2/bin/apachectl start
If it doesn't work, try to to place a link to the apachectl program in the start-up folder
Code:
[root@foo /]# ln -s /usr/local/apache/bin/apachectl /etc/rc.d/init.d/apache


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top