How to Update Ubuntu Hardy to PHP 5.2.9
April 24, 2009
Categories: IT & Administration, Web & Software Development
Tags: Linux, PHP, Ubuntu
First upgrade your software as is.
>> sudo apt-get update
>> sudo apt-get upgrade
Then add the following to your /etc/apt/sources.list file.
>> sudo nano /etc/apt/sources.list
deb http://http.us.debian.org/debian stable all deb http://security.debian.org/ stable/updates main contrib deb http://packages.dotdeb.org/ stable all
Finally
run the update to install PHP 5.2.9.
>> sudo apt-get update
>> sudo apt-get install php5-cli
>> sudo /etc/init.d/apache2 restart
How to delete an entire directory via SSH
March 31, 2008
Categories: IT & Administration, Web & Software Development
Tags: Linux, SSH, Unix
I know this is probably common knowledge to Linux and Unix geeks. But every time I need to remove a directory with files in my NearlyFreeSpeech.Net SSH terminal I end up having to google for the command. So here it is for anyone else who’s out there googling!
rm -r -f YourDirectory
rm = remove / delete
-r = recursively deletes the directory and all files in it, including subdirectories
-f = will not ask for confirmation before deleting
