• Resolved Suresh

    (@meraneed)


    Hi,

    I am trying to enable the plugin but i am the error message as
    EWWW Image Optimizer requires exec(). Your system administrator has disabled this function.

    I am on VPS and i can edit any file on the server. I had contacted the host provider, they said exec is enabled.

    Gone through php.ini file and found that disable_functions = empty no functions list there.

    ; Comma separated blacklist of functions that are not allowed to be called. If
    ; no whitelist is given, calling a function within the blacklist will terminate
    ; the script and get logged.
    ;suhosin.executor.func.blacklist =

    Removed ; in last line, still problem not resolved.

    OS: CentOS 6.4 64bit
    Wordpress: 3.7.1 Multisite Enabled

    Please provide solution for this.

    Regards,
    Suresh

    https://www.ads-software.com/plugins/ewww-image-optimizer/

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

    (@nosilver4u)

    Create a file called info.php with these contents on your server:

    <?php phpinfo(); ?>

    Then post the url to that file here.

    Thread Starter Suresh

    (@meraneed)

    Plugin Author nosilver4u

    (@nosilver4u)

    Yeah, look at this setting on that url you just posted at the very end:

    suhosin.executor.func.blacklist = passthru, show_source, shell_exec,
    system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate,
    proc_get_status, proc_close, leak, apache_child_terminate, posix_kill,
    posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd,
    escapeshellarg, exec

    Did you restart your webserver (apache, nginx, etc.) after you made that file change?

    Thread Starter Suresh

    (@meraneed)

    Yes, restarted the web service and also rebooted the server. No change.

    Plugin Author nosilver4u

    (@nosilver4u)

    If I remember correctly, you have to actually set ‘suhosin.executor.func.blacklist’ to something, it can’t just be blank. So you could have it be something simple like this:

    suhosin.executor.func.blacklist = passthru

    then restart your web service (you should never need to reboot the server unless you’ve upgraded the kernel).

    Thread Starter Suresh

    (@meraneed)

    Ok, I had added the passthru there and enter service httpd restart to restart service. But still not working.

    Plugin Author nosilver4u

    (@nosilver4u)

    According to this post: https://stackoverflow.com/questions/3335187/phpinfo-difference-between-master-and-local-value

    The value in question is being set somewhere in your apache config, or in a .htaccess file in your web root.

    If you look at your phpinfo.php file above, you’ll see under the suhosin settings that the value you set in your php configuration is shown on the right-hand column, whereas the value set by apache that is overriding this is on the left side.

    Find where that is set, and you’ll be able to solve the problem.

    Thread Starter Suresh

    (@meraneed)

    I found this here

    /etc/zpanel/configs/apache/http-vhost.conf

    ################################################################
    # ZPanel generated VHOST configurations below…..
    ################################################################

    # DOMAIN: meraneed.com
    <virtualhost *:80>
    ServerName meraneed.com
    ServerAlias meraneed.com https://www.meraneed.com
    ServerAdmin zadmin@localhost
    DocumentRoot “/var/zpanel/hostdata/zadmin/public_html/meraneed_com”
    php_admin_value open_basedir “/var/zpanel/hostdata/zadmin/public_html/meraneed_com:/var/zpanel/temp/”
    php_admin_value suhosin.executor.func.blacklist “passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec”

    Just replace php_admin_value suhosin.executor.func.blacklist “passthru”

    enough?

    Thread Starter Suresh

    (@meraneed)

    Ok just commented the line

    php_admin_value suhosin.executor.func.blacklist “passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec”

    and it worked ??

    Plugin Author nosilver4u

    (@nosilver4u)

    good deal, I think that information will help some other folks too, because I know we had one a while back that was being quite difficult to track down with suhosin.

    Thread Starter Suresh

    (@meraneed)

    Thanks for your great support. Love this plugin ??

    This is pretty much what is happening to me. (I can’t do a thing about it because of godaddy’s shared hosting)

    good work around is to do 20 images at a time. It seems the blacklist caps out at 22 images.

    Plugin Author nosilver4u

    (@nosilver4u)

    @vermino, if you want help, please post a new thread.

    Is it safe to keep that line commented?

    Plugin Author nosilver4u

    (@nosilver4u)

    suhosin is obsolete, and isn’t even included in newer versions of php. If you are worried about security, I would look into upgrading your PHP version (if possible).

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘EWWW Image Optimizer requires exec(). Your system administrator has disabled thi’ is closed to new replies.