Joomla is one of the most popular free content management systems (CMS) in the world that allows you to easily create and manage a dynamic website. This articles is a simple guide on how to install joomla in Ubuntu 14.04 (a well establshed operating system since 2004.).
First of all we should create a database for joomla, Go to MySQL shell first
mysql -u root -p
Create a database using the following command. I just named my database ‘mydatabase’. You can give a name of youe choice.
CREATE DATABASE mydatabase;
CREATE USER joomlauser@localhost;
SET PASSWORD FOR joomlauser@localhost= PASSWORD("mypassword");
Giving privileges to the user on Mysql-server.
GRANT ALL PRIVILEGES ON mydatabase.* TO joomlauser@localhost IDENTIFIED BY 'mypassword';
Exit out of the MySQL shell:
Restart apache and mysql:
service apache2 restart
service mysql restart
We will first make a directory temp, where we can download and temporarily store our Joomla files:
create a directory
change directory to temp
Now we are in the temp directory. We will then download the latest version of joomla(it is joomla 3.3.3 at the time of writing) to this directory.
We need to install unzip as by default it is now installed:
apt-get install unzip
Now create a directory for keep our joomla files( I named it ‘joomla’) in/var/www/html/
mkdir -p /var/www/html/joomla
unzip the Joomla zip file in the newly created folder:
unzip -q Joomla_3.3.3-Stable-Full_Package.zip -d /var/www/html/joomla
Now give appropriate permissions in the directory
chown -R www-data.www-data /var/www/html/joomla
chmod -R 755 /var/www/html/joomla
Now proceed to the web installation of Joomla.
You can now complete the remaining steps in your browser. Go to the URL http://domain name orIP address/joomla:
Follow the installation steps.
Once you have finished going through the installer, delete the installation folder per Joomla’s instructions and change the permissions on the config file:
sudo rm -rf /var/www/installation/
sudo chmod 755 /var/www/configuration.php
Now you can access the admin panel at http://domain name orIP address/joomla/administrator/ give the credentials as you gave at the time of Joomla installation.