LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > How to disable php support in one of virtual hosts?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2006, 03:39 AM
elvis7 elvis7 is offline
Member
 
Join Date: Sep 2005
Posts: 14
Default How to disable php support in one of virtual hosts?

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.
Reply With Quote
  #2  
Old 02-03-2006, 04:19 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Go into setting of vhost and make "Enable Script" set to "No".
Reply With Quote
  #3  
Old 02-03-2006, 06:05 AM
elvis7 elvis7 is offline
Member
 
Join Date: Sep 2005
Posts: 14
tnx again. it what i wanted.
Reply With Quote
  #4  
Old 10-30-2008, 10:40 AM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Quote:
Originally Posted by xing View Post
Go into setting of vhost and make "Enable Script" set to "No".
And how to disable PHP/CGI/Perl Scripts on cPanel VHosts?
Reply With Quote
  #5  
Old 10-31-2008, 01:18 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
block *.php with rewrite rule, or change .php MIME type to text/html.
Reply With Quote
  #6  
Old 10-31-2008, 01:24 PM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Quote:
Originally Posted by mistwang View Post
block *.php with rewrite rule, or change .php MIME type to text/html.

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

BTW i did tried rewrite trick and works like a charm, but i had to disable AllowOverride also
Reply With Quote
  #7  
Old 10-31-2008, 02:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #8  
Old 10-31-2008, 02:25 PM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Quote:
Originally Posted by mistwang View Post
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.
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

Thanks
Reply With Quote
  #9  
Old 10-31-2008, 03:14 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Quote:
Originally Posted by IrPr View Post
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

Thanks
I requested this earlier, hope he adds it soon.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
max_execution_time did not changed piper Install/Configuration 12 01-24-2007 11:27 AM
chroot virtual host possible with php? sofatime Install/Configuration 19 07-20-2006 11:07 PM
Disable Virtual Host zoom Install/Configuration 1 05-08-2006 10:29 PM
name based virtual hosts for the same domain mzagar Install/Configuration 2 01-31-2005 06:53 PM


All times are GMT -7. The time now is 11:37 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.