Posts Tagged ‘PHP’

Installing ioncube is very easy if you use following steps.

Installing ioncube in just two command.

If you have cpanel server then ssh server as root.

1) Check available php extension

[root@~]/scripts/phpextensionmgr list

EAccelerator
Zendopt
SourceGuardian
PHPSuHosin

2) As you see output of above command shows php extensions which are EAccelerator, Zendopt, SourceGuardian and PHPSuHosin.

Now install ioncube

/scripts/phpextensionmgr install ioncubeloader

3) Now check php -m or php -v on server it should show ioncube loader.

That’s it.

Hello,

How to upgrade php on Plesk ?

>>Make sure that you have YUM installed on your plesk server. If so then do the following steps –

Step 1) Set up the atomic channel:

wget -q -O – http://www.atomicorp.com/installers/atomic.sh |sh

Step 2) Check all the updated modules version using >>

yum update

Step 3) Upgrade the php to the latest version 5.2.x using the following command >>

yum update php

Step 4) Replace the PHP 4 ini with PHP 5.2.x’s (if applicable)

mv /etc/php.ini.rpmnew /etc/php.ini

Step 5)  Replace the php.conf with the PHP 5.2 php.conf (if applicable)

mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf

To find the location of php.ini on the server.

php -i | grep php.ini