• Resolved platgym

    (@platgym)


    Hi Guys,

    I just installed ewww image optimizer 2.5.3 and I keep getting the following error: EWWW Image Optimizer requires exec(). Your system administrator has disabled this function.

    I contacted my host provider and asked them to enable exec() function and they did. However, the error message didn’t go away and now they have enabled everything at this point, unfortunately, the can’t seem to figure it out (see link for details).

    Details

    Help please and thank you!

    -platgym

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Shane Bishop

    (@nosilver4u)

    Please turn on EWWW’s debugging option, and post your debug information from the settings page (use pastebin.com if you like).

    Thread Starter platgym

    (@platgym)

    Hi nosilver4u,

    As requested http://pastebin.com/ipD7bF6d.

    Thanks

    -platgym

    Plugin Author Shane Bishop

    (@nosilver4u)

    When looking at the debuggging, PHP is telling EWWW that ‘disable_function’ is set to this:

    disable_functions: mail, apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd, eval, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, mysql_pconnect, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode

    As you can see, exec() is listed in there, so your webhost has something odd setup that is preventing the php.ini in your home folder from overriding it. In fact, from my experience, if it is set at the system level, it CANNOT be overridden by a user-specific config file (php.ini).

    Thread Starter platgym

    (@platgym)

    Hi nosilver4u,

    Thanks for update. So, I guess there’s nothing my hosting can do?

    -platgym

    Plugin Author Shane Bishop

    (@nosilver4u)

    I wouldn’t say “nothing”, but their support folks may not be able/allowed to override something at the system level. Your web host could most definitely enable exec() on the server if they wanted to, but their policy may prevent the support team from doing such a thing.

    I generally recommend that folks find a webhost that doesn’t feel the need to limit the functionality of php to achieve security. There are plenty of solid webhosts out there that permit exec(). If that isn’t an option, the EWWW IO API is rather cheap, and will work even without exec(): https://ewww.io/plans/

    Thread Starter platgym

    (@platgym)

    Alright, thanks for all your insight!

    -platgym

    FYI: everything works fine by default at Hostgator shared plans without any further adjustments and also at NameCheap where you may have your own php.ini file that solves this issue.
    Other cheap shared hosting providers I tested with have all the same issue with exec() and won’t provide any help with that.

    Plugin Author Shane Bishop

    (@nosilver4u)

    Indeed, they are both on the list of known working webhosts: https://ww.wp.xz.cn/plugins/ewww-image-optimizer/installation/

    Good to know… I never noticed this list before.
    Many thanks!

    PS: and from my experience, when you encounter this error with this plugin with your hosting package it usually means that you’ll get other errors with other plugins or features and that you simply should globally avoid this hosting company…

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

The topic ‘Exec() Error Won't Go Away’ is closed to new replies.