Peut on choisir sa version de php avec un .htaccess ou le httpd-vhosts.conf?
Posted by: trashcanmail (---.adsl.proxad.net)
Date: October 05, 2011 12:31PM

Bonjour,

Je dois faire tourner différent site sur ma plateforme de test certain en php 5.3 d'autre en php 5.2

J'ai bien installer les deux versions de php
mais je suis obliger de changer de version (et donc de redemarrer wamp) à chaque fois que je passe d'un site 5.3 a 5.2 ou d'un 5.2 a 5.3...
Et évidemment quand je suis en 5.3 je ne peux plus tester les sites en 5.2 et inversement...

Serait -il donc possible de configurer le .htaccess de chaque site et/ou les vhost de chaque site contenu ds le httpd-vhosts.conf afin que wamp sache automatiquement quelle version de php utiliser pour chaque site?

Merci d'avance pour vos réponses!

Options: ReplyQuote
Re: Peut on choisir sa version de php avec un .htaccess ou le httpd-vhosts.conf?
Posted by: yfastud (Moderator)
Date: October 08, 2011 04:41PM

Auto Translation
Quote

Hello,

I have run my site on different test platform with some other PHP 5.3 PHP 5.2 in

I have installed both versions of php
but I have to change the version (and thus restart wamp) every time I go to a site 5.3 a 5.2 or a 5.2 a 5.3 ...
And of course when I'm in 5.3 I can not test sites in 5.2 and vice versa ...

Would it be possible to configure. Htaccess for each site and / or vhost content of each site ds-httpd vhosts.conf wamp know automatically that what version of php to use for each site?

Thank you in advance for your answers!
You should post your question in Wampserver French forums but anyway you can edit your index file in each project to include runonce.php which is your own php file that call to switch php and/or apache version winking smiley

switchPhpVersion.php and switchApacheVersion.php files are in wamp/scripts folder

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.