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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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