apache - Pageres does not work with php exec -
i installed npm module on digitalocean droplet
https://github.com/sindresorhus/pageres
it works right if access terminal directly. but, if access them php via exec()
, loads, , loads, , loads...and mysql server shutting down (or apache?) , need sudo restart
.
then tried this:
exec('pageres http://google.com 2>&1', $output, $returncode); $output = implode(php_eol, $output); echo $output . ' ' . $returncode;
and loads long time, become message generated 82 screenshots 1 url , 82 resolutions
. loads correct 82 images in projekt, have not entered other parameter pageres (for other resolutions).
i have same problem on local xampp.
if run whoami
on website exec(), become www-data
, if run on terminal, become safeuser
. important?
// edit: tried laravel 4 ssh
, whoami
returns safeuser
, not work
Comments
Post a Comment