niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Apache
Permission denied executing apachectl
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Josep Sanmarti
*nix forums beginner


Joined: 21 Jul 2006
Posts: 1

PostPosted: Fri Jul 21, 2006 10:06 am    Post subject: Permission denied executing apachectl Reply with 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
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
Richard Collyer
*nix forums beginner


Joined: 25 Apr 2006
Posts: 6

PostPosted: Fri Jul 21, 2006 1:54 pm    Post subject: Re: Permission denied executing apachectl Reply with quote

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
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 8:16 pm | All times are GMT
navigation Forum index » Apps » Apache
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts [554] Relay access denied annami Postfix 0 Tue Oct 21, 2008 9:12 am
No new posts [554] Relay access denied annami Postfix 0 Tue Oct 21, 2008 9:11 am
No new posts [554] Relay access denied annami Postfix 0 Tue Oct 21, 2008 9:10 am
No new posts ImportError: libclntsh.so.10.1: cannot open shared object... gmax2006 python 2 Thu Jul 20, 2006 7:05 pm
No new posts Column info without executing query Dan Strömberg PostgreSQL 10 Thu Jul 20, 2006 6:21 pm

Credit Cards | Personal Loans | Mortgage Loans | Credit Cards | Nationwide Building Society
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
[ Time: 0.1324s ][ Queries: 16 (0.0547s) ][ GZIP on - Debug on ]