Revision 2 as of 2006-07-11 12:39:51

Clear message

Joomla!

[http://www.joomla.org/ Joomla!] is an award-winning Content Management System (CMS) that will help you build websites and other powerful online applications.

This guide applies to Ubuntu 6.06 LTS (Dapper Drake)

Installing

1. Install the LAMP stack

Use [:InstallingSoftware: any method] to install the Apache2, Mysql and Php stack. You will need the following packages:

apache2 php5-mysql libapache2-mod-php5 mysql-server

Set a mysql-root password (not the same as a root password, but a password for mysql)

mysql -u root

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');

A successful mysql command will show:

Query OK, 0 rows affected (0.00 sec)

Quit the mysql prompt:

mysql> \q

You should now have a functional LAMP stack and a password for the mysql root user.

Visit [:ApacheMySQLPHP:Apache PHP MySQL] for more information on LAMP.

2. Get the most recent version of Joomla!

Download it from [http://www.joomla.org/content/blogcategory/32/66/ here.] Unpack it and then copy it to your webserver directory.

tar xvjf Joomla_1.0.10-Stable-Full_Package.tar.bz2 
sudo mv Joomla_1.0.10-Stable-Full_Package.tar.bz2_FILES /var/www/joomla
sudo chown -R www-data:www:data /var/www/joomla

Maybe it would be more secure to only chown the directories that it needs to write to?

3. Joomla needs a database, user and password

You need to create a database. You can do this with PhpMyAdmin or via the command line:

mysqladmin -u root -p create joomla

Where joomla is the name you picked for the mysql database that joomla will use. You can call it anything you want.

mysql -u root -p

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON joomla.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword';

You do not want to have Joomla use the mysql root user to access the database. The above command creates a mysql user (other than the mysql root user) with some priviledges to use the joomla database. You will need to chose the yourusername and yourpassword. If the command was successful, activate the new permissions:

mysql> FLUSH PRIVILEGES;

Quit the mysql prompt:

mysql> \q

4. Reload Apache2

You may need to force-reload apache2 so that it knows to use the php module if you haven't done so since you installed the LAMP stack.

sudo /etc/init.d/apache2 restart

Finish installation

Point your browser to localhost/joomla, and follow the onscreen instructions.

1. Pre-installation check

If everything is listed in green, you may proceed.

attachment:screenshot1.jpg

2. Licence

Joomla! is GPLed.

attachment:screenshot2.jpg

3. Database configuration

Configure the database name, username and password.

attachment:screenshot3.jpg

4. Name your site

Give your site a name

attachment:screenshot4.jpg

5. More site information

Enter site URL and administrator user and password

attachment:screenshot5.jpg

6. Finish install and remove installation directory

You will be asked to remove the installation directory once configuration is complete.

sudo rm -R /var/www/joomla/installation/

attachment:screenshot6.jpg

Please refer to the [http://help.joomla.org/content/category/15/99/132/ Joomla! installation manual] for more details.