- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to start Apache server by define user
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2003 09:48 PM
08-18-2003 09:48 PM
How to start Apache server by define user
I have modified the httpd.conf contain for user & group as: user webuser, group webuser.
I have also chown -R webuser for the whole apache directory and files.
Still, when I login as webuser and type:apachectl start, the apache will come out error message like:make_socke error... for 127.0.0.1 ...
The only way to start up web server is I login as root and start up the webserver. Of course the PID 1 for apache server belong to root. Then the child process for apache server are belong the user 'webuser'. How do i start up httpd server by user instead of 'ROOT' ?
Your advice is appreciate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2003 10:11 PM
08-18-2003 10:11 PM
Re: How to start Apache server by define user
Apache needs to be started first with root rights. It's necessary for it to achieve peoxesses privileges, and then su to your webuser.
Once this su is done, the initial process uid 0 is killed, so there is no root apache running when the daemon is running.
The message you get indicates that : httpd tries to create an initial socket, which only root can create : webuser can't and process stops...
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 01:49 PM
08-22-2003 01:49 PM
Re: How to start Apache server by define user
User
Group
Change them to the user/group (webuser/?) you have chowned the apache directory and them restart apache.
It's not neccessary to log on as the "Apache user", as it's been already said.
HTH
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 10:30 PM
08-22-2003 10:30 PM
Re: How to start Apache server by define user
On what Port does the Apache run ? If it's the default on 80 then it has to run as root. If you want to run completely as Webuser you have to put it on a Port +1024.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 11:14 PM
08-22-2003 11:14 PM
Re: How to start Apache server by define user
But don't forget that a first launch, Apache starts at uid 0 to set up all connection opening, then this process called 'father process' makes up children, which are the real apache processes, opened under apache user or webuser, whatever you want to call it... It's clear that apache user is well know, and using another one can sound a good idea. But remember that webuser is the 'alternative example' used in most apache tuts... so maybe choosing another one would be a better idea...
:]] paranoid, I know, but better paranoid than hacked down...
J