php - Using PhantomJS on host without root access -
i have been struggling long time decided ask here.
i want use phantomjs on host not have root access. right using 000webhost.com test things, apache ver. 2.2.19 (unix)
, uploaded phantomjs-1.9.1-linux-i686.tar.bz2
pulic_html/phantomjs-1.9.1-linux-i686.tar/
file.
- should work or need root access use phantomjs.
- if should work because php executing wrong
exec('http://example.com/phantomjs-1.9.1-linux-i686.tar/phantomjs-1.9.1-linux-i686.tar.bz2 http://example.com/countdown.js');
- will vps hosting root access work.
as can see confused , great.
usually executing applications in shared hosting environment isn't best practice , hosting provider may not allow it. recommend getting vps if need run phantomjs since have full control on how run applications.
running application root , calling php bad idea. if system compromised, attacker has root access. create account restricted privileges on vps running phantomjs. can proceed call phantomjs php using exec
.
Comments
Post a Comment