httpd and mysql as user (not root)
Alexander Dalloz
alexander.dalloz at uni-bielefeld.de
Fri Mar 12 16:19:09 UTC 2004
Am Fr, den 12.03.2004 schrieb Jannis Pohlmann um 16:32:
> Greetings,
>
> using FC1, I recently have a little problem with running httpd and mysql
> during the boot-process and with starting it from the terminal.
> Regarding the terminal problem I get the following message:
>
> /(13)Keine Berechtigung: make_sock: could not bind to address 0.0.0.0:443
> no listening sockets available, shutting down
> Unable to open logs
>
> /Where will I have to change the rights for my user (he is already part
> of groups root,apache,mysql - and of course, his own group) in order to
> make httpd run without having to login as root?
> And how can I make both, httpd and mysql, run on startup?
>
> Jannis
What do you gain by this? Running "su - <enter root password> is simple
and quick and all you need to start services. If the user has root
rights - as having UID/GID 0 - it makes no differences. Even working
with a user account which has root rights too is dangerous!
To start up services like Apache and MySQL at startup run:
chkconfig --list httpd
chkconfig --list mysqld
This tells you at which runlevels these services are already active. To
activate a service at specific runlevel do i.e.:
chkconfig --level 3 httpd on
Alexander
--
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2174.nptl
Sirendipity 17:13:46 up 3 days, 17:33, load average: 1.07, 1.04, 1.01
[ Γνωθι σ'αυτον - gnothi seauton ]
my life is a planetarium - and you are the stars
More information about the users
mailing list