LSWS 4.2: cgi-script override is not allowed in .htaccess

Discussion in 'General' started by tina, Sep 21, 2012.

  1. tina

    tina Member

    We just upgraded to LiteSpeed Web Server from 4.1.13 to 4.2, on a cPanel server, and suddenly we are getting this error for sites that use 'AddHandler cgi-script' in .htaccess files to add their own extensions:

    "cgi-script override is not allowed in .htaccess"

    The error did not appear in 4.1.13, and we did not change any settings, although we did select 'Re-install' during the upgrade as recommended, in order to run the new PHP SuExec daemon.

    How do we fix this error?
  2. webizen

    webizen New Member

    you can put "DisableCgiOverride On" in Apache Style Configurations (Admin Console -> Configurations -> Server -> General).
  3. tina

    tina Member

    We are using Apache binary wrapper on normal CentOS 6 64-bit running cPanel, and did not put "DisableCgiOverride On" in the httpd.conf file.

    It seems that LSWS 4.2 automatically sets "DisableCgiOverride On" on such systems, so it could be a bug.

    Can you confirm this?
  4. mistwang

    mistwang LiteSpeed Staff

    you can put
    DisableCgiOverride Off

    in httpd.conf .
    It is default to "On" with 4.2 release.

Share This Page