Search Results for: Install

How to Install mod_cloudflare

How to install  mod_cloudflare on cPanel server ?

The primary purpose of mod_cloudflare is so you get original visitor IP in your server logs. If you don’t have it installed on your servers, then you will see cloudflare server ip address

 

To install mod_cloudflare one should have root access to the server.

Refer to following commands:

 

1. Get the source code for mod_cloudflare:

cd /usr/local/src

wget –no-check-certificate http://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c

 

2. Use the Apache Extension Tool to build and install mod_cloudflare:

apxs -a -i -c mod_cloudflare.c

 

3. Restart apache service.

service httpd restart

 

4.  Finally, update the Apache configuration data files:

/usr/local/cpanel/bin/apache_conf_distiller –update

 


contact@webhostingsupport.info

Post to Twitter

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

64px-Winehq_logo_glass

Install wine on CentOS

Wine is a free software application that aims to allow computer programs written for Microsoft Windows to run on Unix-like  operating systems. Wine also provides a software library, known as Winelib, against which developers can compile  Windows applications to help port them to Unix-like systems.

SSH the server as root and refer to following steps to install wine on centos server.

1) Installing rpmforge rpm.

root@server [~]# cd /usr/local/src/

root@server [/usr/local/src]# wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

 

2) Install the rpmforge rpm.

root@server [/usr/local/src]# rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

3)  Install wine.

root@server [/usr/local/src]#yum install wine -y enablerepo=rpmforge

4) Launch Wine from the Centos Applications menu.

 

That’s All.

 


contact@webhostingsupport.info

Post to Twitter

shoutcast-logo

Install shoutcast

SHOUTcast is a application for streaming media over the Internet.

Following are the steps to install SHOUTCAST.

1) SSH to the server as root

2) Add user and password for shoutcast.

 

# adduser shoutcast
# passwd shoutcast

3) Now ssh to shoutcast user ans do following.

# wget ftp://ftp.skynet.be/mirror1/tucows.skynet.be/linux/files/shoutcast-1-9-2-linux-glibc6.tar.gz

# tar -zxvf shoutcast-1-9-2-linux-glibc6.tar.gz
# rm -rf shoutcast-1-9-2-linux-glibc6.tar.gz
# mv shoutcast-1-9-2-linux-glibc6 shoutcast
# cd shoutcast

4) Configuring shoutcas for MaxUser, Password ans Port.

# vi pico sc_serv.conf OR nano sc_serv.conf
and configure settings corresponding to
MaxUser
Password
PortBase

5) uncomment AdminPassword and set an admin password of your choice. this password can be used to access shoutcast admin panel.

6) Save the file and start shoutcast.

./sc_serv sc_serv.conf


contact@webhostingsupport.info

Post to Twitter

Install mod_xsendfile

What is mod_xsendfile ?

mod_xsendfile is a apache2 module that processes x-sendfile headers registered by the original output handler.

This process will speed up your private file transfers.

 

How to install mod_xsendfile  on Linux server?

 

1) Login to server as root

2) Download file mod_xsendfile.c from HERE

3) execute command

#apxs -cia mod_xsendfile.c

4) Restart apache server.




contact@webhostingsupport.info

Post to Twitter