We will look at installing the content management system Joomla! for virtual server with Ubuntu OS.
What is Joomla
Joomla is a free system that allows you to manage the content of the site. It is developed in the php scripting language, the MySQL DBMS is required to work. Installation is extremely simple, then the user is offered a wide and flexible functionality that allows you to manage medium and small projects. Joomla can be called the second most popular CMS in the world, new additions and features are released for it every month. Today Joomla has:
- ACL type menu;
- Template manager with support for SCSS and SASS files;
- Updated news feed;
- JavaScript dynamic variable persistence;
- A new way to extract lines of code from the data store;
- Advanced tooltip settings in Bootstrap;
- Writing complex commands for the database;
- Reminder to update the php language to the latest version;
- Streaming connection that supports proxy;
- Simplified creation of site categories;
- Updating is faster and easier.
In addition to Joomla, you can install an equally popular and practical CMS on a web server.
What is required for work
The described recommendations should be carried out by an administrator with superuser rights.
In order to start working with Joomla, the virtual server needs to download the LAMP stack.
With the installed software and the necessary rights, you can proceed with the installation of CMS.
How to download Joomla
First you need to go to your home directory and create a directory where the CMS files will be placed:
cd ~
mkdir tempjo
After that, go to the created folder:
cd ~/tempjo
You can get the latest version of Joomla directly from the developer’s site:
wget https://downloads.joomla.org/cms/joomla3/3-7-2/Joomla_3-7.2-Stable-Full_Package.tar.gz
Please note: here you will find updated and up-to-date CMS models.
After downloading, the archive with the files of the content management system will be in the directory of the virtual server. To proceed with the further installation, Joomla will have to be unzipped and moved to the Apache directory:
cd /var/www
mkdir html html/joomla
sudo tar zxvf ~/tempjo/Joomla_3-7.2-Stable-Full_Package.tar.gz -C /var/www/html/joomla
To free up space, the temporary folder is deleted:
rm -Rf ~/tempjo
How to adjust settings
After transferring the files, you need to provide access to them for the Joomla installer:
chown -R www-data.www-data /var/www/html/joomla/
chmod -R 755 /var/www/html/joomla/
How to set up a DBMS
To create a database, you need to go to MySQL:
mysql -u root -p
Login to the database is available with a password from the superuser. After that, a new database will be needed, in it – the user, and the user – all the privileges for working and editing.
Base creation command:
CREATE DATABASE joomla;
Now the user:
CREATE USER juser;
Password setting:
SET PASSWORD FOR juser= PASSWORD("");
Be sure to grant privileges, otherwise Joomla will not allow the user to operate on tables in MySQL:
GRANT ALL PRIVILEGES ON joomla.* TO juser IDENTIFIED BY '';
Updating DBMS privileges:
FLUSH PRIVILEGES;
At the end you need to exit:
exit
How to set up Apache
First you need to make changes to the Apache configuration. You can do this with the command:
vi /etc/apache2/apache2.conf
After you need to add lines, entering the current IP into them:
Listen 80
DocumentRoot /var/www/
ServerName {ip-адрес}
ErrorLog /var/log/apache2/error_{ip-адрес}
CustomLog /var/log/apache2/access_log_{ip-адрес} combined
Firewall setup method
You will need a firewall so that you can remotely control the device:
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables-save
Please note that if the server reboots, the ports will have to be opened again.
Gaining Access for the Joomla Installer
When all the folders with Joomla files necessary for work are located on the virtual server, you can start directly installing the content management system through the browser.
First you need to enter the IP or domain name in the address line:
ip-адрес/joomla
For example, as follows:
You will be prompted to select a language.
In the configuration fields, the system will ask you to write the site name, contact email, password and other information. It is advisable to set the most complex password, otherwise the site may be attacked by hackers. Below there is an option to turn the site visibility on and off for other users.
In the database configuration, you need to specify the database user, database name and password. The column with the type can be left standard. Any word can be used as a prefix.
If the need arises, you can download demo data. After entering all the information, the immediate download of Joomla begins.
It is advisable to delete the installation folders so that intruders cannot use them.
When everything is finished, the administration panel will open in the browser.
To enter the site admin panel, you should use the password and login entered at the very beginning. Direct login to the admin panel is carried out at the address:
/joomla/administrator/
Welcome to the world of DomainRooster, where roosters (and hens) rule the roost! We're a one-stop shop for all your entrepreneurial needs, bringing together domain names and website hosting, and all the tools you need to bring your ideas to life. With our help, you'll soar to new heights and hatch great success. Think of us as your trusty sidekick, always there to lend a wing and help you navigate the sometimes-complex world of domain names and web hosting. Our team of roosters are experts in their fields and are always on hand to answer any questions and provide guidance. So why wait? Sign up today and join the ranks of the world's greatest entrepreneurs. With DomainRooster, the sky's the limit! And remember, as the saying goes, "Successful people do what unsuccessful people are not willing to do." So don't be afraid to take that leap of faith - DomainRooster is here to help you reach for the stars. Caw on!