cPanel Servers report PHP5 but Joomla Reports PHP4
Just because cPanel says php5 doesnt mean your Joomla website site is using php5
cPanel allows the server owner to install PHP4 and PHP5 and to set either to default.
Some server admins still have PHP4 as default, which means to use php5 you need to add this line to your .htaccess file:
AddHandler application/x-httpd-php5 .php
More helpful and expanded details can be found here:
http://forum.joomla.org/viewtopic.php?t=100045
I write this as a lot of customers keep asking me why Joomla reports PHP4 when cPanel says PHP5 – remember all our applications for Joomla require PHP5 and Joomla 1.6+ will also requrire PHP5 !
[Tip] Couldn’t find MySQL manager or server
Today we ran into an issue with our secondary server which meant we had to reboot it. It is a Linux cPanel server.
When the server was rebooted we noticed that mysql was not running. When we tried to start it we got the following error message:
Couldn’t find MySQL manager or server
Cuttiong short the story, and after hunting through google searches we are pleased to have found a bug report that describes the problem and a proposed solution at the mysql bug tracker.
We are writing this blog post in the hope it might help someone else with the same problem.
The solution:
In the base /etc/my.cnf file in Mysql 5.0.27 (Thats our version) the basedir is set as /var/lib/ which is incorrect for our cPanel based server – we simply removed that line (or commented it out by placing a # in front of it) and restarted mysql = problem solved.
How to fix CPanel FTP Backup cpbackup login undefined error
As a side note to Joomla components I also maintain many linux servers around the world for many top companies and high profile sites. It was while trying to configure CPANEL Backups recently that I came across a problem.
Having scoured the web looking for help and advice on different forums I finally drew the conclusion that no one really had a clue and that I would have to investigate and fix the problem byself.
The Environment
WHM 10.8.0 cPanel 10.8.1-C112
RedHat Enterprise 3 i686 – WHM X v3.1.0
The Problem
When running /scripts/cpbackup on the nightly cron the script would terminate on trying to FTP te packaged files to the FTP server, the error produced is:
Net::FTP=GLOB(0×83259bc): Timeout at /scripts/cpbackup line 389 Can’t call method “login” on an undefined value at /scripts/cpbackup line 391, line 31.
The Issue
The real issue I am not expert enough to tell you however I know that my problem is now fixed by following these simple steps. Basicaly reinstalling Perl’s Net:FTP module.
The Solution (1)
I ran the following commands, while logged in SSH by root.
perl -MCPAN -e shell
cpan> force install Net::FTP
Do you want to modify/update your configuration (y|n) ? [no]
quit
The Solution (2)
Update: Well I dont know if this was the problem but it is worth mentioning I guess. MAKE SURE THE FTP SERVER NAME IS VALID!! Mine had a typo in it so I really cant say which of these two solutions fixed the problem now – oh well – the backups are working and thats the main thing
I hope this helps someone – please comment on this if it does help you – this problem caused me nights of sleeplessness
Phil.