
3rd January 2011, 21:35
|
|
Junior Member
|
|
Join Date: Jan 2010
Location: Ukiah, CA
Posts: 28
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|

4th January 2011, 14:09
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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?
|

4th January 2011, 17:57
|
|
Junior Member
|
|
Join Date: Jan 2010
Location: Ukiah, CA
Posts: 28
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|

5th January 2011, 13:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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?
|

5th January 2011, 16:12
|
|
Junior Member
|
|
Join Date: Jan 2010
Location: Ukiah, CA
Posts: 28
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|

6th January 2011, 15:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Please try this:
Code:
chown -R web1:client1 /var/www/clients/client1/web1/cgi-bin/csmailto/
|

6th January 2011, 17:10
|
|
Junior Member
|
|
Join Date: Jan 2010
Location: Ukiah, CA
Posts: 28
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|

7th January 2011, 14:09
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Are there any errors in Apache's error log?
|

7th January 2011, 17:40
|
|
Junior Member
|
|
Join Date: Jan 2010
Location: Ukiah, CA
Posts: 28
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|

8th January 2011, 14:15
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Please try this:
Code:
chmod 755 /var/www/clients/client1/web1/cgi-bin/csmailto/
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 02:10.
|
|
Recent comments
20 hours 22 min ago
1 day 3 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 16 hours ago
2 days 2 hours ago
2 days 3 hours ago
2 days 6 hours ago
2 days 11 hours ago
2 days 11 hours ago