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:
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 !
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
We are writing this blog post in the hope it might help someone else with the same problem.
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.
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.
WHM 10.8.0 cPanel 10.8.1-C112
RedHat Enterprise 3 i686 – WHM X v3.1.0
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(0x83259bc): Timeout at /scripts/cpbackup line 389 Can’t call method “login” on an undefined value at /scripts/cpbackup line 391, line 31.
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.
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]
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