Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

running as user (apache 2.0.48, linux 2.4)

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Thanks Richard to the SSL Compile  
Author Message
nospam208

External


Since: Mar 22, 2004
Posts: 2



(Msg. 1) Posted: Mon Mar 22, 2004 7:12 pm
Post subject: running as user (apache 2.0.48, linux 2.4)
Archived from groups: alt>apache>configuration (more info?)

I have just set up a new user for apache and tried to run the httpd with
 > # apachectl start
and got this message:
 > (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no httpd was running at that time and when I rie running as root, all
was fine, but I couldn't stop apache with
 > # apachectl stop
as user, but as root. The user owns /usr/local/apache2 and has rw
permissions for all files/dirs and rwx for all in bin. What's the
problem? How can I fix it?
By the way, how do i start apache in boot time (mandrake linux 9.2,
kernel 2.4)?

Thomas<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: running as user (apache 2.0.48, linux 2.4) 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Mon Mar 22, 2004 7:12 pm
Post subject: Re: running as user (apache 2.0.48, linux 2.4) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thomas Jollans <nospam.DeleteThis@jollans.com> wrote:
  >> (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
 > no httpd was running at that time and when I rie running as root, all

To open a port < 1024 you need to be a privileged user, Apache runs
on port 80, so he require to start as root.

 > By the way, how do i start apache in boot time (mandrake linux 9.2,
 > kernel 2.4)?

Make a link from /etc/rc.d/rc3.d called S99apache to
/where/is/apache/bin/apachectl

Davide

--
| The IQ of the group is the lowest IQ of a member of the group divided
| by the number of people in the group.
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: running as user (apache 2.0.48, linux 2.4) 
Back to top
Login to vote
nospam208

External


Since: Mar 22, 2004
Posts: 2



(Msg. 3) Posted: Mon Mar 22, 2004 7:37 pm
Post subject: Re: running as user (apache 2.0.48, linux 2.4) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:
 > Thomas Jollans <nospam DeleteThis @jollans.com> wrote:
 >
   >>>(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
  >>
  >>no httpd was running at that time and when I rie running as root, all
 >
 >
 > To open a port < 1024 you need to be a privileged user, Apache runs
 > on port 80, so he require to start as root.
 >
How do i privilege a user?
 >
  >>By the way, how do i start apache in boot time (mandrake linux 9.2,
  >>kernel 2.4)?
 >
 >
 > Make a link from /etc/rc.d/rc3.d called S99apache to
 > /where/is/apache/bin/apachectl
 >
Sorry, but how do I do a "link"? Can I call it as a different user than
root (or whoever runs init)(I am still relatively new to linux)
 > Davide
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: running as user (apache 2.0.48, linux 2.4) 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Mon Mar 22, 2004 7:37 pm
Post subject: Re: running as user (apache 2.0.48, linux 2.4) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thomas Jollans <nospam.TakeThisOut@jollans.com> wrote:
 > How do i privilege a user?

You don't. There is SUDO that allow a user to run a program with
superuser privileges, or you just use root to start apache.

 > Sorry, but how do I do a "link"?

Using the 'ln' command (link), man ln for the whole story, in short:
ln -s /where/is/apache/bin/apachectl /etc/rc.d/rc3.d/S99apache

 > Can I call it as a different user than root (or whoever runs init)

No. During initialization all the scripts are run as root.

But exactly, what's your problem? why you want to run apache as a
different user?

 > (I am still relatively new to linux)

<a style='text-decoration: underline;' href="http://www.tldp.org" target="_blank">www.tldp.org</a> is that way --->.
Davide


--
| C, n.: A programming language that is sort of like Pascal except more
| like assembly except that it isn't very much like either one, or
| anything else. It is either the best language available to the art
| today, or it isn't.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: running as user (apache 2.0.48, linux 2.4) 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Running Apache on Windows XP as a limited user - I'm running Apache 2.0.48 on WinXP Pro. In accordance with the advice found on http://httpd.apache.org/docs-2.0/platform/windows.html , I have created a Users-group account for Apache. I have added "Log on as a service" and "Act as part ...

Apache/Linux vs IIS/2k3 - Apparantly IIS is now built in the Windows 2003 kernel, thus making it way faster than before, when IIS was modular. "they" say Apache's performance on 2k3 will now not match IIS's, and even a Linux/Apache combo should have a hard time keeping ...

Apache and PHP on RH Linux 8 - I have been running PHP 4.3.x on Apache 1.3.26 and RH Linux 8.0 for almost 6 months now. Just recently I went to do some PHP development and I noticed that the Apache httpd daemon was not running. At first httpd would not load, but then I noticed that i...

Apache and Tomcat on Linux - hi i have setup an apache 2.0.4x and Tomcat 4.1.30 and the mod_jk connector 1.2.5 both work well when being used independent of each other. when i try to access a jsp file via apche over port 80 i always get an 500 internal server error. what do i....

Can apache on linux run Flashs - Hello: I would like to know if flash on Apache in linux can run? If it can How can it be done?? Thanks
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]