Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3287

Cannot switch my PHP version (no replies)

$
0
0
Hello!
Windows 11 - Wampserver Version 3.3.7 - Apache 2.4.58 - MySQL 2.4.3
Running fine on PHP 8.2.13...with a few Moodle and WordPress local sites.
Just wanted to install a new version of Drupal, using composer. Got error:: composer requires PHP 8.3. On my Wampserver I have PHP 8.3.0 and 8.3.18.
OK, in Wampserver services I switch from PHP 8.2.13 to PHP 8.3.18). Things look OK, Wampserver indicates current PHP version is indeed PHP 8.3.18, try again to install Drupal, same error Composer need PHP 8.3+.
In Windows console, type "php -v" and get result:
PHP 8.2.13 (cli) (built: Nov 21 2023 16:09:25) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.13, Copyright (c) Zend Technologies
with Zend OPcache v8.2.13, Copyright (c), by Zend Technologies
with Xdebug v3.2.2, Copyright (c) 2002-2023, by Derick Rethans
---
So my PHP version is stil the old one 8.2.13
Asked help from ChatCPT which advises:
Open C:\wamp\bin\apache\apache[version]\conf\httpd.conf
LoadModule php_module "c:/wamp/bin/php/phpX.X.X/php[version].dll"
done that, I can see :PHPIniDir "${APACHE_DIR}/bin"
LoadModule php_module "${INSTALL_DIR}/bin/php/php8.3.18/php8apache2_4.dll"
which is OK
and also:
Open C:\wamp\wampmanager.conf
Find phpVersion and update it to the desired version.
I see: phpVersion = "8.3.18"
--------
What to do next?

Viewing all articles
Browse latest Browse all 3287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>