I have the same warning message in Drupal report since I use php 7 witch is :

PHP shell_exec is non-functional. Check php.ini for safemode or disable_functions.

I discovered this message is generated by https://api.briarmoon.ca/api/advagg/advagg_ext_minify%21advagg_ext_minify.install/function/advagg_ext_minify_requirements/8.x-2.x

I take a look to my php.ini, safemode is disabled and there are no disabled functions in section disable_functions of php.ini

Step to reproduce :

Use NGINX with php-7-fpm on a FreeBSD system

Install Drupal 8

Install Advanced CSS/JS Aggregation module

Install all advagg sub-modules mainly AdvAgg External Minification

Go to the administration report page and look by yourself the message.

Thanks for any help.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Yannick WEBER created an issue. See original summary.

NickDickinsonWilde’s picture

hmm I'm *thinking* that might be related to: http://stackoverflow.com/questions/29272233/php-fpm-does-not-work-exec-s...
but definitely not sure; could you confirm if that is the issue or not? and I'll do some more investigating as well.

Yannick WEBER’s picture

None of the 2 scripts myphp.info nor info.php are working in web browsers.

But the both of them are working in a shell via php myphp.info and php info.php commands

May that help you ?

NickDickinsonWilde’s picture

more information is almost always helpful, thanks.
Depending on where my research leads me, might need to spin up a FreeBSD system for testing. If that is the case, what versions of Nginx & FreeBSD are you using?
thanks

Yannick WEBER’s picture

On this testing system we use FreeBSD 11 with the latest php7.0.16 ports and the latest nginx 1.0.3 ports

NickDickinsonWilde’s picture

Status: Active » Needs review
FileSize
1.73 KB

My check for availability of the shell_exec command wasn't good on FreeBSD systems. Specifically was testing with a command that doesn't exist in FreeBSD.
Patch attached that should make it work, can you apply and test?

Yannick WEBER’s picture

Status: Needs review » Active

I confirm, your patch seems to be working.

Thanks

NickDickinsonWilde’s picture

Title: shell_exec non-functional with php7 » shell_exec non-functional on FreeBSD
Status: Active » Fixed

great, thanks for the report and testing :D

  • NickWilde committed f694502 on 8.x-2.x
    Issue #2859464 by NickWilde, Yannick WEBER: shell_exec non-functional on...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.