Blog Archives

Upgrade phpmyadmin

Go to http://www.phpmyadmin.net/home_page/ and download the latest stable version. Backup the config.inc.php file currently on the server. Use the configuration values from your old config.inc.php file to correctly configure the new config.inc.php Re-name your existing “PhpMyAdmin” directory something like “PhpMyAdmin.old”

Posted in Cpanel, Issues, Third party softwares

Resize /tmp in cpanel servers

service chkservd stop service httpd stop service mysql stop service postgresql stop lsof | grep /tmp kill the process umount /var/tmp umount /tmp vi /scripts/securetmp replace “256000″ with “512000″ rm -rf /usr/tmpDSK /scripts/securetmp –auto cd /tmp ln -s /var/lib/mysql/mysql.sock service

Posted in Cpanel, Issues, Server Setup

Sender verify defer + host lookup did not complete

Login to WHM >> Main >> Service Configuration >> Exim Configuration Editor . Uncheck the option: Sender Verification If it doesn’t help, reset ALL EXIM configuration to default and try again.

Posted in Cpanel, Issues, Mail

Change Mail Server IP

Sometimes your server’s IP address may get black listed by most of RBLs. In such situation a quick solution is to route the emails through a secondary IP address on the same server which is not black listed. There are

Posted in Cpanel, Issues, Mail

The perl module Encode::Detect::Detector could not be installed

Change the current cpanel version to stable : vi /etc/cpupdate.conf CPANEL=stable /scripts/upcp –force /scripts/perlinstaller –force Encode::Detect::Detector If that doesn’t work, please try /scripts/autorepair encodedetectfix No luck? then do: type cpan and from cpan mode type below. install Detect::Module If none

Posted in Cpanel, Issues

Script used to transfer account from cpanel server

#!/bin/bash ls -1 /var/cpanel/users > /root/user_list PORT=”22″ ssh-keygen -t dsa KEY=`cat /root/.ssh/id_dsa.pub` ssh $1 -p$PORT “mkdir -p /root/.ssh;echo ${KEY} >> /root/.ssh/authorized_keys” 2>&1 scp /var/cpanel/packages/* $1:/var/cpanel/packages/ for user in $(cat /root/user_list);do /scripts/pkgacct $user;done scp /home/user_list $1:/home scp /home/cpmove* $1:/home

Posted in Cpanel, Scripts, Server Setup

Script used to correct permission of files after suphp

#!/bin/bash # For some stupid reason, cPanel screws up the directory permissions. chmod 755 /opt/suphp find /opt/suphp -type d -exec chmod 755 {} \; # Ensure that the permissions are sane and won’t cause a 500 error. for user in

Posted in Cpanel, Issues, Scripts, Server Security

Recompile Perl in Cpanel servers

To check what is the perl version on your system, use: perl -v This is perl, v5.8.7 built for i686-linux If you need to upgrade your perl installation without breaking your CPanel, please follow this method. wget http://layer1.cpanel.net/perl588installer.tar.gz tar xfz

Posted in Cpanel, General discussions, Issues, Server Setup

Redirect Loop in Cpanel servers

It seems the issue is in the .htaccess file creation: it looks like this: Code: RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domain.com$ RewriteRule ^.*?$ “http\:\/\/domain\.com\/subdir” [R=301,L] instead of this: Code: RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com$ [OR] RewriteCond %{HTTP_HOST}

Posted in Cpanel, Issues

Stop Open Relay of Exim

Telnet to yourmailserver at port 25 and issue all the following commands: ——————————————————– telnet hostname/ip 25 helo client.server.com mail from: xxx@somedomain.com rcpt to: yyy@somedomain.com ——————————————————– If you are getting the error “554 : Relay access denied” then the server is

Posted in Cpanel, Issues, Mail
Blog Stats
  • 111,704 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers