Archive for the Category »Common errors «

Redirect loop and LimitInternalRecursion error message.

Most of the time we receive following redirect loop error message.


Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace
To avoid above error message simply use following code in .htaccess file.

RewriteCond %{ENV:REDIRECT_STATUS} 100

RewriteRule .* - [L]


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.


SuExec server permission issue?

After enabling SuExec on server most users getting “500 Internal Server Error” at that time refer following steps.

1st)  Correct cPanel users files/directories ownership.

——

for i  in `cat /etc/trueuserdomains   | awk ‘{print $2}’`
do
chown $i.$i /home/$i -R;
chown $i.mail /home/$i/etc -R;
chown $i.nobody /home/$i/public_html;
done;

—–

2nd) Correct permission for files and directories for cPanel users from shell but make sure that you logged in as root user and running following command in /home partition.

—–

find . -type d  -perm 777 -exec chmod 755 {} \;

find . -type  f  -perm 777 -exec chmod 755 {} \;

—–

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’;

Ownership wrong for cPanel users.



Sometime when we migrate the servers by using rsync we face ownership problems for cPanel users files/directories. At that time we can use following command from shell to resolve issue within few minutes.

——

for i  in `cat /etc/trueuserdomains   | awk ‘{print $2}’`
do
chown $i.$i /home/$i -R;
chown $i.mail /home/$i/etc -R;
chown $i.nobody /home/$i/public_html;
done;

—–

Make sure that you are using root login details to run above command.

Maximum file limit reach while starting Apache?



Maximum file limit reach error is occur while we are starting the Apache server at that time you can fix the issue by using root login details.

root@gunjan[~]#pico /etc/sysctl.conf
Add following line as

fs.file-max = 22992

Save and exit from the file.

You need to run following command from shell to active changes.

root@gunjan[~]#sysctl -p
It will increase the maximum number of open files for your Server.