Posts Tagged “Cpanel”

You may notice that if you attempt an easyapache update in Cpanel that you run into the following issue;

Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/
easyapache.pl: Please check   /  usr /  local /  cpanel /  logs /  error_log  for the exact error.

This indicates that you have either a bad install or an out of date instance of Perl. You can correct this by doing the following;
SSH into the vps  / server and do the following;

cd /

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

tar -xvzf perl588installer.tar.gz

cd ./perl588installer

./install

cd /

rm -rf ./perl588installer

rm ./perl588installer.tar.gz

rm -f /home/*/.cpanel-datastore/_usr_bin_perl_-v

All done!

Tags: , ,

Comments No Comments »

Recently I came across a ticket at work regarding getting Fantastico installed on a Linux Vps. The issue was that whenever you ran the install script, it fetched the files and then it stated Fantastico was installed. However, if you went to the Fantastico admin section, it simply asked you again to install Fantastico again. If you attempted to do this again, the cycle would repeat.
What I found out was that Perl was outdated as wellas Wget, so it wasn’t installed the files correctly and it wasn’t grabbing them either. So I did the following;

1. Upgrade perl to 5.8.8

2. Updated wget – http://www.keithdmitchell.com/2009/01/upgrading-wget-for-linux-servers/

3. Removed all instances of Fantastico from  /usr/local/cpanel/3rdparty/

4. Ran  rm -rf /usr/local/cpanel/base/frontend/*/fantastico

Once I did this, I ran the fastastico install again and it completed successfully.

You might have other experiences, but this helped get Fantastico working for me.

Tags: , ,

Comments No Comments »

I recently ran into an issue where I would update the Cpanel instance using the:

/scripts/upcp –force

To update Cpanel, as I normally do. However I noticed that when I did it this time, It did not update MySQL. Thinking that’s fine, I’ll just check the MySQL 5.0 button in Main >> Server Configuration >> Tweak Settings. However the option to update to version 5.0 was not there…. This was puzzling indeed.

I then ran /scripts/mysqlup –force . That didn’t help either, version 4 was still there and no sign of version 5. I then tried to see what rpm’s where in place;

rpm -qa | grep My

Nothing but MySQL 4……. Still at a complete loss.

Then I finally looked at the config file for cpanel;

/var/cpanel/cpanel.config

Look at that:

maxemailsperhour=0
maxmem=128
myname=cpaneld
mysql-version=5.1
mysqldebug=0
nativessl=1
nobodyspam=0
nouserbackupwarn=0

MySQL 5.1????????? Changing this to 5.0 and then running the /scripts/mysqlup --force
command fixed this issue. I now can select MySQL 5.0 by going to  Main >> Server Configuration >>
Tweak Settings.

Looks like the new update of Cpanel has borked the MySQL install.

Tags: ,

Comments 1 Comment »