Welcome! Log In Create A New Profile

Advanced

PHP exec function failing to execute certain commands

Posted by cahalsall 
PHP exec function failing to execute certain commands
November 23, 2021 07:48PM
The following code ran fine in PHP under apache but is failing to run under nginx/php-fpm:

exec( "/usr/bin/xvfb-run -a -s '-screen 0 640x480x16' /usr/bin/wkhtmltopdf --page-size Letter --margin-top 10 --margin-bottom 10 $url $tempPDF" );

I've been through all the configuration files but nothing I've done seems to work, not even the error logs are reporting anything.

This server was initially configured by the iRedMail installation script.
Re: PHP exec function failing to execute certain commands
November 24, 2021 12:32PM
I would also like to add that this works fine from the command line.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 54
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready