Disable php/cgi/.htaccess for user account

This is a discussion on Disable php/cgi/.htaccess for user account within the Linux Web Servers forums, part of the Web Server and Related Forums category; How do I disable php scripting per virtual host account?...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-11-2005
Shabam
 
Posts: n/a
Default Disable php/cgi/.htaccess for user account

How do I disable php scripting per virtual host account?


  #2 (permalink)  
Old 12-12-2005
Bob Smith
 
Posts: n/a
Default Re: Disable php/cgi/.htaccess for user account

On 12/11/2005 8:05 AM, Shabam wrote:
> How do I disable php scripting per virtual host account?


Use

<Directory /virtual/host/documentroot>
php_admin engine off
</Directory>

replacing /virtual/host/documentroot with the appropriate directory and path.

--
_________________________________________
Bob Smith -- bsmith@sudleydeplacespam.com
a.k.a. bsmith@dequalitasspam.com

To reply to me directly, delete "despam".
  #3 (permalink)  
Old 12-12-2005
Shabam
 
Posts: n/a
Default Re: Disable php/cgi/.htaccess for user account

> Use
>
> <Directory /virtual/host/documentroot>
> php_admin engine off
> </Directory>
>
> replacing /virtual/host/documentroot with the appropriate directory and

path.

I got the error:

Syntax error on line 14181 of /usr/local/apache/conf/httpd.conf:
Invalid command 'php_admin', perhaps mis-spelled or defined by a module not
included in the server configuration

I also tried "php_admin_value" and that gave the same error. Any other
ideas?


  #4 (permalink)  
Old 12-12-2005
Bob Smith
 
Posts: n/a
Default Re: Disable php/cgi/.htaccess for user account

On 12/12/2005 2:21 PM, Shabam wrote:
>> Use
>>
>> <Directory /virtual/host/documentroot>
>> php_admin engine off
>> </Directory>
>>
>> replacing /virtual/host/documentroot with the appropriate directory and

> path.
>
> I got the error:
>
> Syntax error on line 14181 of /usr/local/apache/conf/httpd.conf:
> Invalid command 'php_admin', perhaps mis-spelled or defined by a module not
> included in the server configuration
>
> I also tried "php_admin_value" and that gave the same error. Any other
> ideas?


Sorry, I typed too quickly. That should read

php_admin_flag engine off

--
_________________________________________
Bob Smith -- bsmith@sudleydeplacespam.com
a.k.a. bsmith@dequalitasspam.com

To reply to me directly, delete "despam".
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0