I want to add php.ini to webites seperately, so that they are
taken by them seperately by each website instead of default,
and how to set the path of the new php.ini. How to make it work.
Any kind help will be appreciated.
Srinivas.
I want to add php.ini to webites seperately, so that they are
taken by them seperately by each website instead of default,
and how to set the path of the new php.ini. How to make it work.
Any kind help will be appreciated.
Srinivas.
I think this is done in Apache httpd.conf
See the Apache/conf/ ... folder
You could make Virtual Hosts
# Almost any Apache directive may go into a VirtualHost container.
So you could possibly use this for each VirtualHost: PHPIniDir "C:/Program/PHP"
But I am not sure exactly how to do it.
Maybe like this something:
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
PHPIniDir "C:/Program/PHP"
DocumentRoot "C:/Program/Apache2.2/docs/dummy-host.11.22.33.44"
ServerName dummy-host.11.22.33.44
ServerAlias www.dummy-host.11.22.33.44
</VirtualHost>
Do you own your own server? If not, this is definitely a question you should ask your hosting provider as there are just too many possibilities for us to know which one applies to you.
For example, my hosting provider has a custom Apache module (written in house for their specific needs) that tells PHP where to look for php.ini for each user and/or domain.
Respected halojoy,
Thanks for going through my question on php.ini.My php runs on Apache module.Your answer has been quite helpful.
srinivas
bradgrafelman;10941917 wrote:Do you own your own server? If not, this is definitely a question you should ask your hosting provider as there are just too many possibilities for us to know which one applies to you.
For example, my hosting provider has a custom Apache module (written in house for their specific needs) that tells PHP where to look for php.ini for each user and/or domain.
bradgrafelman thanks for going through my php.ini question,my webserver is provided by service provider.
srinivas
Some hosting providers let you make changes to your PHP configuration in an .htaccess file. Since it sounds like you do not own your own server, you should ask your hosting company about how you might alter your php configuration for each website.