Can not execute cgi scripts in cgi-bin directory:
Code:
Wed Jul 23 19:38:58 2008] [error] [client ???.78.165.69] suexec policy violation: see suexec log for more details
[Wed Jul 23 19:38:58 2008] [error] [client ???.78.165.69] Premature end of script headers: hello.cgi
Script:
PHP Code:
cat cgi-bin/hello.cgi
#!/usr/bin/perl
# hello.pl -- my first perl script!
print "Content-type: text/html\n\n";
print "Hello, world!\n";
Directory:
Code:
ls -la
insgesamt 32
drwxr-xr-x 8 www-data web7 4096 2008-07-14 04:00 .
drwxr-xr-x 13 root root 4096 2008-07-14 02:14 ..
drwxr-xr-x 2 www-data web7 4096 2008-07-23 17:53 cgi-bin
-rw-rw-r-- 1 root web7 0 2008-07-23 04:00 .htpasswd
drwxr-xr-x 3 www-data web7 4096 2008-07-15 00:30 log
drwxrwxrwx 2 www-data web7 4096 2008-07-14 02:14 phptmp
drwxr-xr-x 2 www-data web7 4096 2008-07-14 02:14 ssl
drwxr-xr-x 2 www-data web7 4096 2008-07-14 02:14 user
drwxrwxr-x 7 www-data web7 4096 2008-07-23 19:37 web
File itself:
Code:
-rwxr-xr-x 1 www-data web7 117 2008-07-23 17:43 hello.cgi
Vhost-config
Code:
#
#
#
######################################
# Vhost: www.domain.tld:80
######################################
#
#
<VirtualHost 1.2.3.4:80>
<Directory "/var/www/web7/cgi-bin">
Options ExecCGI
</Directory>
SuexecUserGroup nobody web7
ServerName www.domain.tld:80
ServerAdmin webmaster@domain.tld
DocumentRoot /var/www/web7/web
ServerAlias domain.tld
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /var/www/web7/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web7/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web7/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web7/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web7/user/$1/web/$3
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
</VirtualHost>
#
#
It makes no difference if I add or remove this in ISPConfig:
Code:
<Directory "/var/www/web7/cgi-bin">
Options ExecCGI
</Directory>
In ISPConfig Webpanel I have activated CGI for this Vhost.
File is set to 755.
What do I wrong here?
Help please. Thank you.
Recent comments
7 hours 8 min ago
12 hours 6 min ago
13 hours 33 min ago
14 hours 26 min ago
16 hours 9 min ago
20 hours 32 min ago
21 hours 24 min ago
23 hours 38 min ago
1 day 12 hours ago
1 day 14 hours ago