Joomla on Ubuntu Server 13.10

Today I decided to test Ubuntu 13.10 and Joomla 3.1.5 and it ended up being a long adventure. I am posting what I did in the hope it will help others avoid the problems I experienced. The following commands are done on a fresh install of Ubuntu 13.10.

Step 1

sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server php5-json phpmyadmin php5-curl unzip

This installs the pre-requisites for Joomla. You will be prompted to select the mysql root user password. Make sure you write down the password as you will need it later.

mysql configuration

mysql configuration

Next set two variables for downloading and extracting Joomla.

Step 2

Once the variables are set you need to make a temporary directory to download the Joomla package, extract it and then delete the zip file.

mkdir joomla
cd joomla

Step 3

Next the files need to be moved and the ownership changed.

cd ..
sudo mv joomla /var/www/
sudo chown -R www-data:www-data /var/www/joomla

Step 4

Next permissions need to be changed on the files that were moved.

cd /var/www/joomla/
sudo find . -type f -exec chmod 644 {} \;
sudo find . -type d -exec chmod 755 {} \;

Step 5

Next the Joomla database needs to be created. You will be prompted for the password you chose during the install.

mysqladmin -u root -p create joomla

Step 6

Next you want to add a user and permissions to the newly created database.

mysql -u root -p
mysql> \q

It was at this point that I ended up with an installation that would not complete when browsing the the website.

Joomla Web Installer

Step 7

open libraries/joomla/filter/input.php, modify the file and restart apache

sudo nano libraries/joomla/filter/input.php

find the following

$source = preg_replace(‘/&#(\d+);/me’, “utf8_encode(chr(\\1))”, $source); // decimal notation
$source = preg_replace(‘/&#x([a-f0-9]+);/mei’, “utf8_encode(chr(0x\\1))”, $source); // hex notation

change those lines to the following

$source = preg_replace_callback(‘/&#x(\d+);/mi’, function($m){return utf8_encode(chr(‘0x’.$m[1]));}, $source); // decimal notation
$source = preg_replace_callback(‘/&#x([a-f0-9]+);/mi’, function($m){return utf8_encode(chr(‘0x’.$m[1]));}, $source); // hex notation

restart apache

sudo service apache2 restart

after these changes you should be able to continue through the web installer and configure your instance of Joomla. The final screen should look like the one below. Remember to remove the installation directory.

final Joomla web install page

final Joomla web install page

This entry was posted in FOSS, Ubuntu. Bookmark the permalink.

8 Responses to Joomla on Ubuntu Server 13.10

  1. Jo-Erlend Schinstad says:

    New versions of Joomla seem very exciting. I’ve liked Joomla for a long time, but things like VCS looks very nice. Of course, that’s in addition to a lot of other nice things.

    Was this your first Joomla install, or have you used it before? What did you think about the 3.1.5 release?

  2. Pingback: Joomla on Ubuntu Server 13.10 | Ubuntu-News - Your one stop for news about Ubuntu

  3. Pingback: Joomla on Ubuntu Server 13.10 | Swebuntu

  4. Pingback: Ubuntu News Watch | Joomla on Ubuntu Server 13.10

  5. Pingback: Joomla on Ubuntu Server 13.10 « LinuxLife Blog

  6. jane says:

    Thank you very much

  7. Jeremy H. says:

    Thanks for the help. Just completing step 1 fixed my problem. Must have missed a few prerequisites.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s