Join the community today
Register Now

PHP-FPM - checking php disabled_functions

Discussion in 'Beta release code' started by eva2000, Aug 13, 2014.

  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    11:55 AM
    Nginx 1.13.x
    MariaDB 5.5
    Thought I'd preview this in Beta release code forums.

    Playing around with a script, to regularly check PHP error log for PHP warnings for disabled_functions which are being used by PHP scripts if you have set disabled_functions list in php.ini. Added both email and notifications to the script thanks to @Matt heads up on API usage Pushover | Centmin Mod Community :) checks the php error logs filtered by current day, so you don't end up with duplicate notifications from previous days. Still a work in progress :)

    PHP Warning: exec usage detected
    PHP Warning: passthru usage detected
    PHP Warning: popen usage detected
    PHP Warning: proc_open usage detected
    PHP Warning: shell_exec usage detected
    PHP Warning: system usage detected
    check completed in .316732820 seconds