Friday, November 7, 2014

karma - can not start chrome

INFO [karma]: Karma v0.12.24 server started at http://localhost:xxxx/
INFO [launcher]: Starting browser Chrome
ERROR [launcher]: Cannot start Chrome


Set chrome path using
export CHROME_BIN=/opt/google/chrome/google-chrome
Now run your script.

If you are still facing this error, Install chrome launcher using
npm install karma-chrome-launcher
Now run your script.

If you are still facing this error.
Kill all instances of chrome.
Output of `ps aux | grep chrome | grep -v grep` should be empty.
Now run your script.

Tuesday, October 7, 2014

Install ioncube loader on ubuntu

ioncube loaders are available for 32 bit and 64 bit system both.
Suppose you are using 32 bit Linux system (CentOs, Fedora, Ubuntu or Debian).

Download 32 bit ioncube loader zip file from

http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
Extract it and Put the directory in your htdocs, Now run

http://localhost/ioncube/loader-wizard.php
There are number of ioncube .so files in the ioncube directory because you may have different version of php. When you run the wizard, it shows required .so file which you should use, copy your required ioncube.so file and put it in /usr/lib/php5/200.....

Add following line at bottom of the line [php] in the file php.ini
zend_extension = /usr/lib/php5/200..../ioncube_loader_lin_5.x.so
Restart apache2, and run

http://localhost/ioncube/loader-wizard.php
you will get
The ionCube Loader version 4.6.1 for PHP 5.4 is already installed and encoded files should run without problems.

Friday, October 3, 2014

Install ioncube-loader on centOS 64bit

ioncube loaders are available for 32 bit and 64 bit system both.
Suppose you are using 64 bit Linux system (CentOs, Fedora, Ubuntu or Debian).

Download 64 bit ioncube loader zip file from

http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
Extract it and Put the directory in your htdocs, Now run

http://localhost/ioncube/loader-wizard.php
There are number of ioncube .so files in the ioncube directory because you may have different version of php. When you run the wizard, it shows required .so file which you should use, copy your required ioncube.so file and put it in /usr/lib64/php/modules (for centOS 64 bit) 

Add following line at bottom of the line [php] in the file php.ini
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4.so
Restart httpd, and run

http://localhost/ioncube/loader-wizard.php
you will get
The ionCube Loader version 4.6.1 for PHP 5.4 is already installed and encoded files should run without problems.

If you restart httpd and check the status,if it says
httpd dead but subsys locked

 
It means zend_extension is somewhere defined in the ini file, comment the line, restart httpd and it will be running.