Unable to install PhantomJS - server

I am working on a project which needs PhantomJS for scraping ajax content. It is working pretty well in my local pc which has Windows 8.1 OS and using apache local server. I got a shared server for running this project remotely. The shared server has CentOS 6.2. When I am running phantomjs it is asking for fontconfig and freetype libraries but it is not possible to install it on a shared server. Is there any way to do it? Is there any alternative to PhantomJS?

PhantomJs is a Headless Browser and you can find the list of Headles Browsers in the link:
Headless Browser and scraping - solutions

Related

Download RPM on Windows PC then install on Centos server

I'm really stuck in installing services in Centos server. I almost browse all the pages in Google result. I'm a Windows user and very new in Linux environment, so it makes me difficult to understand all the results from Google.
The server doesn't have option to connect to the internet. Based on my research, my only way is to download all the RPM files in a machine with internet then transfer it to my server.
Problem: I cannot find the official package list of YUM so I can download it one by one like the https://bower.io/search/. There's a lot of downloadable files showing if I type in Google "YUM php7 rpm".
Edit: I am currently using YUM because I don't know any other way to install packages in Centos. I only want to install the following :
php7
nodejs
composer
supervisor
nginx
I don't have any access to any media. I just remotely access it via putty and Filezilla. But I have root access.

Best workflow for to work with Ionic2 and Angular2

I'm usually developing PHP backend apps. I'm developing on Windows and use Vagrant to create virtual machine.
Workflow looks like that:
On base machine I have all my project files and I'm using git.
On base machine I have installed PhpStorm which is connected over ssh to virtual machine. PhpStorm is syncing files from base machine to local machine (in one direction)* using deployment.
Every library and module like nodejs, ruby, gulp etc. I'm installing on virtual machine to not clutter my base machine.
Debugging works fine - I can connect PhpStorm debugging over remote ssh.
Almost everything it's fine with that workflow (sometimes I have to download some generated files on virtual machine), but that workflow is not the best for working with Ionic2 and Angular.
Ionic uses many nodejs modules -> this causing many problems in PhpStorm to hinting errors and code completion. Second problem is debuging I can't connect typescript debugging from PhpStorm because all files all generated by gulp on virtual machine.
My question is:
What's is the best workflow when I want to work on windows with ionic2?
Do I have to install all libraries on Windows machine?
Should I use shared folders for that project is any possibility to hinting in PhpStorm?
base machine - on Windows
virtual machine - on Ubuntu 14 Server LTS
I can't use shared folders cause of slowly cache creating on PHP app and in general PHP apps running then very slowly, even if I moved cache folder to not shared folder on Ubuntu.
If you have Ionic CLI installed you can start new project by ionic start command. It provides you workflow with everything you can need. For example:
$ ionic start cutePuppyPics --v2 //create new project
$ cd cutePuppyPics
$ ionic serve //start server, live reload etc.
Yes, you should install it all on your non-virutal desktop, because if you want to test app on your device, it will be hard to link this device to ADB in your virtual machine.
It works very well with PhpStorm :)

KMC doesn't load after kaltura installation on centos

I installed kaltura CE5 on centos 6.4 64 bit version. I followed instructions from http://www.sparksupport.com/blog/how-to-install-kaltura-in-centos. The installation is successfull but I am not able to launch KMC. The KAC works fine. I tried logging in from KAC too. I have tried it on 32 bit too. Pls advise.
thanks!
ib
Kaltura CE5 is an outdated system.
You should install the new Kaltura CE9X
Use CentOS 6.5 64 bit (32 bit systems are not supported) and follow this tutorial (for stand alone system):
https://github.com/kaltura/platform-install-packages/blob/master/doc/install-kaltura-redhat-based.md
if the installation is ok with the command localhost.localdomain/start the starting page will open. (replace with the localhost and localdomain you have chosen like kaltura.yourdomain.com)
To open the kmc use the url localhost.localdomain/kmc on the web browser.

PHP CentOS OpenOffice Headless

I have a (dv) server from mediatemple running CentOS.
I am trying to convert .doc or .ppt to .pdf files using php shell_exec
After searching through stackoverflow and dozens of sites I ran this command under root through ssh.
yum install openoffice.org-headless
Then I ran, soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard & which I thought was supposed to run it headless on the server.
I keep running into this error.
# javaldx: Could not find a Java Runtime Environment!
How can I install this Java Runtime Environment and then what should I be using for the shell_exec command?
Any help appreciated.
You might have to upgrade your DV. I was running into the same issue after I installed Open Office. I was running the 512MB virtual server. I upgraded to the 2048MB virtual server and was able to run open office headless without any issues.
You do not have to install the java runtime as it is already installed.

Regarding eclipse galileo

I'm using eclipse galileo for developing some web application. But I want to get the eclipse installed on the server(assume some other pc or server machine) and I want to access it as a client and work as I was working before. Please suggest me what type of server I should configure and which Operating System supports it.
A little bit weird to put the IDE on the server but you can use whatever OS you want, put the Eclipse there and connect to it using VNC or Remote Desktop.