Archive for December, 2011

Python Installation

1) Download and extract Python: cd /usr/local/src wget http://apache.dataphone.se/httpd/modpython/mod_python-3.3.1.tgz tar zxvf mod_python-.3.3.1tgz 2) Configure & install Python cd mod_python-3.3.1 ./configure –with-apxs=/usr/local/apache/bin/apxs (check where your apxs is by typing: locate apxs) make make install 3) Configure Apache pico -w /usr/local/apache/conf/httpd.conf Locate your LoadModule – section by pressing CTRL-W and typing “LoadModule”. Add the following line under […]

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

Sometimes if you login in to PHPMYADMIN, you can see the error as follows. Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Solution :- 1) Check permissions of /tmp. It should be 755. Change it to 1777. 2) Open file /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini […]

phpMyadmin errror “#2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured)”

phpMyAdmin – Error #2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured) Solution :- 1. First check whether mysql is working in the server or not. 2, Check whether there is a symbolic link from mysql.sock to /tmp. If not, create a symlink between /var/lib/mysql/mysql.sock and /tmp/mysql.sock. […]

phpmyadmin error: Existing configuration file (./config.inc.php) is not readable.

When I try to access phpmyadmin on a cPanel server, i get the following error: Existing configuration file (./config.inc.php) is not readable. Solution :– Login to the server as root : 1) cd /usr/local/cpanel/base/3rdparty/phpMyAdmin 2) chown root:cpanelphpmyadmin config.inc.php Thats all.

Outlook Express Email Setting

Below are the outlook express settings :- 1. On the Tools menu, click Accounts 2. Select the Mail tab, click Add, and then click Mail. 3. In the Display name text box, type your name (e.g. info), and then click Next. 4. In the E-mail address text box, type your email address@yourdomainname (e.g. example@yourdomainname), and […]

mysql service is not working

Please login to server as root and fire below commands 1) killall -9 mysqld 2) cd /etc/rc.d/init.d 3) safe_mysqld –skip-grant-tables & 4) mysqladmin status Enjoy

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 […]