HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Trying to get a cgi script to work (http://www.howtoforge.com/forums/showthread.php?t=50786)

drahcir77 3rd January 2011 22:35

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

falko 4th January 2011 15:09

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?

drahcir77 4th January 2011 18:57

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

falko 5th January 2011 14:58

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?

drahcir77 5th January 2011 17:12

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

falko 6th January 2011 16:02

Please try this:
Code:

chown -R web1:client1 /var/www/clients/client1/web1/cgi-bin/csmailto/

drahcir77 6th January 2011 18:10

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

falko 7th January 2011 15:09

Are there any errors in Apache's error log?

drahcir77 7th January 2011 18:40

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

falko 8th January 2011 15:15

Please try this:

Code:

chmod 755 /var/www/clients/client1/web1/cgi-bin/csmailto/


All times are GMT +2. The time now is 08:57.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.