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/hello_world.pl" -->
    ..

    but I get no output.

    CGI Scripte: yes
    Standard CGIs: yes
    SSI: yes

    Suexec: yes

    Why I don't get any output?

    tom
     
  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 (
    Code:
    chmod 755 hello_world.pl
    )?
    Do you use suExec?
     
  5. tom

    tom Member

    yes

    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?

    tom
     
    Last edited: May 5, 2006
  6. falko

    falko Super Moderator Howtoforge Staff

    Ah, good to know... ;)
    Please post the output of
    Code:
    ls -la /path/to/hello_world.pl
    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/hello_world.pl
    -rwxr-xr-x 1 web4_admin web4 379 2006-05-03 23:19 /home/www/web4/cgi-bin/hello_world.pl

    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.
    http://www.howtoforge.com/perfect_setup_debian_sarge_p5

    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?

    tom
     
    Last edited: May 6, 2006
  8. falko

    falko Super Moderator Howtoforge Staff

    Yes.


    http://www.howtoforge.com/forums/showthread.php?t=4059&highlight=/home/www+/var/www+suexec
    http://www.howtoforge.com/forums/showthread.php?t=3942&highlight=/home/www+/var/www+suexec



    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?

    tom
     
  10. falko

    falko Super Moderator Howtoforge Staff

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

    No.
     
  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?

    tom
     
  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