Click to See Complete Forum and Search --> : php engine on/off per virtual host


Invader Zim
09-13-2002, 11:07 AM
On http://www.phpbuilder.com/manual/configuration.php it says you can disable php per directory or virtual host by using (php3 obviously)

php3_engine on/off

according to http://www.php.net/manual/en/printwn/configuration.php it's

engine on/off for php4. It also notes

By putting engine off in the appropriate places in the httpd.conf file

Now, my questions:

1) What are the appropriate places?
2) What is the actual syntax?

Cuz all I can get is

Syntax error on line 139 of /var/lib/apache/conf/take13.net.conf:
Invalid command 'engine', perhaps mis-spelled or defined by a module not included in the server configuration

bealers
09-13-2002, 08:09 PM
try
php_value engine off
in a VirtualHost container

Invader Zim
09-13-2002, 08:14 PM
brilliant! that did it. thnx!