How to disable php support in one of virtual hosts?

Discussion in 'Install/Configuration' started by elvis7, Feb 3, 2006.

  1. elvis7

    elvis7 Member

    Is it possible to disable php support only for one virtual host? I've searched the forum, but didn't find anything on this topic. I suppose it's shouldn't be complicated, maybe some Rewrite rules. Will apriciate any help.
  2. xing

    xing LiteSpeed Staff

    Go into setting of vhost and make "Enable Script" set to "No".
  3. elvis7

    elvis7 Member

    tnx again. it what i wanted. ;)
  4. IrPr

    IrPr Well-Known Member

    And how to disable PHP/CGI/Perl Scripts on cPanel VHosts?
  5. mistwang

    mistwang LiteSpeed Staff

    block *.php with rewrite rule, or change .php MIME type to text/html.
  6. IrPr

    IrPr Well-Known Member

    Thanks for reply George,
    First i tried php_admin_flag engine off in VirtualHost section in httpd.conf without any effect and the same with .htaccess while i'd read here about php_* directive support by LS in httpd.conf and .htaccess :confused:

    BTW i did tried rewrite trick and works like a charm, but i had to disable AllowOverride also
  7. mistwang

    mistwang LiteSpeed Staff

    the "php_value engine off" is Apache specific not supported in PHP core. We may add LSAPI PHP support for this feature in the future.
  8. IrPr

    IrPr Well-Known Member

    It would be nice to support that feature

    Another great feature may be implemented is that httpd.conf VHosts loads in VHosts section in LSWS admin interface, then it can be fully editable, such as LS main VHosts

  9. anewday

    anewday Moderator

    I requested this earlier, hope he adds it soon. ;)

Share This Page