cgi-bin will not working on IPSconfig3

Discussion in 'Installation/Configuration' started by Gigashop, Aug 30, 2009.

  1. Gigashop

    Gigashop HowtoForge Supporter

    Hello all

    I downloaded Perfect Server ISPconfig3 SUSE 11 VmWare Image

    All work find, but cgi scripts will not work.
    On the Site Config i enabled CGI and SuEXEC.

    For Test i upload test.cgi to the cgi-bin folder (755)
    (http://www.MyDomain.com/cgi-bin/test.cgi)
    But i have Error 403

    (Same Test CGI: http://www.rzuser.uni-heidelberg.de/~x22/ht/cgi.cgi )

    #!/bin/sh
    echo "Content-type: text/html"
    echo
    echo "<HTML><HEAD>"
    echo "<TITLE>Beispiel CGI</TITLE></HEAD>"
    echo "<BODY><H1>CGI - Beispiel</H1>"
    echo "Das aktuelle Datum ist<HR><PRE>"
    date
    echo "</PRE><HR></BODY></HTML>"


    On Site Options the Apache directives ist empty

    Thanke you for Help
     
  2. till

    till Super Moderator

    Take a lookmat the error log file for a detialed error message.
     
  3. Gigashop

    Gigashop HowtoForge Supporter

    Now after a new manual installation of ispconfig3 x64 Debian 5 i have the same Problem.
    The Sites are working but no cgi.

    Found in Log :

    [Sun Aug 30 14:59:37 2009] [error] [client 192.168.2.4] suexec policy violation: see suexec log for more details
    [Sun Aug 30 14:59:37 2009] [error] [client 192.168.2.4] Premature end of script headers: test.cgi

    Found in Suexec log

    [2009-08-30 14:59:45]: uid: (5003/web3) gid: (5005/client3) cmd: test.cgi
    [2009-08-30 14:59:45]: (2)No such file or directory: exec failed (test.cgi)

    Thanks
     
    Last edited: Aug 30, 2009
  4. till

    till Super Moderator

    Please make sure that the script is owned by the user and group of the website.
     
  5. Gigashop

    Gigashop HowtoForge Supporter

    How can i do this ?

    I logged with FTP in with Username and Password of the Site Client.
     
    Last edited: Aug 31, 2009
  6. till

    till Super Moderator

    Login on the shell and then run:

    ls -la

    in the cgi-bin directory so that we see the permissions of the file and subdirectory.
     

Share This Page