Archive for Cpanel Server

Free File Hosting

BizHat started Free File Hosting that allow users to upload files of size upto 200 MB. There is no file size limits. You can upload any number of files and use as much as storage you need.

You will also get paid to use the free file hosting service.

http://uploads.bizhat.com

Comments off

Upgrading Perl on Cpanel Server

Today i upgraded Perl on Cpanel server. The version of perl installed on the server was

[root@host scripts]# perl -v

This is perl, v5.8.0 built for i386-linux-thread-multi

You can download latest version of Perl from Cpanel web site

http://layer1.cpanel.net

Latest version of perl available now is

http://layer1.cpanel.net/perl588installer.tar.gz

So lets download it

cd /usr/local/src
wget http://layer1.cpanel.net/perl588installer.tar.gz

Untar it

tar -zxvf perl588installer.tar.gz

Go to perl folder

cd perl588installer

Run install

./install

After Upgrade

[root@host perl588installer]# perl -v

This is perl, v5.8.8 built for i686-linux

Now we need to check if all perl modules are properly installed, then upgrade cpanel with upcp.

/scripts/checkperlmodules
/scripts/upcp –force

Comments off

MySql not starting on new cpanel server

On new cpanel server, MySQL is not starting.


# service mysql start
Starting MySQLCouldn't find MySQL manager or server [FAILED]
#

Can’t find anything in log file /var/log/mysql.log

I tried removing rpm of mysql and resinstalled mysql with /scripts/mysqlup –force

But it do not solved the mysql problem.

I modified /etc/my.cnf and mysql start working


root@server42 [/var/lib]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
root@server42 [/var/lib]#

Changed to


# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

[mysql.server]
user=mysql

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
#

The line removed is

basedir=/var/lib

Comments off

Error - Mail Server Upgrade in Progress

Today i restored a Cpanel Server after OS reload.

Copying files from OLD HD to New HD take several hours, the work started at 11 PM and i have got the server up and running by 5 AM. All web sites, PHP, MySQL (web part) got working well.

The old cpanel was using mbox format for storing mails and new cpanel use maildir format. So i need to convert old mails to new format. This is done by running the command

/scripts/convert2maildir

After running this, i run /scripts/eximup –force

But server is not accepting mails. I checked maillog and found.

2007-04-11 01:58:26 1HbWmf-0002TO-UO == yujin@wehost4u.net R=temp_defer defer (-1): Mail Server Upgrade in Progress. Message Queued.

The problem is fixed by

1. Delete the file /usr/local/cpanel/etc/exim/cf/fail_remote_domains

rm -f /usr/local/cpanel/etc/exim/cf/fail_remote_domains

2. Now remove following lines from /etc/exim.conf.buildtest

temp_defer:
driver = redirect
allow_defer
data = :defer: Mail Server Upgrade in Progress. Message Queued.
verify = false

3. Upgrade exim with

/scripts/eximup –force

Comments off

« Previous entries