Archive for the ‘tips & tricks’ Category

Upgrading PHP to 5.2.x on CentOS 5

Posted: 15th April 2012 by Valkyrka in apache, tips & tricks

CentOS 5 comes by default with PHP version 5.1.6 and MySQL 5.0. Here's how you can upgrade to version 5.2.17 using a 3rd party repo. I have been using the Atomic repository for a while now and the RPMs are well built : echo "exclude=php*5.3*" >> /etc/yum.conf rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/5/i386/RPMS/atomic-r$ yum update php* mysql* -y [...]

Get the HTTP status code of URL

Posted: 29th April 2010 by Valkyrka in tips & tricks

Here is how you can get the HTTP status code of a URL : Sample output :

Ping using a specific IP

Posted: 13th April 2010 by Valkyrka in tips & tricks

This is very useful if you have a server with multiple IPs configured on it and you want to make sure the an IP is working : You may also use the option -I 70.134.17.9 ( replace the IP address with your actual IP address ) and you will get the same output.