Install Joomla on Ubuntu 22.04 LTS Jammy Linux
Learn commands to install Joomla CMS on Ubuntu 22.04 LTS Jammy JellyFish Linux to start your blog or website.
On the internet, after WordPress, Joomla is another popular open source content management system to start with. The software is often offered for your websites.
It is a widely used CMS (Content Management System) that allows you to create and manage web projects.
Being an open-source project, it is not only free but also constantly developed by the community.
The basic functions of Joomla can be extended as required by components, modules and plugins. Generally suitable for websites whose content changes frequently or is constantly being expanded. These are, for example, blogs, shops or communities.
However, to program CMS pages with Joomla, you need PHP knowledge. You should also be at least somewhat familiar with databases. While the administration of the site can be taken care of by anyone with basic knowledge of word processing and image editing. Writing and publishing your texts is done in just a few steps. Programming skills are not required for this.
For Joomla, there are websites with free templates. These then show your website in an individual design.
Of course, with a little knowledge, you can also create your own Joomla templates. To start, here is the guide to help you install Joomla on Ubuntu 22.04 LTS Linux.
Steps to Install Joomla CMS on Ubuntu 22.04 LTS Linux
Installing PHP based Joomla is not a difficult task. To follow this tutorial, you just need to make sure you have Ubuntu 22.04 server and have access to a user with sudo rights.
1. Update Ubuntu 22.04
First, make sure your Ubuntu server is up to date. This will install all the latest updates available for the server to be installed.
sudo apt update && sudo apt upgrade
2. Install the LAMP server
To run Joomla, we need the LAMP stack which stands for – Linux, Apache, MySQL and PHP. Well, on Ubuntu we can install all of them using just one command given below.
sudo apt install lamp-server^
Also install the required PHP extensions:
sudo apt install php php-common libapache2-mod-php php-cli php-fpm php-mysql php-json php-opcache php-gmp php-curl php-intl php-mbstring php-xmlrpc php-gd php-xml php-zip
Also, configure values for PHP.ini below are suggested values only.
Modify the PHP in the file
sudo nano /etc/php/*/apache2/php.ini
And modify the values of the following lines shown below:
memory_limit
– 128M or betterupload_max_filesize
– Set the minimum to 30Mpost_max_size
– Set the minimum to 30Mmax_execution_time
: Recommended- 30
to save the file, use ctrl+O hit the Walk in button then use CTRL+X to leave.
3. Create a Joomla database
After installing the Lamp server, you will automatically have the MySQL database on your server. Now let’s change the database server root user password and also create a user and database to use with Joomla to store the data.
First, secure your MySQL database server by creating a new root password and deleting the demo database, users, and limited remote access.
Connect to MySQL
sudo mysql
Change the root user password for MySQL to whatever you want, however, remember to replace [email protected] in the given command with the password you want to set.
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by '[email protected]';
exit;
Run the command to secure the installation of MySQL:
sudo mysql_secure_installation
The script will ask these questions.
Enter the password for user root: type your set password and then press ENTER. Change the password for root? Press N, then ENTER. Remove anonymous users? Press Y, then ENTER. Disallow root login remotely? Press Y, then ENTER. Remove test database and access to it? Press Y, then ENTER. Reload privilege tables now? Press Y, then ENTER.
Create a database
To store the data generated by the Joomla, we need a database server, here we use MySQL. So, let’s create a database for Joomla using the given commands:
Connect to MySQL database server
sudo mysql -u root -p
To note: Use the login password you created when securing MySQL.
Follow the command to create a new database. However, remember to replace New user whatever name you want to give your database user and similarly- new_db with a name for Database and Your password for the password.
CREATE DATABASE new_db;
CREATE USER 'new_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON new_db.* TO 'new_user'@'localhost';
FLUSH PRIVILEGES;
Exit;
4. Download the Joomla version
Just like WordPress, Joomla is also not available to be installed using the default Ubuntu 22.04 system repository. Therefore, we have to download it manually. For that, visit the official Joomla download page and get the version of this CMS that you want to have on your system.
Click on the To download button. Alternatelyyou can download it using ‘wget’ command line tool.
wget past link
For instance:
wget https://downloads.joomla.org/cms/joomla4/4-1-4/Joomla_4-1-4-Stable-Full_Package.zip
5. Install Joomla on Ubuntu 22.04
Once the Joomla installation file is on your system, extract it and move it to the web root directory of your Apache server.
sudo apt install unzip
Extract and move:
unzip Joomla_*-Stable-Full_Package.zip -d /var/www/html/joomla
Set the Apache permission to move the folder:
sudo chown -R www-data:www-data /var/www/html/joomla/
6. Create an Apache virtual host configuration for Joomla
To host multiple websites on the same web server, it is a good idea to create a virtual host configuration file on the Apache web server. So we can deliver and control the website service which is Joomla CMS here.
nano /etc/apache2/sites-available/joomla.conf
Copy-paste the following lines:
*:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/joomla/
ServerName your-domain.com
ServerAlias www.your-domain.com
/var/www/html/joomla/>
Options FollowSymlinks
AllowOverride All
Require all granted
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Save the file by pressing Crtl+Oafter that press the Walk in key, then to exit the file editor, use CTRL+X.
After that, disable the default page:
sudo a2dissite 000-default.conf
Activate your newly created Joomla website
sudo a2ensite joomla.conf
Enable Required Apache Modules
sudo a2enmod rewrite ssl rewrite
Restart Apache web server service to apply changes
sudo systemctl restart apache2
Alsodon’t forget to open port 80 if you have an active firewall:
sudo ufw allow 80/tcp
7. Configure the website
Now open your local browser which can access the Server IP address Where domain pointed to your Ubuntu 22.04 server where you installed the Joomla CMS.
For instance:
http://server-ip-address or http://your-domain.com
Select the language in which you want to start the installation process.
8. Create a super user account
Create the account by configuring the username and password you want to use to login to the Joomla admin backend.
After that, enter the MySQL database details such as database name, username and password set for it.
Soon you will get the message that the website is ready to use. To access your default website page, click the “Open the site” button. Whereas, for the “admin folder”, use the “Open admin” button.
Default webpage:
In case later you want to login to your Joomla admin backend. Just add the admin at the end of the website URL.
For instance:
http://your-domain.com/administrator
Where
http://server-ip/administrator
Other Items:
♦ How to Install WordPress on Ubuntu 22.04 LTS Server
♦ How to Install Backdrop CMS on Ubuntu 22.04 Jammy
♦ Install Jellyfin Media Server on Ubuntu 22.04
♦ How to install Plex client on Ubuntu 22.04
Comments are closed.