Title: Does not detect correct php version
Last modified: March 29, 2018

---

# Does not detect correct php version

 *  Resolved [Moodles](https://wordpress.org/support/users/moodles/)
 * (@moodles)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/does-not-detect-correct-php-version/)
 * Our site has been using Sucuri for over a year. Recently on the dashboard I see
   this message:
    “SUCURI: The plugin requires PHP 5 >= 5.3.0 – OR – PHP 7”
 * On Cpanel at our host, the host is running 5.62.
    I chatted online with Sucuri
   at our account there, and was told to uninstall and reinstall the plugin. No 
   change.
 * We are experiencing regular brute force attacks and I want Sucuri running correctly
   and I’m concerned about the PHP issue. How can I get the plugin to detect the
   correct PHP version?
 * Thank you for your help.
 * PS. wordpress and all other plugins are updated and backed up.
    -  This topic was modified 8 years, 2 months ago by [Moodles](https://wordpress.org/support/users/moodles/).

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

 *  [yorman](https://wordpress.org/support/users/yorman/)
 * (@yorman)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/does-not-detect-correct-php-version/#post-10128471)
 * Lets answer that question taking a look at the code…
 * The error message is triggered here [1] after getting a negative response from
   a function defined here [2]. The function checks if four special classes are 
   available in your PHP installation, these classes were introduced with PHP 5.3
   so that’s why the message says that, but it doesn’t actually check if the version
   is equal or above.
 * It seems that your PHP installation, while being clearly above 5.3, doesn’t have
   one or more of these classes. This prevents the execution of the file system 
   scanner, one of the main features in the plugin, that’s why it displays the warning.
 * Talk with your hosting provider and ask about this.
 * [1] [https://github.com/Sucuri/sucuri-wordpress-plugin/blob/8072151/src/interface.lib.php#L188-L191](https://github.com/Sucuri/sucuri-wordpress-plugin/blob/8072151/src/interface.lib.php#L188-L191)
   [
   2] [https://github.com/Sucuri/sucuri-wordpress-plugin/blob/8072151/src/fileinfo.lib.php#L103-L118](https://github.com/Sucuri/sucuri-wordpress-plugin/blob/8072151/src/fileinfo.lib.php#L103-L118)
 *  Thread Starter [Moodles](https://wordpress.org/support/users/moodles/)
 * (@moodles)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/does-not-detect-correct-php-version/#post-10128714)
 * yorman, thanks for the help.
 * Bluehost tried raising the php version to 7.0 but it broke the theme, however
   when he changed it back to 5.62 that somehow registered correctly with Sucuri.
   So no more error message and the app is up to speed now. Thanks for your input,
   I wasn’t sure where the problem lay.
 *  [bemsertanejo](https://wordpress.org/support/users/bemsertanejo/)
 * (@bemsertanejo)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/does-not-detect-correct-php-version/#post-10565160)
 * Problem
 *  [yorman](https://wordpress.org/support/users/yorman/)
 * (@yorman)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/does-not-detect-correct-php-version/#post-10565164)
 * [@bemsertanejo](https://wordpress.org/support/users/bemsertanejo/) problem with
   what?

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

The topic ‘Does not detect correct php version’ is closed to new replies.

 * ![](https://ps.w.org/sucuri-scanner/assets/icon-256x256.png?rev=2875755)
 * [Sucuri Security - Auditing, Malware Scanner and Security Hardening](https://wordpress.org/plugins/sucuri-scanner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sucuri-scanner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sucuri-scanner/)
 * [Active Topics](https://wordpress.org/support/plugin/sucuri-scanner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sucuri-scanner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sucuri-scanner/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [yorman](https://wordpress.org/support/users/yorman/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/does-not-detect-correct-php-version/#post-10565164)
 * Status: resolved