← Back to team overview

sslug-teknik team mailing list archive

Cgi-bin og php adgang

 

Prøver at installere StatIt2.3 .
Har pakket det ud i /home/httpd/cgi-bin/StatIt2.3/ .
Har kørt chown -R webadmin.webadmin /home/httpd/cgi-bin .
/home/httpd/cgi-bin og cgi-bin/StatIt2.3 har drwxr-xr-x webadmin
webadmin
Mine virtual servers har cgi-bin linket til /home/httpd/cgi-bin .

Når jeg kører
http://www.onscreen.zzz/cgi-bin/StatIt2.3/install.php3
får jeg
You don't have permission to access /cgi-bin/StatIt2.3/install.php3 on
this server

Har flg. med i /etc/httpd/conf/httpd.conf :

LoadModule mime_magic_module  modules/mod_mime_magic.so
LoadModule perl_module        modules/libperl.so
LoadModule php_module         modules/mod_php.so
LoadModule php3_module        modules/libphp3.so

AddModule mod_mime_magic.c
AddModule mod_perl.c
AddModule mod_php.c
AddModule mod_php3.c

ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
<Directory "/home/httpd/cgi-bin">
AllowOverride None
Options  execCGI
Order allow,deny
Allow from all
</Directory>

<Ifmodule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</Ifmodule>

AddHandler cgi-script .cgi
AddHandler cgi-script .php
AddHandler cgi-script .pl

-- 
Regards,
          Mr Dev - Mogens Valentin
 http://www.danbbs.dk/~monz - monz@xxxxxxxxx
OpenSource Networking - Security - Programming
       Coming up soon: www.mrdev.com


Follow ups