|
|
|
|
|
|
| Author |
Message |
Richard Collyer *nix forums beginner
Joined: 25 Apr 2006
Posts: 6
|
Posted: Fri Jul 21, 2006 1:54 pm Post subject:
Re: Permission denied executing apachectl
|
|
|
On Fri, July 21, 2006 11:06 am, Josep Sanmarti wrote:
| Quote: | Hi all,
I've already running apache on port 3210 as part of an application and
actually I need apache listen also on port 80 just to redirect, i
snip |
What user are you specifying in httpd.conf, also check to make sure the IP
0.0.0.0 hasnt crept in there by mistake.
What user are you trying to do the apachectl command with. I may be wrong
but this needs to be root even though a different user is specified in
httpd.conf (apache wont run as root afaik - defualt www) and this is the
user that apache will run as.
HTH
Richard
--
Richard Collyer
richard@firebadger.net
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org |
|
| Back to top |
|
 |
Josep Sanmarti *nix forums beginner
Joined: 21 Jul 2006
Posts: 1
|
Posted: Fri Jul 21, 2006 10:06 am Post subject:
Permission denied executing apachectl
|
|
|
Hi all,
I've already running apache on port 3210 as part of an application and
actually I need apache listen also on port 80 just to redirect, i
mean, the application has a "very difficult" address and i need an
easier one. So I've created a virtual Host in httpd.conf as follows:
Listen 80
(...)
NameVirtualHost *:80
<virtualHost *:80>
ServerAdmin mymail@mail.com
ServerName server.name.es
ErrorLog /var/log/apache/error.log
CustomLog /var/log/apache/access.log combined
## redirect
Redirect /cl http://...:3210/sxlcl/cgi/core/citatnker.cgi
Redirect /adm http://...:3210/sxadmin/sxlcl/
Redirect / http://...:3210/sxlcl/alistz/default
</VirtualHost>
I know that apache with this configuration must be run as root but for
different reasons is impossible for me. So, i kneed to run a
plivileged apache with a standard user. My solution is to add an entry
to /etc/sudoers and gives root privileges to this user JUST to excute
apachectl, but when I try to restart apache I get this error:
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
It looks like lack of priviledges, but the user acts as root... can
anybody help me with this problem? I would really appreciate.
Thanks!
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Nov 20, 2008 7:32 am | All times are GMT
|
|
Loans | Credit Cards | Cheap mp3 players | Homes for Sale | Mobile Phones
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|