cgi not working

Discussion in 'Installation/Configuration' started by tom, May 4, 2006.

  1. tom

    tom Member

    this script I've tried to use on my debian system:
    <!--#exec cgi="/cgi-bin/" -->

    but I get no output.

    CGI Scripte: yes
    Standard CGIs: yes
    SSI: yes

    Suexec: yes

    Why I don't get any output?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. tom

    tom Member

  4. falko

    falko Super Moderator Howtoforge Staff

    Did you place the CGI file in the cgi-bin directory and make it executable (
    chmod 755
    Do you use suExec?
  5. tom

    tom Member


    yes, if I deactivate suExec it works.

    How do I get suExec and cgi working?
    Or is there an another way to use two php versions like php4 and php5 together?

    Last edited: May 5, 2006
  6. falko

    falko Super Moderator Howtoforge Staff

    Ah, good to know... ;)
    Please post the output of
    ls -la /path/to/
    suExec has nothing to do with PHP (that is, if you run PHP as mod_php in your Apache which is the normal way).
  7. tom

    tom Member

    sarge01:~# ls -al /home/www/web4/cgi-bin/
    -rwxr-xr-x 1 web4_admin web4 379 2006-05-03 23:19 /home/www/web4/cgi-bin/

    I've found that hint from the perfect setup infos:
    Later during the installation you are asked if the default directory /home/www should be the directory where ISPConfig will create websites in. Answer n and enter /var/www as the home directory for websites.

    So I've not choosen /var/www. that seems to be the reason. Right?
    But how can I change it now?

    I now :) that was a new question which asked: Is there another way to get two PHP versions running on one apache without using cgi features?

    Last edited: May 6, 2006
  8. falko

    falko Super Moderator Howtoforge Staff


    No. You must run one PHP as CGI and the other as Apache module.
  9. tom

    tom Member

    What is the reasen that the installscript does not use /var/www as default path?
    Are there other problems if I use /var/www for suexec?

  10. falko

    falko Super Moderator Howtoforge Staff

    There's no special reason. Some distributions create the biggest partition on /home, that's all.

  11. tom

    tom Member

    Ok, many many thanks for your help again :)
    How many houres you are answering questions in this form per day :)

    It seem to me that you dont need any sleep anymore. What is your trick?

  12. falko

    falko Super Moderator Howtoforge Staff

    Three to five hours (which is way too much... :( ).

    I don't work anymore. I only answer questions in the forum... :D

Share This Page