Basic Joomla installation on a Linux server

A quick walk-through for installing Joomla on a Linux server with Apache and Mysql. Joomla is a great content management application that allows you to quickly and easily, create and manage a web site with a great amount of flexiblility.

Create a directory for your site. For CentOS/Fedora users, the default location would be in /var/www/html/<new_directory>. Create the directory by executing the mkdir command.

mkdir /var/www/html/joomla

Then we will extract the contents of the Joomla tarball that we downloaded earlier into the directory that we just created. From the directory that contains Joomla tarball execute

tar -xzf <Joomlapackage>.tar.gz -C /var/www/html/joomla

Then make sure that apache is the owner of the files so that it can write to them

chown  -R  apache.apache /var/www/html/joomla

Now we will set up our MySQL database for the Joomla site. Open your MySQL prompt with an account that has the ability to create databases. If you are unable to connect, make sure that the mysql daemon is running.

Create the database:

mysql> create database joomla;
 
mysql> grant all privileges on joomla.* to "joomlauser"@"localhost" identified by "PASSWORD";
 
mysql> flush privileges;

Ensure that your apache server is running. If its not on, start it.

/etc/init.d/httpd start

or

service httpd start

Now we can connect to the site and configure it. Open a browser and go to your site at http://localhost/joomla.

The installation is pretty self explanatory from this point. Choose your language and ensure that the Pre-installation Check requirements are met. If not, take this time to resolve the issues.

Next agree to the license, and give it the database information from the database we just created. Make sure to keep hostname “localhost”.

Because we have access to the server directly, we do not need to enable the FTP layer, and fill in the remaining information. I do not install the sample data, but you may if you would like to see what they offer.

Once finished, you must remove the installation directory from the server.

rm -rf /var/www/html/joomla/installation

You can now connect to your site and start customizing.

Leave a Reply

Your email address will not be published. Required fields are marked *