Joomla is an open source content management system that allows webmasters to create dynamic and powerful websites and applications. It’s runs on the LAMP or LEMP stack just like WordPress.
This brief tutorial is going to show students and new users how to easily install Joomla CMS on Ubuntu 17.04. This guide should also apply to previous and future releases of Ubuntu.
Joomla is probably the second or third most popular CMS out there, just behind WordPress. If you tried WordPress and it didn’t meet your needs, you may want to try Joomla CMS.
To install Joomla, follow the steps below:
Step 1: Install Apaches Web Server
Joomla requires a web server to function. The most popular webserver out there is Apache2, so we’re going to be using it. Joomla supports others web servers like Nginx and Lighttpd, but for this tutorial, let’s install Apache2.
To install Apache2, run the commands below
sudo apt-get update
sudo apt-get install apache2
After installing Apache2, run the commands below to stop, restart and enable Apache2 to always start up when the system boots.
sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
Step 2: Install MySQL Database Server
Joomla also requires a database server to function. The most popular database server is MySQL so we’re going to be using it. Other database servers like MariaDB and the like are supported as well.
To install MySQL, run the commands below
sudo apt-get update
sudo apt-get install mysql-server mysql-client
During the installation of MySQL, you’ll be prompted to create a confirm a password for MySQL root user. Please do it and continue.
After installing MySQL, run the commands below to stop, start and enable MySQL to always start up when the system boots.
sudo systemctl stop mysql.service
sudo systemctl start mysql.service
sudo systemctl enable mysql.service
Step 3: Create Joomla Database and Database User
Now that MySQL is installed, the next step is to create Joomla database and database user. Joomla uses database to store its content and the user is used to interact with the database.
Run the commands below to logon to MySQL server
sudo mysql -u root -p
Type the password you created above when prompted.
Then run the commands below to create a new database called joomladb
CREATE DATABASE joomladb;
Next run the commands below to create a new database user called joomlauser and grant the user full access to the database.
GRANT ALL ON joomladb.* TO 'joomlauser'@'localhost' IDENTIFIED BY 'type_new_password_here';</code.
After running the above commands, run the commands below to save and exit.
Step 4: Install PHP and Related Modules
Joomla is PHP-based CMS and requires it to function. To install PHP and related modules on Ubuntu, run the commands below
sudo apt-get install php libapache2-mod-php php-mysql php-curl php-gd php-pear php-imagick php-imap php-mcrypt php-pspell php-tidy php-xmlrpc php-xml
After running the above commands, Ubuntu should be ready to run Joomla.
Step 5: Download Joomla Content
At this point, you system should be ready.. go and download Joomla’s content (version 3.7.2) from online. To do that, run the commands below.
cd /tmp && wget https://github.com/joomla/joomla-cms/releases/download/3.7.2/Joomla_3.7.2-Stable-Full_Package.zip
Remember to replace the highlighted version number to the most current.
After downloading the content, run the commands below to extract it to the default root directory for Apache2 at /var/www/html.
sudo unzip -q Joomla*.zip -d /var/www/html
Next, run the commands below to update the root directory permission appropriately.
sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 755 /var/www/html
Don’t forget to delete Apache2 default test html file from the root directory.
sudo rm -rf /var/www/html/index.html
After that, run the commands below to restart Apache2 web server.
sudo systemctl restart apache2
When you’re done, browse to the server hostname or IP address and you’ll be met with Drupal default installation wizard page.
Type the website name, admin email address along with username and password. When done, click Next to continue.
On the database setup page, type the database name, user and password and click Next to continue.
Finally verify all the pre-installation checks and if you want, install with sample data and other configurations. When you’re ready, click Install.
After the installation, click the button to remove the installation folder. This is required.
That’s it! You’re done.
This post shows students and new user an easy way to install Joomla CMS on Ubuntu 17.04. When you follow the steps above, in no time you should have a website powered by Joomla. This post can be applied to previous and future editions of Ubuntu.
Also, to install the latest version of Joomla, don’t forget to replace the version number in the post with the latest.
You may also like the post below:
How to Increase WordPress Upload File Size