Author Archive

Installation of php Memcache onto cPanel running CentOS

Make the Sources Folder mkdir ~/memcache Compile and Install LibEvent cd ~/memcache wget http://www.monkey.org/~provos/libevent-1.4.9-stable.tar.gz tar xvfz libevent-1.4.9-stable.tar.gz cd libevent-1.4.9-stable ./configure make make install Compile and Install Memcache cd ~/memcache wget http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz tar xvfz memcached-1.2.6.tar.gz cd memcached-1.2.6 ./configure –with-lib-event=/usr/local/ make make install Starting Memcache memcached If you get the following error then you may beed to […]

cpanel/whm license error

First, check the license on http://verify.cpanel.net/ to ensure it is still licensed. If it is not, please contact who you purchase the license from directly. If it says it is valid, try the following as root via SSH: /etc/init.d/firewall stop rdate -s rdate.cpanel.net /usr/local/cpanel/cpkeyclt /etc/init.d/firewall start  

Installation of ionCube Loader

1. Download the program and store it on your server using wget or FTP. http://www.ioncube.com/loader_download.php 2. Unpack the program tar -zxvf ioncube_loaders.tar.gz 3. cd ioncube 4. copy ioncube-install-assistant.php to a web directory such as your hosting directory and open it in your browser window. cp ioncube-install-assistant.php /home/userdirectoryhere/www Then open it http://www.yourdomain.com/ioncube-install-assistant.php The output should be something similar to: Analysis of […]

Some useful linux commands

1) Backup download –>> rsync -av –progress –rsh=”ssh -l 3ixteam” star/ 66.7.205.226:star/ 2) To block 25 port by IP –>> root@server [~]# cat test netstat -n -p|grep 25|awk ‘{print $5}’|awk -F: ‘{print $1}’|sort|uniq|awk ‘{print “csf -d ” $1″/24″}’ root@server [~]# 3) To check pl file on the server(usernname) –>> tail -f /var/log/messages | grep ftp […]

httpd is not working: Unable to open logs

root@server# /etc/init.d/httpd restart Warning: DocumentRoot does not exist httpd not running, trying to start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Solution :– root@server [~] netstat -lnp | grep ‘0.0.0.0:80’ tcp        0      0 0.0.0.0:80       […]

httpd is not working : semget: No space left on device

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_msql.dll’ – /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_msql.dll: cannot open shared object file: No such file or directory in Unknown on line 0 semget: No space left on device Solution :– ipcs -s for i in `ipcs -s | awk ‘/nobody/ {print $2}’`; do (ipcrm -s $i); done OR ipcs -s […]

Changing the default nameservers for new accounts.

1) You add/change your private nameserver for your dedicated server but when you create account through whm it not shows your default nameserver. You have to add your private nameserver in wwwacct.conf # vi /etc/wwwacct.conf Add or edit following lines as per your requirement. ns = ns1.domain.com ns2 = ns2.domain.com save the file. Now when […]

Secure the /tmp Directory

The following is how to secure your /tmp directory on your Dedicated Server using a cPanel Script. You MUST have cPanel installed for this to work. 1. Login to your server as root via SSH. 2. Type: /scripts/securetmp That’s it your done. cPanel wrote that script to allow users to secure their /TMP Directory very […]

Configuring the Timezone on your Dedicated Server

The timezone is set by the file /etc/localtime. In order to set this up corectly on your Dedicated Server you will need to first remove /etc/localtime and then create a symlink to the correct zonefile in /usr/share/zoneinfo. You will then want to run ntpdate to sync up properly. cd /etc rm -rf localtime ln -s […]

Email notification of Root Login

Keeping track of who logs into your Dedicated Server and when is very important, especially when you’re dealing with the super user account. We recommend that you use an email address not hosted on the server your sending the alert from. So lets get started! 1. Login to your server and su to root. 2. […]