In this tutorial we will explain how to install Joomla in Ubuntu.
Joomla level of difficulty is between Wordpress and Drupal. It has a philosophy more similar to Drupal, but something more content.
The first step as usual is to open the Ubuntu virtual machine that we created in a previous tutorial: how to install Ubuntu in a VirtualBox virtual machine .
In this tutorial as in the previous ones, we already started from an Ubuntu system with Apache, PHP and MySQL installed. Check the tutorial how to install and configure Apache, PHP and MySQL in Ubuntu if you have not already done so.
The first thing we are going to do when starting the operating system is to open a terminal with the key combination Ctrl + Alt + T.
Once we are inside we will create the necessary database for the Joomla CMS.
Installing the database
For this we are going to connect to the database through the mysql client:
mysql -u root -p
Note: if we do not specify a password when installing the MySQL package, the password will usually be blank, so simply press the "Return" key when you ask for it.
Next we will create the database with the following statement (you can call it with the name you want):
CREATE DATABASE joomla;
Now we will create a user (with a password) that will be called jomuser to connect to the database from the Drupal CMS:
CREATE USER juser @ localhost IDENTIFIED BY 'juser1234';
Next we will give privileges to that user for the objects of the joomla database:
GRANT ALL PRIVILEGES ON joomla. * TO juser @ localhost;
Note: To consolidate these permits we must record them with the following command:
Once these actions are done, we will write exit to exit the mysql client.
Next we will go to the official website of Joomla to download and install Joomla in its latest version 3.
Note: The Joomla 3.7.2 version is now available
We will create a jom directory in our main user directory on the Linux terminal by typing the cd statement and then mkdir jom and download the latest version available with the wget statement to the jom directory:
We will unpack it using the unzip command:
Once this process is finished, we will delete the file Joomla_3.6.0-Stable-Full_Package.zip to free up disk space.
We will have it available in the following directory:
cd ~ / jom
Once the file is unpacked we will have to copy all that directory to the directory where we have the html files that the Apache web server uses.
In our case we will create a directory jom just below html.
In this way if we want to design and publish a web later, we would access the Joomla under the context / jom.
If instead we want our website to be just the Joomla CMS engine, then we could locate the joomla files just inside html:
sudo mkdir / var / www / html / jom
sudo cp -rp ~ / jom / * / var / www / html / jom /
Note: The sudo will ask you to enter the user password.
Now we must change the owner of the files to be www-data, which is the user that Apache habitually uses.
sudo chown -R www-data: www-data / var / www / html / jom
Now we will continue the installation from the web browser.
Installing the Joomla CMS
For this we will enter the browser specifying our IP address (or localhost) and access the Joomla installation screen.
http: // localhost / blog
In the Joomla installation screen, we will select the language "Spanish (Spanish)", we will inform the name of the Site, the user name, password and administrator's mail and click on the "Next" button.
Then we will have to enter the configuration of the database.
We will inform the user juser and the password juser1234 and the Joomla Database and then click on the "Next" button.
In the next screen we will have to select if we want to install sample data or not, we will also see a summary of the configuration data. If we want to correct anything, we will click on "Install".
With that we will get to the final installation screen of Joomla where we will advise to delete the installation folder, click on the "Delete installation folder" button.
Then we can go to see the Site by clicking on the Site button
or Manage it by clicking on the Administration button.
The "philosophy" of Joomla is a little different from the rest of CMS as wordpress.
In the administration screen we will see that we can create contents (pages, nodes), define data structures, define the appearance, configure users, roles and permissions, and generate reports, among other things.
Upon entering we will see that we can update the Joomla version, and some Plugin. It will also ask us for permission to collect statistics.
To install the adminstration language in Spanish, click on the menu System -> Control Panel and then on the menu on the left in Languages.
Then we will click on the Install Languages button.
We will go to the last page and look for Spanish (es-ES) we will select it and click on the Install button.
We will get a message ok
We will return to the System -> Control Panel and Languages
And click on the star to default to Spanish.
If we access the Languages screen again in the drop-down menu we can set the Admin language to Spanish as well.
With that we will see that we already have the Administration in Spanish.