CGI Error

Discussion in 'Installation/Configuration' started by Kemp, Sep 14, 2023.

  1. Kemp

    Kemp Member

    Hi,

    I am getting the following error for CGI that's under
    /var/www/clients/client0/web1/cgi-bin
    instead of
    /var/www/clients/client0/web1/web/cgi-bin

    [cgid:error] End of script output before headers: file.cgi

    Do I need to set any permissions for CGI to work?

    Thank you!
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Is this on an ISPConfig host? You posted on Linux forum.
    Follow these instructions to get some context: https://forum.howtoforge.com/threads/please-read-before-posting.58408/
    On an ISPConfig host the created website should have cgi-bin directory like in your first example.
    Not sure. On ISPConfig setup I would turn on the cgi box in website settings.
     
  3. Kemp

    Kemp Member

    Yes, it's on ISPConfig and CGI box is on --still not working

    Thank you!
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you make the cgi script executable?
     
  5. Kemp

    Kemp Member

    It's working properly on cPanel server.

    Do I need to do anything to make it executable?
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Yes.
    Show directory listing of the directory where your script file is, something like
    Code:
    ls -lha /var/www/clients/client0/web1/cgi-bin/
     
  7. Kemp

    Kemp Member

    Hi,

    How do I make it executable?

    Please see the listing below:

    Code:
    -rwxrwxrwx  1 web1 client0  contact.pl
     

Share This Page