[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php disabled by default



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.










Mustafa Kutsal Ay
master@iplikci.com
sysAdmin @ kanal7
Office: 212 612 9090 3220
GSM : 532 676 9778 | 555 448 1213
system admin, software engineer, radiesthesist
weblog: www.iplikci.com/musti
----- 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


Reply to: