Apache Conf for the site
- Code: Select all
ScriptAlias /cgi-bin/ /var/www/sitename/cgi-bin/
<Directory /var/www/sitename/cgi-bin>
Options ExecCGI
AddHandler cgi-script cgi pl
</Directory>
File Permissions
- Code: Select all
/cgi-bin/
drwxr-xr-x 2 www-data www-data 4096 2010-10-19 19:53 shopsite-install
/shopsite-install/
-rw-r--r-- 1 www-data www-data 8330 2010-10-19 19:23 currency.dat
-rw-r--r-- 1 www-data www-data 512000 2010-10-19 19:23 data.tar
-rw-r--r-- 1 www-data www-data 14807040 2010-10-19 19:23 en-US-images.tar
-rw-r--r-- 1 www-data www-data 337920 2010-10-19 19:23 en-US.tar
-rw-r--r-- 1 www-data www-data 378880 2010-10-19 19:23 html.tar
-rw-r--r-- 1 www-data www-data 2502 2010-10-19 19:23 lpscript-English
-rw-r--r-- 1 www-data www-data 12286 2010-10-19 19:23 readme.txt
-rw-r--r-- 1 www-data www-data 12052 2010-10-19 19:23 readme.unix
-rw-r--r-- 1 www-data www-data 11929600 2010-10-19 19:23 sccgis.tar
-rw-r--r-- 1 www-data www-data 22220800 2010-10-19 19:23 sscgis.tar
-rw-r--r-- 1 www-data www-data 493 2010-10-19 19:24 store.auth
-rwxr-xr-x 1 www-data www-data 139 2010-10-19 19:53 test.cgi
-rwxr-xr-x 1 www-data www-data 7908 2010-10-19 19:23 testmm.cgi
-rwxr-xr-x 1 www-data www-data 5061744 2010-10-19 19:23 wwwinstall.cgi
Apache log errors
- Code: Select all
(2)No such file or directory: exec of '/var/www/sitename/cgi-bin/shopsite-install/wwwinstall.cgi' failed, referer: http://yourdomian.com/cgi-bin/shopsite-install/
Premature end of script headers: wwwinstall.cgi, referer: http://yourdomain.com/cgi-bin/shopsite-install/
But if I run a .cgi script written in perl it works with out a hitch so I am at a complete loss here..
Any ideas anyone has that would be great.