Saturday, July 3, 2010

INSTALLATIONS

Description unavailableImage by Sabino . via Flickr
Write text here...
INSTALLATIONS

cPanel ‘phpextensionmgr’ script allows you to install various extensions. To list the available PHP extensions run the following command.

root@LHS [~]# /scripts/phpextensionmgr list
Available Extensions:
EAccelerator
IonCubeLoader
Zendopt
SourceGuardian
PHPSuHosin

# /scripts/phpextensionmgr –help
Usage:
phpextensionmgr [options] [action] [extension]

Options:
–help Help message
–prefix Installation prefix (normally /usr/local or /usr/local/php4)
Actions:
install Install or update the extension
uninstall Uninstall the extension
status Display the installation status of the extension
list Show available extensions

To install Zend Optimizer, execute the command

root@LHS [~]# /scripts/phpextensionmgr install Zendopt


A. IORNCUBE LOADER

Installing ioncube loader on Linux as well as freeBSD

Iorn Cube loader is mainly using for source code protection for softwares and wep pages.

Before going to installed this make sure selinux had been disabled in your server.
Get the latest version of the ionCube Loader from http://downloads.ioncube.com/loader_downloads.
1. wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
2. tar -xvfz ioncube_loaders_lin_x86.tar.gz
3. cd ioncube/
4. mkdir /usr/local/lib/ioncube
5. Next we have to check the PHP version from that we have to discover which shared Object has
to select for the iorncube loader[ For example PHP -V PHP Version 5.3.2 loader should be ioncube_loader_lin_5.3.so
6. Now edit the Php.ini file as given bellow
zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.3.so
7. Copy the ioncube loader wizard "loader-wizard.php" from ioncube directory to Document root.
8. restart apache server.
9. run ioncube loader in your browser [www.yourdomain.com/loader-wizard.php]

For installing in FreeBSD we need to download http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_fre_8_x86.tar.gz (after verifying uname -a)

path on php.ini should be
zend_extension=/usr/local/lib/ioncube/ioncube_loader_fre_5.2.so [ in the case of freebsd with php version 5.2.13 ]

F I N I S H

B. SOURCEGUARDIAN

1. wget http://www.sourceguardian.com/ixeds/ixed4.lin.x86-32.tar.gz
2. untar tar -zxf ixed4.lin.x86-32.tar.gz
3. find out the extemsion directory using the cmd php -i | less (search for the term extension)
[eg: extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20060613 => /usr/local/lib/php/extensions/no-debug-non-zts-20060613 ] so we will know that /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ this is the directory we have to copy the loader ixed.
4. Next as per the php version we can decide which loader should be required
cp ixed.5.2.lin /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
5. Then we need to edit the php.ini file

php.ini file most probably is in your /etc/php.ini or /usr/local/lib/php.ini

6. vi /usr/local/lib/php.ini (search for the line extensions)

add this line: extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"


7. restart your apache server.

C. json

1.  yum install gcc make
2.  yum install php-pear
3.  pecl install json
4. add extension=json.so  on your php.ini and restart apache

[root@server modules]# php -m | grep json
json

No comments:

Post a Comment