MyTrueHost launched Web Hosting for Indian clients just in Rs 60/Month with various payment options(netbanking, debit card, credit card,cash card or paypal).
Please Visit at https://www.mytruehost.in

Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference.

Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference.

Solution :

This error is  occurred due the php version 5.3 and joomla is not certified to work with PHP 5.3.0.

You need to change some code in your files.

open the file
vi /home/username/public/modules/mod_mainmenu/helper.php

You can change this :
Form

function buildXML(&$params)

to

function buildXML($params)

Save the file try to access your site.

 

Unrouteable address

Error : A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:  test@domain.com   Unrouteable address”

Solution :

Suppose you have try to send emails from domain.com to any other email account and the server shows the above error then this problem is due the entry of your domain.com is present in /etc/localdomains file on remote server. You need to remove the domain.com entry from /etc/localdomains file and restart the exim service on the server.



Mysql Database size shows 0 in cPanel

Error : database size not updated in cpanel

Solution :

In cPanel >> mysql databases , it shows database size as ” zero” even if it is not.

You just need to make  the below changes to fix  it :

root@server [#] vi   /var/cpanel/cpanel.config
and search for following line.

disk_usage_include_sqldbs=0 ( set it to 1 instead of 0 )

then just run the command

root@sever[#] /scripts/update_db_cache

That’s  all you are done.



 

DB Error: connect failed in horde

Error :  When try to access the Horde from cPanel  then it shows following error.

Warning: fopen(/var/cpanel/horde/log/horde_0.log) [function.fopen]: failed to open stream: Permission denied in /usr/local/cpanel/3rdparty/lib/php/Log/file.php on line 216
A fatal error has occurred

DB Error: connect failed

Details have been logged for the administrator.

Solution:

The problem due to the ” Horde Groupware Webmail Edition detected ” means when you have try to update the Horde by using following commands

root@server[~]# /usr/local/cpanel/bin/update-horde --force

Then it shows the following error

!!!     Horde Groupware Webmail Edition detected        !!!
Install or update of standard Horde Webmail is disabled.
Horde Groupware Webmail was installed with cPanel 11.25.1.
Downgrades of Horde are not permitted due to MySQL differences.

Then you need to move the file

root@server[~]# mv /var/cpanel/horde/groupware_version /var/cpanel/horde/groupware_version-bak

After that run following commands

root@server[~]# /usr/local/cpanel/bin/update-horde --force

Done

Now horde is updated and reset and you can able to access it without any problem.



Manager of pid-file quit without updating fi

Error : Manager of pid-file quit without updating fi

Solution : 

When try to restart the mysql service on the server then above error is generated.

This problem is occurred due the “mysql ” database crashed and should be repaired but the mysql is already stopped on the server  so you need to use the following command to repair and optimize the database when mysql service is down on the server.

For Repair “mysql ” database

# find /var/lib/mysql/mysql  -name '*.MYI' -exec myisamchk -r {} \;

For Optimize the database

# find /var/lib/mysql -name '*.MYI' -exec myisamchk -o {} \;

Then

# ps -ef | grep mysql

# killall -KILL mysql

# /etc/init.d/mysql stop

# /etc/init.d/mysql start

Done

Remove IP from Brute Force Protection

How to remove blocked ip address from the Brute Force Protection by using SSH ?

Solution :–

When WHM locks out an user account, especially “root”, the best way is to wait for 10 minutes to see if the account will be unlocked. If the locks persists, webmaster and administrator who still can remote login via SSH to the server as root can manually remove the lockouts via following steps:

mysql> use cphulkd;
mysql> BACKUP TABLE `brutes` TO ‘/var/lib/mysql/cphulkd-bak’;
mysql> BACKUP TABLE `logins` TO ‘/var/lib/mysql/cphulkd-bak’;

Above command will backup the brutes table, the main table used by cPHulk to record locked accounts and denied IP addresses.

mysql> DELETE FROM `brutes`;
mysql> DELETE FROM `logins`;

Above commands will remove all blocked IP addresses and locked accounts from the system, enabling full access again

mysql> quit;

Done



Upgrading OpenSSH on CentOS 5

1) First, download the OpenSSH source tarball from the vendor and unpack it. You can find the tarballs at http://www.openssh.com/portable.html

wget http://mirror.mcs.anl.gov/openssh/portable/openssh-5.8p1.tar.gz
tar -xvzf openssh-5.8p1.tar.gz

2)Copy the spec file and tarball:

cp ./openssh-5.8p1/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/
cp openssh-5.8p1.tar.gz /usr/src/redhat/SOURCES/

3)Do a little magic:

cd /usr/src/redhat/SPECS
perl -i.bak -pe ‘s/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/’ openssh.spec

4) build your RPM:

rpmbuild -bb openssh.spec

5) Now if you go back into /usr/src/redhat/RPMS/<arch> , you should see three RPMs. Go ahead and install them:

rpm -Uvh *.rpm

To verify the installed version, just type ‘ssh -v localhost’ and you should see the banner come up, indicating the new version.

 

 


How to disable Core file generation?

How to disable Core file generation

Solution :–

first of all delete the core files which are present on the server or under any account then

vi /etc/init.d/httpd

and below the “ulimit -n 16384? you need to put ulimit -c 0

And Command to delete core files

find ./ -name “core.*” -exec rm -f {} \;



How to install RVSiteBuilder?

1)After got the license confirmation, SSH to your cPanel server as root and run command

/scripts/makecpphp

2) Download the installer using the command below:

cd /usr/local/cpanel/whostmgr/docroot/cgi/
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/
rm -f rvsitebuilderinstaller.tar
wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar
tar -xvf rvsitebuilderinstaller.tar
chmod 755 addon_rvsitebuilder.cgi
rm -f rvsitebuilderinstaller.tar

3)Open root WHM, at the bottom left menu under Plugins section, you will find RVSiteBuilder Installer menu.

4)Click RVSiteBuilder Installer to begin the installation process.

5)After complete the installation, you will be sent to RVSiteBuilder Manager automatically. Please configure RV SiteBuilder immediatly.

Done!! Your cPanel should show the RVSiteBuilder as a feature in all cPanel users.



Virus Detected; File not Uploaded! (Clamd is not configured properly.)

clamd issue

Solution :–

1) Go to WHM, > cPanel > Mange Plugins > uninstall clamavconnector.

That should fix the issue.

If this not solve the problem then

2.Make sure you have a clamd init file:

/etc/init.d/clamd
chown root:root /etc/init.d/clamd
chmod +x /etc/init.d/clamd
chkconfig clamd on
service clamd restart