Upgrading Joomla 1.5 for multiple websites
Upgrading joomla to the latest version is very easy
- Download the patch to the current stable version (joomla download page)
- Unpack the patch
- Upload the patch to your server overwriting old files
Few days ago Joomla has been updated to version 1.5.10 because of some security vulnerabilities.
Upgrading to Joomla 1.5.10 from Joomla 1.5.9 is straightforward, the required patch is 1.5.9 to 1.5.10 Upgrade Package
Upgrading Joomla 1.5 for multiple websites
My problem was upgrading 20 joomla installations automatically, not manually.
Each website has the Joomla SEO Patch, which has to be upgraded too, after the Joomla core upgrade.
I created a bash script to do everything automatically.
I use this directory structure for my websites: every domain is linked to a directory of my dedicated server, located in /var/www/websites
So I have
/var/www/websites/site1.com
/var/www/websites/site2.com
…
/var/www/websites/site20.com
I downloaded the 1.5.9 to 1.5.10 Upgrade Package to /root directory, I unpacked it using the command unzip Joomla_1.5.9_to_1.5.10-Stable-Patch_Package.zip in the directory /root/PATCH-1.5.9–1.5.10
I also downloaded the Joomla 1.5.10 SEO PATCH and unpacked it into the directory /root/PATCH-SEO
The script for a Joomla automatic upgrade is the following
cd /var/www/websites
for F in `ls -1`; do chattr +i $F/robots.txt; chattr +i $F/.htaccess; done
for D in `ls -1`; do cp -r /root/PATCH-1.5.9–1.5.10/* $D ; done
for D in `ls -1`; do cp -r /root/PATCH-SEO/* $D ; done
The first line changes your CWD (current working directory)
The second makes your robots.txt and .htacces immutable, thus avoiding overwriting.
The third line patches Joomla
The last line applies the Joomla Seo Patch
Have fun
BE CAREFUL, those commands worked for my dedicated server, your configuration and/or installation paths and versions will probably be different!!!
Tags: Joomla, upgrading joomla, vds