Hi,
I already explained how, with Apache 2.4.52fcgi, to use another version of PHP than the default one of Wampserver for VirtualHost.
See : [
forum.wampserver.com]
For Alias, it's a little bit different.
Let's suppose that we want to launch PhpMyAdmin 5.1.1 with PHP 7.4.27 while the PHP version of Wampserver is 8.1.1.
The alias must be modified as follows:
Alias /phpmyadmin "${INSTALL_DIR}/apps/phpmyadmin5.1.1/"
<IfModule fcgid_module>
Define FCGIPHPVERSION "7.4.27"
FcgidInitialEnv PHPRC ${PHPROOT}${FCGIPHPVERSION}
</IfModule>
<Directory "${INSTALL_DIR}/apps/phpmyadmin5.1.1/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride all
Require local
<IfModule fcgid_module>
<Files ~ "\.php$">
Options +Indexes +Includes +FollowSymLinks +MultiViews +ExecCGI
AddHandler fcgid-script .php
FcgidWrapper "${PHPROOT}${FCGIPHPVERSION}/php-cgi.exe" .php
</Files>
</IfModule>
# To import big file you can increase values
php_admin_value upload_max_filesize 128M
php_admin_value post_max_size 128M
php_admin_value max_execution_time 360
php_admin_value max_input_time 360
</Directory>
------------------------------------------------------------------------------------------------------------
Wampserver 3.2.9 32 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38 - MariaDB 10.5.13/10.6.5
Wampserver 3.2.9 64 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38/8.0.29 - MariaDB 10.5.15/10.7.3
PhPMyadmin 5.1.3 - 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 »