Title: Getting WordPress to recognize updated PHP version
Last modified: September 6, 2024

---

# Getting WordPress to recognize updated PHP version

 *  [andrew2968](https://wordpress.org/support/users/andrew2968/)
 * (@andrew2968)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/)
 * My org just (finally) upgraded PHP from 7.3.33 to 8.3.11. We can see on SiteWorx
   that it’s indeed 8.3.11 on our domain, but wp-admin in various spots, such as
   Site Health and wp-admin/plugins.php, still have warnings saying we’re still 
   on 7.3.33.
 * Does the upgrade take time to register? Is there somewhere/something else we 
   should be checking?

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Faisal Ahammad](https://wordpress.org/support/users/faisalahammad/)
 * (@faisalahammad)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-17999301)
 * Hi Andrew,
 * From my experience, I found that **php.ini **or **.htaccess** (I can’t remember
   which now) can control the PHP version. Please go to your website’s root folder
   and open both files to confirm that none of them are forcing the use of PHP v7.3.33.
 * If you find any line related to PHP v7.3.33, you can first download the file 
   for backup purposes and then delete the line to use the PHP version set from 
   the server side.
 * Give it a try, and let me know how that goes! 😄
 *  [Jamie Marsland](https://wordpress.org/support/users/jamesmarsland/)
 * (@jamesmarsland)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-17999359)
 * Sometimes it’s worth double checking with your hosting company support that it’s
   actually happened.
 *  Thread Starter [andrew2968](https://wordpress.org/support/users/andrew2968/)
 * (@andrew2968)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-17999398)
 * [@faisalahammad](https://wordpress.org/support/users/faisalahammad/) No luck 
   with that so far. My sysadmin and I both assumed that would work, but alas.
 * [@jamesmarsland](https://wordpress.org/support/users/jamesmarsland/) The SiteWorx
   domain panel shows our domain’s PHP version as 8.3.11. Would the host check something
   different?
 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-17999855)
 * > The SiteWorx domain panel shows our domain’s PHP version as 8.3.11.
 * Unfortunately, that doesn’t mean much. The web server control panel is merely
   reporting the latest version it has installed, and not what any vhost or script
   is using.
 * Run `phpinfo()` from the folder containing your WordPress to see your exact PHP
   running config, including the version of PHP running and available to WordPress.
   That’s what matters.
 * It’s quite common to have multiple PHP versions installed on a server, with site-
   specific configuration file pointing to (and loading) an older version of PHP.
   Sometimes a reload/restart of the web server software may be required to load
   the newly installed PHP version.
 * TEST to confirm what’s running, or else you’ll be banging your head against the
   wall thinking WordPress is misreporting when it may not.
 *  Thread Starter [andrew2968](https://wordpress.org/support/users/andrew2968/)
 * (@andrew2968)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-17999860)
 * Thanks, [@gappiah](https://wordpress.org/support/users/gappiah/).`phpinfo()` 
   is showing 7.3.33. The site was just moved over to a brand-new host running 8.3.11,
   as our old server couldn’t handle above 7.3.33.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-18000153)
 * Were all files copied during the move to the new host? Also a php.ini or the .
   htaccess in the main directory?
 * If a php.ini exists, take a look at it. If necessary, it may help to delete it(
   after a backup).
 * You could also delete the .htaccess as a test and have it recreated via WordPress
   under Settings > Permalinks by simply saving.
 * Apart from that: make sure that you are accessing the new server. It is easy 
   to forget that you are still on the old one after a move.
 *  Thread Starter [andrew2968](https://wordpress.org/support/users/andrew2968/)
 * (@andrew2968)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-18003928)
 * Grr, still no luck. There’s no php.ini present. I deleted .htaccess and recreated
   it with Settings > Permalinks. My sysadmin “confirmed [we’re using the new server]
   using the trace route”.
 * We have a site backup, so his next thought is to do a manual update of WordPress
   tonight on a shot-in-the-dark theory that that will get it to check the current
   PHP version. We’re sort of grasping at straws at this point.
    -  This reply was modified 1 year, 9 months ago by [andrew2968](https://wordpress.org/support/users/andrew2968/).
 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-18004100)
 * `phpinfo` is a native PHP function. It’s totally independent of WordPress.
 * And if PHP’s own `phpinfo` is telling you you’re running PHP 7.3.33, you better
   believe it: looking in WordPress for a solution may be akin to knocking on the
   wrong door.
 * > My sysadmin “confirmed [we’re using the new server] using the trace route”.
 * Did you show your “sysadmin” your `phpinfo` test page?
 * What do they say about that?
 *  Thread Starter [andrew2968](https://wordpress.org/support/users/andrew2968/)
 * (@andrew2968)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-18004145)
 * We understand that. But `phpinfo`‘s report conflicts with what SiteWorx is showing,
   that our domain is running 8.3.11. So at this point it sounds like it’s not a
   question for a WP forum unless someone feels like suggesting things to check 
   that technically aren’t on-topic here.
    -  This reply was modified 1 year, 9 months ago by [andrew2968](https://wordpress.org/support/users/andrew2968/).
 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-18004170)
 * SiteWorx is a control panel on top of the OS (and the webserver and PHP and whatnot).
   Believe what the lower-level PHP engine is telling you.
 * As I mentioned earlier, you have multiple PHP versions: SiteWorx is merely telling
   you what it’s **_configured_** for the account, but `phpinfo` is telling you 
   what’s actually **_running_** for the account.
 * This sort of discrepancy is far more common than you may realize. See this other
   long-winded “WordPress thinks my PHP is older” thread and how it ended: [https://wordpress.org/support/topic/wordpress-thinks-my-php-is-older-version/](https://wordpress.org/support/topic/wordpress-thinks-my-php-is-older-version/)
 * If this is a private server, reload/restart your web server software (Apache,
   Nginx, etc) or even reboot the entire machine (if you’ve not done so already)
   and let’s see what happens.
 * If it’s a shared hosting server, pass on the `phpinfo` test page to your hosting
   provider. It should be their responsibility to get this sorted.
 * > So at this point it sounds like it’s not a question for a WP forum
 * Indeed.
 * Please do share with us how this gets resolved though.
 * Good luck!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Getting WordPress to recognize updated PHP version’ is closed to new 
replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 5 participants
 * Last reply from: [George Appiah](https://wordpress.org/support/users/gappiah/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/getting-wordpress-to-recognize-updated-php-version/#post-18004170)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
