![]() |
Trying to get a cgi script to work
I am using Ubuntu 10.10 with ISP config 3, I have my web site working, http://www.ratsupport.com, and I can ftp into the directories and put the scripts into the proper directories, but when I do http://www.ratsupport.com/cgi-bin/csmailto/csmailto.cgi
I get a 404 error I am lost, any advice about how my config is wrong would be real nice thanks |
Did you enable Perl for that web site in ISPConfig? Did you place you script in the cgi-bin/ directory outside the web/ directory, or did you create a cgi-bin/ directory manually in the web/ directory?
|
sure did
I have enabled everything I can enable and I put the script in the
/var/www/clients/client1/web1/cgi-bin directory the instructions for the script had me create another folder that was not in the web area and I called it cgi-script |
Can you post the output of
Code:
ls -la /var/www/clients/client1/web1/cgi-bin/Are there any errors in Apache's error log? |
1 Attachment(s)
ok, I found the information you requested
see attached and following text from apache error log: [Tue Jan 04 09:25:14 2011] [error] [client 192.168.10.254] File does not exist: /var/www/ratsupport.com/web/favicon.ico [Tue Jan 04 09:52:41 2011] [error] [client 192.168.10.254] script not found or unable to stat: /var/www/clients/client1/web1/cgi-bin/csmailto/csmailto.cgi [Tue Jan 04 09:52:44 2011] [error] [client 192.168.10.254] File does not exist: /var/www/ratsupport.com/web/favicon.ico [Tue Jan 04 09:56:21 2011] [error] [client 192.168.10.254] script not found or unable to stat: /var/www/clients/client1/web1/cgi-bin/csmailto/csmailto.cgi |
Please try this:
Code:
chown -R web1:client1 /var/www/clients/client1/web1/cgi-bin/csmailto/ |
well I am sure that helped, now I get a 500 error, not sure what that means but I am checking my directories and setup of the program
|
Are there any errors in Apache's error log?
|
Sorry for this
there are no errors in the apache error log. I go between the 405 and 405 errors.
I will keep working in this, I wish I understood more, I am very sorry to take your time |
Please try this:
Code:
chmod 755 /var/www/clients/client1/web1/cgi-bin/csmailto/ |
| All times are GMT +2. The time now is 03:26. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.