|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Executing web scripts : can't!
I'm running 4.5-stable. /var/www is mounted rw,nodev,nosuid. httpd.conf allows php and cgi, and ExecCGI enabled.
Yet, I can't get any scripts to execute, even though 755'd. Apache is chrooted in /var/www. I've tried making it 'unsecure' (-u flag), but still, no go. I'm missing something obvious? What else might prevent the execution of cgi, php? All I get when I view index.cgi, for example, is the text of the script itself, not the executed output. Apache error log: Code:
[Sat Oct 24 19:16:27 2009] [notice] Initializing etag from /var/www/logs/etag-state [Sat Oct 24 19:16:27 2009] [notice] chrooted in /var/www [Sat Oct 24 19:16:27 2009] [notice] changed to uid 67, gid 67 [Sat Oct 24 19:16:27 2009] [notice] Apache configured -- resuming normal operations [Sat Oct 24 19:16:27 2009] [notice] Accept mutex: sysvsem (Default: sysvsem) |
|
|||
Who is the owner of these scripts?
|
|
|||
root:daemon, by default (/var/www is also owned by root:daemon)
|
|
||||
The default user & group for OpenBSD's Apache 1.3 is www. This is in fact the default for almost any webserver.
So you will need to fix your permissions. Either change ownership or change the permissions. See the chmod(1) and chown(1) manpages for more information.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't load any scripts in ircII | guitarscn | General software and network | 4 | 22nd November 2010 12:06 AM |
Windows scripts can't print | drhowarddrfine | Other OS | 15 | 31st March 2009 08:53 AM |
Periodic scripts for mail scripts | stukov | FreeBSD General | 2 | 8th March 2009 07:51 PM |
executing commands for all users when X starts with KDM | caesius | FreeBSD General | 2 | 20th October 2008 09:03 AM |
Executing a c program | Libran | Programming | 13 | 12th August 2008 11:42 PM |