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

SOURCEPKG=Joomla_3.1.5-Stable-Full_Package.zip
SOURCEWWW=http://joomlacode.org/gf/download/frsrelease/18622/83487/Joomla_3.1.5-Stable-Full_Package.zip

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
wget $SOURCEWWW
unzip $SOURCEPKG
rm -f $SOURCEPKG

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>  GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON joomla.* TO ‘joomla’@’localhost’ IDENTIFIED BY ‘password';
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

About these ads

12 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.

  8. Tom Kesteleyn says:

    ANother sollution is completing the setup in Chrome browser. In Chrome, setup will continue.

  9. r0bby says:

    Reblogged this on r0bby's blog and commented:
    Ottima guida …soprattutto per risolvere il problema dell’installazione infinita

  10. nobody says:

    Please help — I keep getting “Parse error: syntax error, unexpected ‘&’ in /var/www/joomla/libraries/joomla/filter/input.php on line 656″

  11. tri says:

    am also getting this syntax error, unexpected ‘&’ in /var/www/joomla/libraries/joomla/filter/input.php on line 656″

    what is this solution

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

Follow

Get every new post delivered to your Inbox.

Join 35 other followers

%d bloggers like this: