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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -