PDA

Click to See Complete Forum and Search --> : /opt/web/bin/apachectl start without login as root


ade_ari_w0
Oct 29th, 2008, 06:37 AM
/opt/web/bin/apachectl start
without login as root or without sudo

on kubuntu 7.04
thank you.

penagate
Oct 29th, 2008, 06:45 AM
Do you have a question?

kfcSmitty
Oct 29th, 2008, 08:23 AM
I think the question is how to autostart apachectl.

The following should work:

1. copy apachectl from apache's /bin directory to /etc/init.d
2. sudo chmod +x /etc/init.d/apachectl
3. sudo update-rc.d apachectl defaults

visualAd
Oct 29th, 2008, 09:30 AM
If you want apache to run as a non root user then you should change the port is listens on to a number greater than 1024 and remove the user and group configuration options from httpd.conf.