Trying to get a cgi script to work

Discussion in 'HOWTO-Related Questions' started by drahcir77, Jan 3, 2011.

  1. drahcir77

    drahcir77 New Member

  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    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?
     
  3. drahcir77

    drahcir77 New Member

    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
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    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?
     
  5. drahcir77

    drahcir77 New Member

    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 Files:

  6. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Please try this:
    Code:
    chown -R web1:client1 /var/www/clients/client1/web1/cgi-bin/csmailto/
     
  7. drahcir77

    drahcir77 New Member

    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
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Are there any errors in Apache's error log?
     
  9. drahcir77

    drahcir77 New Member

    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
     
  10. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Please try this:

    Code:
    chmod 755 /var/www/clients/client1/web1/cgi-bin/csmailto/
     
  11. drahcir77

    drahcir77 New Member

  12. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    ls -la /var/www/clients/client1/web1/cgi-bin/csmailto/
    ?
     
  13. drahcir77

    drahcir77 New Member

    output

    here you go, I hope this helps, wish I understood all the marks on the left, where can I go to look this stuff up ?
     

    Attached Files:

  14. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

  15. drahcir77

    drahcir77 New Member

    still the same

    Thanks you for the link, I will surely read and do my best to understand the information

    I still get the 404 error after doing the last chmod 755
     

Share This Page