Joomla! is a popular PHP-based content management system. It provides features such as RSS feeds, polls, news and blog formats and searching capabilities. It can format printable versions of pages, and supports internationalization.
Download the latest Joomla stable release from the Joomla! website and unpack it into your preferred location. You can also install from one of the packages in /var/www:
$ ls -d /var/www/joomla* # Show available versions $ cd ~/www/example.com $ sh /var/www/joomla17/install.sh myjoomla
Joomla! uses MySQL as its database backend so before proceeding further, you need to create a database and a MySQL user. You can do this from the Databases section of the Control Panel, or alternatively from the Shell Interface:
csoftadm> db mysql add myjoomladb csoftadm> db mysql useradd myjoomlauser csoftadm> db mysql grant myjoomladb myjoomlauser all
If you wish to reuse a database from a previous Joomla! installation, assuming mydump.txt was previously generated by
mysqldump, you would use:
$ cat mydump.txt | mysql -u myjoomlauser -p myjoomladb
Point your browser to the new URL (
http://example.com/myjoomla) and follow the installer's steps.
In your Database settings, select
mysqli as the Database Type. Enter
localhost in Host Name.
If you see a feature called FTP file system layer, make sure to disable it (nothing of the sort is needed since your scripts are executing securely).
The Configuration step asks for your site name, the administrator e-mail address and password, and provides you with the option to migrate backed-up content generated by Joomla 1.0.x. Click on Install Default Sample Data to install sample data (good for beginners).
First rename the htaccess.txt file in your Joomla base folder over to .htaccess. Open it up in a text editor, and uncomment the following line:
Log on to your back-end and open "Global Configuration". From there, enable the Search Engine Friendly URLs option and check that your site is working. Your URLs should now look like:
Now, try enabling the Use Apache mod_rewrite/URL rewriting option. Your URLs should now look like:
If everything is working correctly, enable the System - SEF plugin option, which adds SEF support to links in your articles.
It is necessary to remove the installation directory after the installer is done:
$ rm -fR ~/www/example.com/myjoomla/installation
The Joomla! installation is now complete. You should be able to browse to
http://example.com/myjoomla and login as
admin. For better security, consider using a secure URL (
https:// URL). If you don't have an official SSL certificate, it is possible to generate one yourself.