Jump to content

[SOLVED] Running apachectl from non-root?


Dragoa

Recommended Posts

Hi,

 

I'm currently very new to using Apache and PHP and have gotten a fairly successful install of Apache2 and php 5.2.6 on my HP-UX 11 box. Although up until now I've been using root to start and stop the webserver, which is bad, and I'd like to remedy this by running it as my basic login[Lets call it user1].

 

As of right now whenever I try to ./apachectl start, everything works as normal, no errors, except the server doesn't start(When I try to connect to the web server it says it cannot access it).

 

Any tutorials(preferably ones that don't abuse shorthand/variables names since I find them quite hard to use) or help would be greatly appreciated.

 

Thanks.

It is quite normal to only be able to start/stop apache as root, it doesn't actually run as root but switches to the account specified within your httpd.conf file.

 

if you would like to be able to start apache from your normal user account, look into sudo.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.