how to multiple configure php

Problems with the Windows version of XAMPP, questions, comments, and anything related.

how to multiple configure php

Postby xnoddyx » 20. October 2011 19:37

i have xampp running multiple hosts can i multiple configure php so
that php is configure difrent for each separate host and how can i do this if
php can be multiple configure for each host thanks john and running
XAMPP 1.7.3 on xp Pro sp3
xnoddyx
 
Posts: 4
Joined: 20. October 2011 19:26
Operating System: xp pro sp3

Re: how to multiple configure php

Postby JonB » 20. October 2011 21:42

To be honest, I'm not sure why 'you' would want different configurations for different vhosts (at least in most cases), but it is certainly possible. I do know its an issue for those using ISP/Hosting companies.

It can be done right in the httpd.conf or .htaccess files (so its effectively directory/folder specific) And every Vhost will have its own DocumentRoot /and vhost entries in httpd.conf (in general) although for XAMPP, they would usually go in the the /apache/conf/extra/httpd-vhosts.conf

http://php.net/manual/en/configuration.changes.php

http://php.net/manual/en/function.ini-set.php

http://www.programmingfacts.com/set-php ... onphp-ini/


Beyond this - I'm going to defer to Altrea or one of the other PHP experts on this - as I have not used this method myself.

Good Luck xnoddyx

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: how to multiple configure php

Postby xnoddyx » 23. October 2011 14:18

JonB wrote:To be honest, I'm not sure why 'you' would want different configurations for different vhosts (at least in most cases), but it is certainly possible. I do know its an issue for those using ISP/Hosting companies.

It can be done right in the httpd.conf or .htaccess files (so its effectively directory/folder specific) And every Vhost will have its own DocumentRoot /and vhost entries in httpd.conf (in general) although for XAMPP, they would usually go in the the /apache/conf/extra/httpd-vhosts.conf

http://php.net/manual/en/configuration.changes.php

http://php.net/manual/en/function.ini-set.php

http://www.programmingfacts.com/set-php-configurationphp-ini/


Beyond this - I'm going to defer to Altrea or one of the other PHP experts on this - as I have not used this method myself.

Good Luck xnoddyx

8)

hello JonB im shore i know you from some where :wink: lol

To be honest, I'm not sure why 'you' would want different configurations for different vhosts

the why is so i can have php web pages load but php scripts wont on some vhosts

It can be done right in the httpd.conf or .htaccess files (so its effectively directory/folder specific)

puting it in the httpd-vhosts.conf sounds good to me

And every Vhost will have its own DocumentRoot /and vhost entries in httpd.conf (in general) although for XAMPP, they would usually go in the the /apache/conf/extra/httpd-vhosts.conf

configurations for my vhosts are in the /apache/conf/extra/httpd-vhosts.conf DocumentRoot layout for 2 of my vhosts are
DocumentRoot "C:/xampp/www/livingston-life.co.uk/site"
DocumentRoot "C:/xampp/www/almondhaf.co.uk/site"
and logs are
CustomLog "C:/xampp/www/almondhaf.co.uk/logs/host.almondhaf.co.uk.log" combined
CustomLog "C:/xampp/www/livingston-life.co.uk/logs/host.livingston-life.co.uk.log

thankq JonB i will give the links a look :D
xnoddyx
 
Posts: 4
Joined: 20. October 2011 19:26
Operating System: xp pro sp3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 81 guests