Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd January 2011, 21:35
drahcir77 drahcir77 is offline
Member
 
Join Date: Jan 2010
Location: Ukiah, CA
Posts: 36
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via Yahoo to drahcir77
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 4th January 2011, 14:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 4th January 2011, 17:57
drahcir77 drahcir77 is offline
Member
 
Join Date: Jan 2010
Location: Ukiah, CA
Posts: 36
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via Yahoo to drahcir77
Default 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
Reply With Quote
  #4  
Old 5th January 2011, 13:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 5th January 2011, 16:12
drahcir77 drahcir77 is offline
Member
 
Join Date: Jan 2010
Location: Ukiah, CA
Posts: 36
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via Yahoo to drahcir77
Default

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
Attached Images
 
Reply With Quote
  #6  
Old 6th January 2011, 15:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Please try this:
Code:
chown -R web1:client1 /var/www/clients/client1/web1/cgi-bin/csmailto/
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MyDNS problem and Iptables problem Gimly General 4 13th August 2009 15:59
accessing CGI-BIN / odd script behaviour jamesls Installation/Configuration 2 2nd August 2009 07:16
MyDNS startup problem valter General 9 20th June 2009 17:31
Autoresponder installation problem cgi script won't run MikeM Installation/Configuration 8 14th September 2007 17:52
converting a 10 line cgi to php. edge Programming/Scripts 6 3rd June 2006 22:40


All times are GMT +2. The time now is 12:47.


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