0
Follow
0
View

Switch to php 8 Wordpress

anxiaoli520528 注册会员
2023-01-25 19:00

If you are having multiple php versions and want to use different version and output the same in phpinfo() type the following: To disable the current version for example php8.1:

sudo a2disconf php8.1-fpm

To enable php7.4-fpm:

sudo a2enconf php7.4-fpm

Then restart apache using this command:

sudo systemctl restart apache2

After doing this check using phpinfo() function. Please check if you have installed php8.1-fpm or php7.4-fpm

About the Author

Question Info

Publish Time
2023-01-25 19:00
Update Time
2023-01-25 19:00