Archive for April, 2009

Joomla 1.5 - 500 Internal Server Error

Tuesday, April 28th, 2009

After installing Joomla on a Godaddy shared server (Deluxe plan which allow unlimited websites), I renamed htaccess.txt into .htaccess to allow url rewriting.

Home page is fine, but the first article created and linked to the main menu returned this error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

The solution to the INTERNAL SERVER ERROR problem is uncommenting the following line in .htaccess (or in htaccess.txt if you didn’t already rename it).

# RewriteBase /

You must remove the # , thus having in your .htaccess

RewriteBase /

Reload the page and everything should be fine !

Upgrading Joomla 1.5 for multiple websites

Tuesday, April 14th, 2009

Upgrading joomla to the latest version is very easy

  1. Download the patch to the current stable version (joomla download page)
  2. Unpack the patch
  3. 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!!!