version php for each type virtualhost
Posted by: tqqkhang2006@gmail.com (117.3.70.---)
Date: June 25, 2020 06:24AM

How to setup the php version for different virtual hosts on only wampserver?

Options: ReplyQuote
Re: version php for each type virtualhost
Posted by: Otomatic (Moderator)
Date: June 25, 2020 09:37AM

not possible

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.2 32 bit - Apache 2.4.43 - PHP 7.4.7/7.3.19/..../5.6.40 - MySQL 5.7.30 - MariaDB 10.4.12
Wampserver 3.2.2 64 bit - Apache 2.4.43 - PHP 7.4.7/7.3.19/..../5.6.40 - MySQL 5.7.30/8.0.20 - MariaDB 10.4.12
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: version php for each type virtualhost
Posted by: tqqkhang2006@gmail.com (117.3.70.---)
Date: June 26, 2020 04:53AM

Can we develop this feature?

Options: ReplyQuote
Re: version php for each type virtualhost
Posted by: Otomatic (Moderator)
Date: June 26, 2020 10:10AM

Hi,

You do what you want, Wampserver is licensed under the GNU GPL.

To be able to have different PHP versions assigned to VirtualHost, you would have to run PHP as FCGI, which is not the current case for Wampserver where PHP is run as an Apache module.

On the other hand, you can set different PHP configuration parameters for each VirtualHost, but for the same version of PHP.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.2 32 bit - Apache 2.4.43 - PHP 7.4.7/7.3.19/..../5.6.40 - MySQL 5.7.30 - MariaDB 10.4.12
Wampserver 3.2.2 64 bit - Apache 2.4.43 - PHP 7.4.7/7.3.19/..../5.6.40 - MySQL 5.7.30/8.0.20 - MariaDB 10.4.12
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: version php for each type virtualhost
Posted by: tqqkhang2006@gmail.com (---.viettel.vn)
Date: June 27, 2020 05:33PM

how can i do run PHP as FCGI?

Options: ReplyQuote
Re: version php for each type virtualhost
Posted by: RiggsFolly (Moderator)
Date: June 27, 2020 11:21PM

That you will have to research for yourself. Its all out there in the Apache and PHP manuals

See my signature for links to all the relebant manuals

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.2.0 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.19>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.