I've successfully added PHP v8.0 to my stable of PHP versions runnning under UwAmp 3.1.0. Since PHP v8.0 changes the name of the apache php module to simply 'phpmodule' wiithout the major version number, the httpd_uwamp.conf file must be updated replacing the line loading the {PHPMODULENAME} with the following:
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>
Thank you for the advice!
I had trouble doing the same. I write this before trying the following, in case I forget to post it afterwards, and someone else needs the same help.
I tried replacing line 166 of
httpd_uwamp.conf, which contains the textLoadModule {PHPMODULENAME} "{PHPPATH}/{PHPAPACHE2FILE}". Apparently, I also need to copy thephp_uwamp.inifrom the old PHP version to the new version. In/bin/, there is a folderphpfor the PHP versions, a folderdatabasesfor the MySQL versions, and a folderapachewhich I don't think we should touch.Here are the contents of a relevant comment from a different quesiton:
It would be nice if someone made a video guide or more detailed guide about how to do those things, or maybe even an utility to make UWamp usable with newer versions (like patching the file you mentioned, installing other versions of PHP, other versions of MySQL, and other compatible database systems.
Links to different questions related to this one:
How to upgrade php version in uWamp
How to upgrade MySQL in UwAmp?