shutdown -r NOW halt reboot not working for you? To force a shutdown: echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger And for a reboot: echo 1 > /proc/sys/kernel/sysrq echo o > /proc/sysrq-trigger Thanks to Nasser Heidari for the tip.
shutdown -r NOW halt reboot not working for you? To force a shutdown: echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger And for a reboot: echo 1 > /proc/sys/kernel/sysrq echo o > /proc/sysrq-trigger Thanks to Nasser Heidari for the tip.
You would think that many of your worries are reduced when you move from shared web hosting to a virtual private server (VPS) but as my experiences testify, there is are some pretty frightening stories out there. I have dealt…
Updated with more tests on 2010-05-16. Click here to jump to the 2010-05-16 update… The conventional wisdom always said that PHP’s include()/require() was quicker than include_once()/require_once(), but recently I came across an interesting post by Arin Sarkissian which suggests otherwise.…
The symptom You cease your contract with your hosting company, cancel your contract and move your web site. People start to complain that they cannot reach your web site. Nothing seems out of order. The problem: You were hosting with…
Very useful if you run as a ‘restricted user’ (i.e. not a ‘power user’ or ‘administrator’): Step 1: Get a CMD shell (‘DOS box’) as Administrator: runas /user:administrator cmd
Symptom: An XML file saved as something.php.html Apache was trying to parse it as PHP and throwing an error because Short_open_tag was ‘on’ Fix: Add the following to an .htaccess file in the folder (or a parent folder): php_value short_open_tag…
There are lots of examples and tutorials covering Apache and mod_rewrite, but generally they address the problem where you want to map a ‘nice’ url to your script. For example: http://example.com/products/kitchen/cutlery to http://example.com/products.php?category=kitchen&sub-category=cutlery is easily achieved with the following .htaccess…
Email by IMAP rocks – there are so many benefits to using it over POP3, particularly in an office environment. However many IMAP clients really suck when it comes to manipulating accounts with large messages. We recently watched a server…