Archive for the ‘ Fail ’ Category

Quick TIP (Remember to restart crond service after a timezone change)

Hi folks!

I learned this the hard way! I migrated a website from one server to another with crontabs, and the customer needed to have the scripts running on CEST timezone (While the server was on CST timezone), so I changed the timezone but the scripts were still running at CST timezone, some googling and I found out that the crond service doesn’t take the changes of the timezone if you don’t restart so remember:

For RHEL/CentOS:

service crond restart

For other Linux:

/etc/init.d/crond restart

Take care!

Cheers.

htaccess error (Request exceeded the limit of 10 internal redirects due to probable configuration error.)

[Thu May 06 10:20:11 2010] [error] [client xxx.xxx.xxx.xxx] 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.

Today I woke up with a message from Alyson (A visitor of my site) that some pages were producing 404 error, I immediately checked the website but it seemed to be working ok. So I went to the logs to check what’s going on and I found the above message all over my Apache error_log, after investigating what can be I found out that when I added hotlink protection to my website images because a Chinese guy was stealing my images and bandwidth, I screwed the .htaccess file with extra redirections.

So if you have this error please check your .htaccess file for extra redirects :P .

Thank you Alyson for reporting this!