skip to Main Content

Trying to initiate local WordPress i got the message :
Votre serveur utilise la version 5.6.18 de PHP mais WordPress 5.2 nécessite au moins la version 5.6.20.
How can I solve the problem
Thanks and Regards

4

Answers


  1. You can update PHP version within the control panel of uWamp.
    also you can install manually any version that you want and uWamp will recognize.

    uWamp screenshot

    Login or Signup to reply.
  2. After manually upgrading php to version 7.4.9 in uWamp there is a warning in phpMyAdmin. This is caused by a too old version of phpMyAdmin in uWamp. After upgrading phpMyAdmin to version 4.9.5 the warnig in phpAdmin has been gone.

    Login or Signup to reply.
  3. As a note, you might simply copy over an existing php_uwamp.ini file into the new PHP folder to retain the customizations you have. Please bear in mind that when switching to a new MAJOR version (v7 to v8) the .ini may have changed.

    Login or Signup to reply.
  4. After a few failures I finally managed to make php-7.4.24 and php-8.0.10 run – and it’s very easy!

    1. Go to the PHP Windows Download Page.

    2. Get the x86 Thread Safe version(s)

    3. UnZIP to a (in my case) php-7.4.23 and php-8.0.10 folder

    4. Add this lines to httpd_uwamp.conf around line 166:

      Define {PHPMODULENAME} {PHPMODULENAME}

    <IfDefine php8_module>
    LoadModule php_module "{PHPPATH}/{PHPAPACHE2FILE}"
    </IfDefine>
    <IfDefine php7_module>
    LoadModule {PHPMODULENAME} "{PHPPATH}/{PHPAPACHE2FILE}"
    </IfDefine>
    <IfDefine php5_module>
    LoadModule {PHPMODULENAME} "{PHPPATH}/{PHPAPACHE2FILE}"
    </IfDefine>
    
    1. Start UwAmp.
    2. It will find the new php versions and ask if you want to install, say yes, and choose the production ini

    Code sample is from this link

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search