Category Archives: Installation

install memcache/Memcached on centos

Free & open source, high-performance, distributed memory object caching system

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Installing Memcached using YUM

If you are using Centos or RHEL, you need to install the RPMforge rpm to install the packs. Go to http://dag.wieers.com/rpm/FAQ.php#B2 and download/install the correct rpm/arch belongs to your server.

 

 yum install memcached

yum install libmemcache

 

Installing Memcached from source

 

cd ~/memcache
wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
tar zxvf memcached-1.4.5.tar.gz
cd memcached-1.4.5
./configure --with-lib-event=/usr/local/
make
make install

Installing libmemecached

cd ~/memcache
wget http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gz
tar zxvf libevent-1.4.14b-stable.tar.gz
cd libevent-1.4.14b-stable
./configure
make
make install

Staring the memcached as daemon process

 

It is advisable to run/start the memcached process as non-root user, you can use the nobody user/group to start.

memcached -d -u nobody -m 1048 -p 11211 127.0.0.1

 

Install the Memcache PECL Extension for PHP

 

Even though memcached is happily running on the server, it’s not accessible from PHP without the PECL extension. Fortunately this is a very easy process, just use the pecl command.

 

pecl install memcache

Then add the memcache extension to your global php.ini file.

extension=memcache.so

 

Now restart web server.

 


contact@webhostingsupport.info

Post to Twitter

Install imagemagick

Installing imagemagick on cPanel server is very easy.

cPanel provides inbuilt script to install it. You just need to execute one command as root user.

 

/scripts/installimagemagick

 

To verify if installation is successful you can execute following command.

 

 

/scripts/checkimagemagick

 

 

Default How to install imagemagick

Installing imagemagick on cPanel server is very easy.

cPanel provides inbuilt script to install it. You just need to execute one command as root user.

Quote:
/scripts/installimagemagick

To verify if installation is successful you can execute following command.

Quote:
/scripts/checkimagemagick
__________________
Regards,
Kuldeep

|Reseller Hosting||Dedicated Server Hosting|
Edit/Delete Message Reply With Quote Multi-Quote This Message Quick reply to this message


contact@webhostingsupport.info

Post to Twitter

how to install imagick

PHP Imagick is a native php extension to create and modify images using the ImageMagick API.

 

To install imagick you will require root access to server.

Refer to following steps to the installation.

cd /usr/local/src/
wget http://pecl.php.net/get/imagick-3.0.1.tgz
tar -zxvf imagick-*
cd imagick-3.0.1
phpize

./configure

make

make install

Now edit php.ini and add imagick extension

extension=”imagick.so”

 

Or you can simply run command

pecl install imagick

4) To verify if installation is successful, you can create a phpinfo file and you should see imagick enabled.


contact@webhostingsupport.info

Post to Twitter

Ioncube loader problem

After installing ioncube Loader if the ioncube loader is not loading and giving you following error even though the loader file path is correct.
this is common error on Linux server.
checking php -v shows loader error.
[root@server ~]#php -v
Failed loading /usr/local/ioncube/ioncube_loader_lin_5.1.so: /usr/local/ioncube/ioncube_loader_lin_5.1.so: cannot restore segment prot after reloc: Permission denied
This error is caused because selinux is enabled on your server. you will need to disable SeLinux to overcome this error.
1) check SeLinux status
root@server ~]#sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 21
Policy from config file: targeted
2) There are two ways to disable SeLinux one is temporary and permanent
root@server ~]#setenforce 0
Will disable SeLinux temporary but is server is rebooted the changes will go.
so it is good idea to set is disable permanently.
For permanent solution edit /etc/selinux/config
[root@server ~]#vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted – Only targeted network daemons are protected.
# strict – Full SELinux protection.
SELINUXTYPE=targeted
3) Now you will need to reboot server for the changes to take effect
That’s All

contact@webhostingsupport.info

Post to Twitter

Install Rkhunter

rkhunter is Rootkit Hunter which has ability to search for rootkits, backdoors,trojans, virus and other security problems.
following steps will guide you to instll and use rkhunter

Download souoce file from Here OR Sourceforge

Now extract file usinf command tar -zxvf rkhunter-*.tar.gz

change directory to  rkhunter ans install it.

root@server[/rkhunter/]#./installer.sh – -install

Now to view options that can be use with  rkhunter execute

root@server[/rkhunter/]#rkhunter – – help

To scanserver execure

root@server[/rkhunter/]#rkhunter -c

http://www.webhostingsupport.info

contact@webhostingsupport.info

Post to Twitter