Tag Archives: shell
Check your server status with email notification
I wanted to do this for a while and never really sit down and code it. Yesterday I came across this pretty nice script by Ben from Coderholic which does exactly that: check your server status and send you an email if it is other than 200 (OK). #!/bin/bash # Query a supplied [...]
Enabling PHP5 on Mac OS X Leopard
I had done this already at work, but for some reason my MacBook Pro still didn’t “understand” PHP. Well, I’ve decided it’s time to activate it: # Use your favorite editor mate /etc/apache2/httpd.conf # Uncomment the line: #LoadModule php5_module libexec/apache2/libphp5.so # Restart apache sudo apachectl restart Done.