DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th October 2009
erehwon erehwon is offline
Port Guard
 
Join Date: May 2008
Location: Cascadia
Posts: 34
Thanked 0 Times in 0 Posts
Default 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)
Reply With Quote
  #2   (View Single Post)  
Old 25th October 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by erehwon View Post
Yet, I can't get any scripts to execute, even though 755'd.
Who is the owner of these scripts?
Reply With Quote
  #3   (View Single Post)  
Old 25th October 2009
erehwon erehwon is offline
Port Guard
 
Join Date: May 2008
Location: Cascadia
Posts: 34
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ocicat View Post
Who is the owner of these scripts?
root:daemon, by default (/var/www is also owned by root:daemon)
Reply With Quote
  #4   (View Single Post)  
Old 3rd November 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,062
Thanked 198 Times in 156 Posts
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 09:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick