disable php engine in server config
php_admin_flag engine off
then enable it by setting the flag on in any
virtual hosts you want.
----- Original Message -----
Sent: Monday, February 20, 2006 6:50
PM
Subject: php disabled by default
I have installed apache2 and libapache2-mod-php4. by default
every virtualhost can run php script as the installation process creates 2
simbolic links in /etc/apache2/mod-enabled: one to php4.load and one to
php4.conf
my idea is to disable by default php and enable it site by
site when required, so I removed the simbolic link php4.conf (I left the
symlink php4.load in order to use the LoadModule directive), and in
the configuration of a site in wich I want to run php I added the
directives: <VirtualHost *> ..............
AddType application/x-httpd-php .php .phtml .php3 AddType
application/x-httpd-php-source .phps </VirtualHost> as AddType
directive can be used in virtualhost contest (see apache doc)
It seems
to me that this is a right configuration, but doing in this way every
virtualhost enables php and I can't understand why. any
idea?
Ciao, Ivan
-------------------- http://www.retecivica.milano.it/
--
To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org with
a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|