Viewing 11 replies - 1 through 11 (of 11 total) Show Site health is telling you what WordPress sees. Most servers can support multiple versions of PHP. Check both the .htaccess file for your site and an php.ini files to see if they’re picking a version other than the one you just installed. Thread Starter hiker (@hikeventures) Thanks Steve, my .htaccess file is blank and I have also changed my php.ini. Still doesn’t work … You can’t have a working WP site and a blank .htaccess file! Anyhow, there’s something in your configuration that’s overriding the change you made to PHP and that occurs outside of WordPress. Tell me about your hosting. Thread Starter hiker (@hikeventures) I am hosting my site on Hetzner. I also have nginx and there I have changed the line below with the PHP version installed: directory: /etc/nginx/sites-available In the php.ini which is located here /etc/php/7.4/fpm I have changed different max values. What do you see if you try
What version of php is running? Thread Starter hiker (@hikeventures)
So you have two php-fpm processes running. What happens if you stop the one from 7.2?
This is clearly not a WP problem but a Linux admin issue. Thread Starter hiker (@hikeventures) Now I get an error Error 502 when I visit my site … OK, so something in your nginx or httpd config is referencing PHP 7.2. You’re going to have to dig through your configs in /etc (and other places) as well as in the site’s root to find out what’s doing it. Restart that php-fpm process to get your site working again. Thread Starter hiker (@hikeventures) Thanks, Steve, is there maybe a program which could trace from where this PHP 7.2 referencing comes? There are quite a lot of files … Linux sysadmin is not for the faint of heart! I’d ask in a support forum for your particular Linux flavor. Viewing 11 replies - 1 through 11 (of 11 total) I have a WP website that run on ubuntu 14.4 with php 7.0.21. but when i check the WP PHP version i get
asked Nov 11, 2018 at 7:27
2 It turns out that the version that was defined on Apache was different from that configured on the server. I Fixed that by change the defulte php version on the apache
answered Nov 12, 2018 at 15:11
How do I update the PHP version on my WordPress server?To update your WordPress site's PHP version, go to Sites and select the site you'd like to change the PHP version on. Then click on the Tools tab. Under PHP Engine click on the Modify button and select your preferred PHP version in the drop-down menu.
What version of PHP should WordPress use?PHP version 7.4 is highly recommended by the official WordPress team. This version was released in Nov 2019 and over 28.7% of WordPress websites are running on it.
Can we change PHP version in managed WordPress?In your My Products page, next to Managed WordPress, select Manage All. menu. Under Production Site, next to PHP version select Change. From the menu, choose the PHP version to change to, then select Save Changes.
How do I update PHP to 7.4 in WordPress?Navigate to the Manage Domains page. Click the Edit link to the right of a domain. On the domain's settings page, look under the Web Options section for the PHP version: You should upgrade to 7.4 or 8.0.
|