Title: Incorrect PHP Version Detected
Last modified: June 19, 2018

---

# Incorrect PHP Version Detected

 *  Resolved [webmasterMS](https://wordpress.org/support/users/webmasterms/)
 * (@webmasterms)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/incorrect-php-version-detected/)
 * Our PHP version is being detected at PHP 5.2.17 by Wordfence. I can see it in
   a Warning message in the site Dashboard and I also got an email about it today
   after visiting the website.
 * Please advise how I can figure out why its detecting the wrong PHP version.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fincorrect-php-version-detected%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [wfscott](https://wordpress.org/support/users/wfscott/)
 * (@wfscott)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/incorrect-php-version-detected/#post-10433870)
 * Hello [@webmasterms](https://wordpress.org/support/users/webmasterms/)
 * I am also seeing PHP version 5.2.17 in my check of the site using curl. Perhaps
   the correct version of PHP is not running on your server as intended.
 * One way to check the version is to create a test.php file in the root of your
   site directory with the single line <?php phpinfo(); ?>
 * When I do the same, I am presented with the current PHP version at the top along
   with other configuration information.
 * If it is indeed running 5.2.17, your web host should be able to get you on the
   right track to update that.
 * -Scott
 *  Thread Starter [webmasterMS](https://wordpress.org/support/users/webmasterms/)
 * (@webmasterms)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/incorrect-php-version-detected/#post-10434260)
 * Thanks for your reply and time Scott. I have resolved this issue with our web
   host – I forgot to come back here and delete/update this post.
 * Its’s odd you still see 5.2.17.
 * I did do a phpinfo page and then contacted our web host and found I had .htaccess
   commands causing this issue – which was desired years back.
 * When I contacted them I had 2 plugins warning me that our server was running 
   PHP 5.2.17. Our web host identified commands in .htaccess causing this and I 
   removed them. Hours later when I checked again both plugin warnings were gone.
 *  Plugin Support [wfscott](https://wordpress.org/support/users/wfscott/)
 * (@wfscott)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/incorrect-php-version-detected/#post-10434427)
 * Sure, anytime!
 * I ran the curl command the other day when I first saw your case, so it may be
   that I checked before you got the PHP updated. In any event, I’m happy to hear
   you got the issue resolved!

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

The topic ‘Incorrect PHP Version Detected’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wfscott](https://wordpress.org/support/users/wfscott/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/incorrect-php-version-detected/#post-10434427)
 * Status: resolved