PHP version not updated in WP
-
My host, EarthLink, via their PHP Manager, says I’m running PHP 7.4
WP continues to give error message in Tools/Site Health that I’m on 7.2.25
From another post in this thread with a similar topic, I learned about .htaccess files
Editing those files solved their problem
Their .htaccess file was pointing to the wrong installation of PHP
I have no idea how to edit .htaccess files
I found 4 of them on my site:
*one dated 12/21/20 is in /
*one dated 12/11/20 is in /public
*one dated 10/24/20 is in /public/wp-content/plugins/akismet
*one dated 06/07.20 is in /public/wp-content/updraft
I have downloaded all 4. Here are the contents:
—————————————————————————————
dated 12/21/20 in /
DirectoryIndex index.html index.webc home.html index.htm index.shtml home.htm index.cgi home.cgi index.php4 index.php5 index.php default.htm default.html index.phtml
AddType application/x-httpd-php .php .phtml .php3 .php5 .php4
[5 blank lines]
SetEnv PHPRC /services/webpages/n/o/noana.org/php.ini—————————————————————————————
dated 12/11/20 in /public
DirectoryIndex index.php
# BEGIN WordPress
# The directives (lines) between “BEGIN WordPress” and “END WordPress” are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.# END WordPress
# for PHP7.4-CGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php-cgi—————————————————————————————
dated 10/24/20 in /public/wp-content/plugins/akismet
# Only allow direct access to specific Web-available files.# Apache 2.2
<IfModule !mod_authz_core.c>
Order Deny,Allow
Deny from all
</IfModule># Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule># Akismet CSS and JS
<FilesMatch “^(form\.js|akismet\.js|akismet\.css)$”>
<IfModule !mod_authz_core.c>
Allow from all
</IfModule><IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch># Akismet images
<FilesMatch “^logo-full-2x\.png$”>
<IfModule !mod_authz_core.c>
Allow from all
</IfModule><IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>—————————————————————————————
dated 06/07.20 in /public/wp-content/updraft
deny from all
—————————————————————————————
Is this enough info for someone to help?
I would like to have WP/Tools/Site Health report correct PHP version or fix it if I’m somehow still running the older version despite what EarthLink says.
Any help will be greatly appreciated!
Many thanks, Davis
- You must be logged in to reply to this topic.