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

JoomlaFCK editor is not working?

Some time JoomlaFCK editor is not allowing to add any text after installing Joomla. Refer following steps to sort out the JoomlaFCK problems.

Open configuration.php file and replace following line

From

var $live_site = ‘http://domain.com’;

To

var $live_site = ‘http://www.domain.com’;

thats all.

 

Horde Failed to connect to localhost:25 error message

On Shared server as well  as on Dedicated server some time we are facing large connection issue to SMTP port 25 at that time mostly we disable SMTP port 25 and enable any other port for SMTP but after changing SMTP port mostly we receive following error message in Horde webmail.

There was an error sending your message: Failed to connect to localhost:25 [SMTP: Invalid response code received from server (code: 421, response: Too many concurrent SMTP connections; please try again later.)]

To resolve above error simply change SMTP port from 25 to new SMTP port  in following file.

root@server [/usr/local/cpanel/base/horde/imp/config]# Pico servers.php

And change following line

From

‘smtpport’ => 25,

To

‘smtpport’ => 26,

We have taken new port as 26 for example you can use any port as per your requirement.

Similar problem with “Squirrelmail” then refer following steps.

root@server [/usr/local/cpanel/base/3rdparty/squirrelmail/config]#pico config_default.php

Change following line

From

$smtpPort = 25;

To

$smtpPort = 26;

Save file and exit and now open the webmail.

 

How to check bad blocks on Linux Server

To avoid any hdd failure, its always better to check the hard drive once in every month or if you are receiving the hard drive failure E-mail alerts then run the following command to test hard drive. For example if you are using the hard drive failure notification for the partition /dev/sda1 then run the following command.

root@server [~]# badblocks -v -v /dev/sda1

After running above command it will show you following running scanning result

root@server [~# badblocks -v -v /dev/sda1
Checking blocks 0 to 5116671
Checking for bad blocks (read-only test):           42496/        5116671

If nothing found out faulty on hard drive, it will show you the following result.

root@server [~]# badblocks -v -v /dev/sda1
Checking blocks 0 to 5116671
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.

 

Increase SSH timeout for clients

After login in to the shell many time shell remain idle and due to that SSH connection closed by the server and we have to re-login in to the shell, we can avoid this problem by increasing the SSH timeout in the servers main sshd configuration file.Web hosting clients complaint that they can’t remain active on the shell at the time we can increase the ssh timeout  value. Login in to the server as root user and run the following commands.

[root@server ~]#pico /etc/ssh/sshd_config

Now search the line “ClientAliveInterval” and change it

From

#ClientAliveInterval 0

To 

ClientAliveInterval 3600

In above code we have used 3600 seconds, so that ssh won’t disconnect within set 3600 seconds value.

Restart the SSHD service to reload the new sshd configuration values.

 

Backup of mysql database using cron job.

To generate the backup of mysql database using cron job refer following three format as per your requirement.

1) Cron job to generate  database backup in  .sql format

* * * * * /usr/bin/mysqldump -u databaseusername databasename -ppassword > /path of database database.sql

2) Cronjob to compress database backup in .bz2 format

* * * * * /usr/bin/mysqldump -u datbaseusername databasename -pdatbasepassword|bzip2 -c > /path of database database.bz2

3)  Cronjob to compress database backup in .gz format

* * * * * /usr/bin/mysqldump -u databaseusername databasename -ppassword|gzip > /path of databasedatabase.gz

 

 

How to change upcp from release to stable?

We can change the upcp from the release version to the  stable version by changing the  option in following file

cat /etc/cpupdate.conf

From release to stable

 

Invalid command ‘BytesLog’ error after upgrade to cPanel version to 11

cPanel version get upgraded to 11 most common problem many peoples are facing with starting Apache on new installation.
The error reported is :

Invalid command ‘BytesLog‘, perhaps mis-spelled or defined by a module not included in the server configuration
/usr/local/apache/bin/apachectl start: httpd could not be started

To fix this mod_log_bytes.c needs to be re-compiled.

cd /usr/local/cpanel/apache
/usr/local/apache/bin/apxs -iac mod_log_bytes.c

 

How to enable stats from WHM?

To enable the stats you need root login details.Once you logged into your WHM as root user follow the steps.

Look in “Server Configuration”.
Choose “Statistics Software Configuration”.
Scroll down to “Statistics Processing Configuration Summary”.
Click on “Configure Statistic Process Time Schedule”.
Tick the boxes to denote the times during which stats should not be run.
Click “Save”, and exit.

As well as you also need to follows the steps in Tweak settings

Open whm and check “Server Configuration” listing.
Click on “Tweak Settings”.
Scroll down an check “stats Programs”; tick the boxes.

Awstats Stats
Webalizer Stats

Scroll down and check bottom site; click “Save”, and exit.

 

Options FollowSymLinks or SymLinksIfOwnerMatch forbidden error

If you receive following error message after browsing the domain/website

[Sat Oct 31 04:28:39 2009] [error] [client x.x.x.x] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /home/xxx/public_html/xxx/403.shtml
[Sat Oct 31 04:29:47 2009] [error] [client x.x.x.x] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /home/xxx/public_html/xxx.co.uk/Bracelets/Stencil-Heart-Bracelet.html

To avoid above error you can add following codes in .htaccess file.

root@gunjan[#]vi .htaccess

RewriteEngine On
Options +FollowSymLinks
:wq!

							

Simple cgi script to check the Server uptime?

The following script you can use to check the Server uptime?

root@admin[/usr/local/apache/cgi-bin]# nano loads
#!/bin/bash

echo Content-type: text/plain
echo

echo $(hostname)
echo “=>”
echo $(uptime)