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.

Cronjob is executing twice / multiple times

If you have set a script in cron and it executes twice, check following things.

1) Check if there is another entry of same cronjob.

2) Check if two different users are executing the same cron.

If both solutions are not working, Try this.

3) There may be high chances if cron daemon is running twice. Check if it is true using command

ps aux | grep cron | grep -v grep

If there are two entries, kill one job or stop the cron service twice and run it again. Make sure you check again that there is only one cron daemon is running.

Alias "bootstrap.helpers.*" is invalid. Make sure it points to an existing directory or file

Alias "bootstrap.helpers.*" is invalid. Make sure it points to an existing directory or file

If you are getting this error while executing a php web application. The reason may be your php version is less than 5.3. Upgrade it equal to or greater than 5.3 and try again.

If you have PHP Version 5.2.17 or similar, you may have this error.