Disable cgi when chmod file.cgi 755

Discussion in 'CGI/Perl/Python' started by itdungpt, Jun 23, 2012.

  1. itdungpt

    itdungpt Member


    I user cpanel + Litespeed

    i was added

    But chmod 755 file.cgi is file.cgi working

    Can all help me disable ?
  2. NiteWave

    NiteWave Administrator

  3. itdungpt

    itdungpt Member

    i want have lscgid: execve():i: Permission denied
    when chmod 755 file.cgi
  4. webizen

    webizen Well-Known Member

    you can change permission of /path/to/perl to be non-executable.
  5. itdungpt

    itdungpt Member

    How to ?

    My path perl

  6. webizen

    webizen Well-Known Member

    do the following:
  7. itdungpt

    itdungpt Member

    I was try chmod -x /usr/bin/perl
    But file.cgi still working.
  8. NiteWave

    NiteWave Administrator

    what's the first line of file.cgi ?

    what do you mean "still working", access it through domain.com/file.cgi ?
  9. itdungpt

    itdungpt Member

    This is code file.cgi

    please download Attach Files

    Attached Files:

  10. webizen

    webizen Well-Known Member

    see if you can run from command line.
    you should see permission error if perl is not runnable.
  11. TND.VN

    TND.VN New Member

    Internal Server Error


    No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_lsws.cgi) with exit signal: 1
    Last edited: Nov 15, 2012

Share This Page