Recently my Magento store stopped working. I could access the administrative pages as normal but entering the store as a vistor provoked the Firefox error message
"The page isn’t redirecting properly, Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
Googling provided little help with this problem and no answer, which is why I am writing this... so that I can save someone else the hours it took to get to a solution.
Trying to set the system time in Webmin caused the following error:
hwclock failed :
The linode I was running did not expose an hwclock interface. The solution was to simply set the timezone thus:
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
/usr/share/zoneinfo contains a number of different timezone files which you could use.
# date
Fri Jun 18 13:44:18 UTC 2010
To track your postfix log, use the tail command from a console.
tail -f /var/log/maillog
Below is a typical connect & send transaction in the log. This email was sent successfully. I have added comments to step through the mail processing.
There are hundreds of examples of how to use the Javascript String Replace function. However these are often very simple examples and do not fully show the potential power of this easy to use method. So when I came across a more complex real-life problem that required the use of javascript string replace - I thought it might be useful to others to share it.
Here are some useful utilities to check out what hardware you have installed on your linux server and how it is performing ...
cat /proc/cpuinfo cat /proc/meminfo dmesg lspci
SELinux can temporarily be disabled on a Linux server using the following command as admin.
echo 0 > /selinux/enforce
The above is very useful for checking whether SELinux is the cause of an issue. To permanently disable SELinux you need to add the following line to /etc/sysconfig/selinux.
SELINUX=disabled
Here is a crib sheet for the most common and useful commands needed when migrating or backing up a linux server. Thes tools make the work easy and fast. The trouble is that unless you are backing-up manually or migrating servers for a living, must of us only have to deal with these commands occasionally and the exact usage becomes a little hazy over time. below are the basic usage details of tar, wget,mysql and mysqldump ...
It can be very frustrating waiting for changes to DNS to propagate across the net. There is little that can be done to actually speed up this process except for this little trick I picked up. Even when propagation has completed, your PC can refuse to see the new IP because it is cached in the DNS Resolver Cache on your PC.
The solution is to flush the DNS Resolver Cache using ipconfig. Open a command console on your PC ( Run as Administrator if using Vista ).
Then execute this command ...
ipconfig /flushdns
Hope this helps someone
If you are looking for ways to lock-down your ProFTPD server without using iptables this may help. I recently had to find a way of securing a VPS without iptables. The ftp server only needed to be accessed by a few known users so I ended up with two reasonable possibilities.
I had to track down this problem when I found that my cgi scripts were failing with a 500 Server Error.
The problem is with SUExec which normall requires the cgi scripts to be in the document root.
The fix is to recompile the SUExec with the document root set to /home. Follow these instructions ...
