Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apache and permissions

24 views
Skip to first unread message

pet...@gmail.com

unread,
Feb 12, 2007, 9:36:20 AM2/12/07
to
First of all I could not execute .cgi files locally via my Sites
directory. I got a 403 forbidden error message.

I have tried to restart Apache via the terminal, and got this:

Last login: Mon Feb 12 10:27:09 on ttyp1
Welcome to Darwin!
[Blackburn:~] pqb% apachectl graceful restart
/usr/sbin/apachectl graceful: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/pqb.conf
fopen: Permission denied
httpd: could not open error log file /private/var/log/httpd/error_log.
/usr/sbin/apachectl graceful: httpd could not be started
/usr/sbin/apachectl restart: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/pqb.conf
fopen: Permission denied
httpd: could not open error log file /private/var/log/httpd/error_log.
/usr/sbin/apachectl restart: httpd could not be started
[Blackburn:~] pqb%

Could anyone help, please?
TIA

When posting the .cgi files to my website, some would execute, but
others, eg a file trying to print the Environment variables program.

I checked permissions via my FTP program, and they were all the same.

Is this because my ISP only allows certain cgi functions?

Tom Harrington

unread,
Feb 16, 2007, 11:11:02 AM2/16/07
to
In article <1171290980....@a75g2000cwd.googlegroups.com>,
pet...@gmail.com wrote:

> [Blackburn:~] pqb% apachectl graceful restart
> /usr/sbin/apachectl graceful: httpd not running, trying to start
> Processing config directory: /private/etc/httpd/users/*.conf
> Processing config file: /private/etc/httpd/users/pqb.conf
> fopen: Permission denied
> httpd: could not open error log file /private/var/log/httpd/error_log.

[...]

You need root permissions to do that. Try adding "sudo" before the
command.

--
Tom "Tom" Harrington
MondoMouse makes your mouse mightier
See http://www.atomicbird.com/mondomouse/

0 new messages