If you want this to be added for all sites, you could trying putting the lines as an include at the following location:
Code:
mkdir -p /usr/local/apache/conf/userdata/std/2
In this path, std stands for the http VirtualHost entries (not the https) and 2 for Apache 2 or Apache 2.2. At that location, create a file called phphttp.conf and put the include lines. Because you are putting it at the level before the accounts, all accounts should use the include entries.
To verify the include works, you would then run:
Code:
/scripts/verify_vhost_includes
After checking out it works fine, you would check it into the system:
Code:
/scripts/ensure_vhost_includes --all-users
You may want to backup Apache first:
Code:
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak110301
After that, you could rebuild Apache and restart it:
Code:
/scripts/rebuildhttpdconf
/etc/init.d/httpd restart
I suggest having a non-working site to test that it begins working after you do the above steps.
Thanks.