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.

  1. should work or need root access use phantomjs.
  2. 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');
  3. 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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -