• Resolved stevewatson

    (@stevewatson)


    Recently my hosting provider upgraded their version of PHP and we are now on version 5.4.27. I then started seeing the “requires exec()” error message so I reset my php.ini file to enable this function, which I have confirmed by viewing my PHP configuration. The only disabled functions are the following:

    disable_functions: show_source, passthru, popen, proc_open, allow_url_fopen

    I have removed the plugin and reinstalled, but I am still seeing the “requires exec()” error message. Are you aware of any problems with updated versions of PHP?

    https://wordpress.org/plugins/ewww-image-optimizer/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    I’m not aware of any problems with PHP 5.4, but I can check into it. I have 5.4.4 on my dev box. Please turn on debugging and post the debugging information from the EWWW IO settings page.

    Thread Starter stevewatson

    (@stevewatson)

    Apologies for my massive delay in responding.

    EWWW IO version: 201
    WP version: 4.0
    ewww_image_optimizer_admin_init()
    ewww_image_optimizer_init()
    ewww_image_optimizer_cloud_init()
    ewww_image_optimizer_exec_init()
    ewww_image_optimizer_install_tools()
    Checking/Installing tools in /home/[removed]/public_html/wp-content/ewww/
    wp-content/ewww permissions: 0755
    ewww_image_optimizer_install_paths()
    CPU architecture: x86_64
    generated paths:
    /home/[removed]/public_html/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64
    /home/[removed]/public_html/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /home/[removed]/public_html/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /home/[removed]/public_html/wp-content/plugins/ewww-image-optimizer/pngquant-linux
    /home/[removed]/public_html/wp-content/plugins/ewww-image-optimizer/cwebp-linux864
    /home/[removed]/public_html/wp-content/ewww/jpegtran
    /home/[removed]/public_html/wp-content/ewww/optipng
    /home/[removed]/public_html/wp-content/ewww/gifsicle
    /home/[removed]/public_html/wp-content/ewww/pngquant
    /home/[removed]/public_html/wp-content/ewww/cwebp
    64-bit linux detected while installing tools
    ewww_image_optimizer_md5check()
    /home/[removed]/public_html/wp-content/ewww/jpegtran-alt: 8e4a09bb04ba001f5f16651ae8594f7f
    ewww_image_optimizer_md5check()
    /home/[removed]/public_html/wp-content/ewww/cwebp-alt: eb3a5b6eae54140269ed6dcf6f792d37
    Linux/UNIX style OS, checking permissions
    jpegtran permissions: 0755
    gifsicle permissions: 0755
    optipng permissions: 0755
    pngquant permissions: 0755
    webp permissions: 0755
    ewww_image_optimizer_settings_script()
    images to check for savings: 49334
    ewww_image_optimizer_notice_utils()
    ewww_image_optimizer_exec_check()
    disable_functions = show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen
    suhosin_blacklist =
    ewww_image_optimizer_disable_tools()
    ewww_image_optimizer_options()
    ewww_image_optimizer_jpg_background()
    ewww_image_optimizer_jpg_background()
    ewww_image_optimizer_jpg_quality()

    My php.ini
    disable_functions = show_source, passthru, popen, proc_open, allow_url_fopen
    memory_limit = 64M
    max_execution_time = 30
    max_input_time = 60
    upload_max_filesize = 24M
    post_max_size = 24M
    extension_dir = “/usr/local/lib/php/extensions/no-debug-non-zts-20100525”
    realpath_cache_size = 16K
    realpath_cache_ttl = 120
    zend_extension = “/usr/local/IonCube/ioncube_loader_lin_5.4.so”
    zend_extension = “/usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so”

    Plugin Author nosilver4u

    (@nosilver4u)

    I would ask your webhost why your settings are not overriding their defaults. As you can see in the debug info, php is running with exec() disabled, even though you don’t have it listed in your disable_functions setting.
    One thing you can do to get more information on what php is doing is to create a file named test.php in your web/http folder with this code, and then browse to it:

    <?php phpinfo(); ?>

    If your webhost isn’t helpful, and you’re still stuck, post a link back here to that test.php file and who your webhost is, and I’ll see if I can glean any more information from that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Upgrade and Requires exec()’ is closed to new replies.