{"id":854,"date":"2022-06-01T09:42:53","date_gmt":"2022-06-01T09:42:53","guid":{"rendered":"https:\/\/www.checkmateq.com\/blog\/?p=854"},"modified":"2023-08-03T07:44:37","modified_gmt":"2023-08-03T07:44:37","slug":"joomla-cms","status":"publish","type":"post","link":"https:\/\/www.checkmateq.com\/blog\/joomla-cms","title":{"rendered":"How to install Joomla CMS"},"content":{"rendered":"<p><strong>Joomla CMS<\/strong><\/p>\n<p>Joomla is one of the mostly used free and open-source Content Management System (CMS), it allows you to publish web components and create dynamic websites, its written in <a href=\"https:\/\/www.checkmateq.com\/php-development\">PHP<\/a> and you can use <a href=\"https:\/\/www.checkmateq.com\/full-stack-development\">MySQL<\/a> or MariaDB\u00a0 database management systems with joomla, in this blog we will see how to install and configure joomla on your machine.<\/p>\n<p><strong>Steps to install and configure Joomla<\/strong><\/p>\n<p><strong>Step-1: Install all the dependencies to configure Joomla<\/strong><\/p>\n<p>To configure Joomla CMS you need to have apache web server,<a href=\"https:\/\/www.checkmateq.com\/php-development\"> php<\/a> and\u00a0 MariaDB, install them on your machine using below commands<\/p>\n<p>on your terminal use following command to install httpd and mariadb.<\/p>\n<pre>yum install httpd httpd-tools mariadb-server -y<\/pre>\n<p>then to start and enable the installed services execute following command.<\/p>\n<pre>systemctl enable --now httpd mariadb<\/pre>\n<p>Check status of services using below commands<\/p>\n<pre>systemctl status httpd\r\nsystemctl status mariadb<\/pre>\n<p><img loading=\"lazy\" class=\" wp-image-1207 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-1-300x154.jpeg\" alt=\"\" width=\"689\" height=\"354\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-1-300x154.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-1-1024x525.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-1-768x394.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-1-1536x788.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-1-1200x616.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-1.jpeg 1725w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Install PHP<\/strong><\/p>\n<p>To install latest version of PHP enable Extra Package for Enterprise Linux(epel) and remi repositories.<\/p>\n<pre>sudo yum install -y https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm\r\nsudo yum install -y https:\/\/rpms.remirepo.net\/enterprise\/remi-release-8.rpm<\/pre>\n<p><strong>EPEL<\/strong> provides a set of additional packages for RHEL which is not added in official packages, and <strong>Remi&#8217;s<\/strong> repository contains packages of latest version of PHP.<\/p>\n<p>To find current enabled version of php use below command<\/p>\n<pre>sudo yum module list php<\/pre>\n<p>output:<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1224 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-11-300x89.jpeg\" alt=\"\" width=\"882\" height=\"262\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-11-300x89.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-11-1024x305.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-11-768x229.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-11-1200x358.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-11.jpeg 1507w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>From the above output, by default only\u00a0 PHP 7.2 from the AppStream repo will be installed and there are no other versions enabled, to install PHP 8.1 from the remi repo enable it before installation<\/p>\n<p>use below commands to enable PHP 8.1 and install it with its extensions.<\/p>\n<pre>sudo yum module enable php:remi-8.1\r\nsudo yum install php php-opcache php-gd php-curl php-mysqlnd php-mbstring php-xml php-pear php-fpm php-mysql php-pdo php-json php-zip php-common php-cli php-xmlrpc php-xml php-tidy php-soap php-bcmath php-devel<\/pre>\n<p>after successful installation use below command to start and enable php-fpm service.<\/p>\n<pre>systemctl enable --now php-fpm<\/pre>\n<p><img loading=\"lazy\" class=\" wp-image-1208 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-2-300x24.jpeg\" alt=\"\" width=\"713\" height=\"57\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-2-300x24.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-2-1024x82.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-2-768x62.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-2-1536x123.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-2-1200x96.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-2.jpeg 1898w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>then execute the following command to check the status of php-fpm.<\/p>\n<pre>systemctl status php-fpm<\/pre>\n<p><img loading=\"lazy\" class=\" wp-image-1225 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-12-300x97.jpeg\" alt=\"\" width=\"1011\" height=\"327\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-12-300x97.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-12-1536x499.jpeg 1536w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><strong>Step-2: Create a database for Joomla<\/strong><\/p>\n<p>use below command to login into your mariadb shell.<\/p>\n<pre>mysql -u root -p<\/pre>\n<p><img loading=\"lazy\" class=\" wp-image-1211 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-4-300x61.jpeg\" alt=\"\" width=\"1082\" height=\"220\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-4-300x61.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-4-1024x209.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-4-768x157.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-4-1536x314.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-4-1200x245.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-4.jpeg 1831w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>using below given commands create a database, database user and grant permissions for<br \/>\nthe created user.<\/p>\n<pre>MariaDB [(none)]&gt;CREATE DATABASE joomla_database;\r\nMariaDB [(none)]&gt;CREATE USER aksshaay@localhost IDENTIFIED BY \"@Aksshaay1\";\r\nMariaDB [(none)]&gt;GRANT ALL PRIVILEGES ON joomla_database.* TO aksshaay@localhost;<\/pre>\n<p>here I am creating a database named &#8220;joomla_database&#8221; , &#8220;aksshaay&#8221; is a user of the database with password &#8220;@Aksshaay1&#8221; and grant permissions for &#8220;aksshaay&#8221; on all the tables of &#8220;joomla_database&#8221;.<\/p>\n<p>now use below commands to reload grant tables and exit.<\/p>\n<pre>MariaDB [(none)]&gt;FLUSH PRIVILEGES;\r\nMariaDB [(none)]&gt; EXIT;<\/pre>\n<p>by\u00a0 running the command FLUSH PRIVILEGES ,it will reloads the grant tables in the database making the changes to take effect without the need of reloading or restarting service.<\/p>\n<p><strong>Step-3:Download joomla installation files and change permissions<\/strong><\/p>\n<p>To download joomla installation files I am using &#8220;wget&#8221;\u00a0 it will download a zip file extract these files using &#8220;unzip&#8221;, use below command to install &#8220;wget&#8221; and &#8220;unzip&#8221;, if not already done.<\/p>\n<pre>yum install wget unzip -y<\/pre>\n<p>Now to download and unzip joomla files use below commands.<\/p>\n<pre>wget https:\/\/downloads.joomla.org\/cms\/joomla4\/4-1-4\/Joomla_4-1-4-Stable-Full_Package.zip format=zip\r\nunzip Joomla_4-1-4-Stable-Full_Package.zip?format=zip -d\u00a0 \/var\/www\/html\/joomla<\/pre>\n<p>execute below commands to change the owner of joomla files to apache user and permissions of the files.<\/p>\n<pre>sudo chown -R apache:apache \/var\/www\/html\/joomla\/\r\nsudo chmod -R 755 \/var\/www\/html\/joomla\/<\/pre>\n<p><strong>Step-4: Create an apache virtual host file for joomla<\/strong><br \/>\nNow\u00a0 we will configure a virtual host file that will tell the server where to access the joomla website files, create a file named &#8220;joomla.conf&#8221; at \/etc\/httpd\/conf.d and &#8220;vi&#8221; is the editor in the below command.<\/p>\n<pre>sudo vi \/etc\/httpd\/conf.d\/joomla.conf<\/pre>\n<p>paste the below given content in your joomla.conf file, use your public-ip for &#8220;ServerName&#8221;<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\n\r\nServerAdmin aksshaaynalmas@gmail.com\r\nDocumentRoot \"\/var\/www\/html\/joomla\"\r\nServerName 3.110.121.112\r\nErrorLog \"\/var\/log\/httpd\/mysite.example.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/mysite.example.com-access_log\" combined\r\n\r\n&lt;Directory \"\/var\/www\/html\/joomla\"&gt;\r\nDirectoryIndex index.html index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n&lt;\/Directory&gt;\r\n\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>Now restart httpd using below given command<\/p>\n<pre>systemctl restart httpd<\/pre>\n<p>before configuring joomla with database on the browser allow traffic on port 80 using firewall, use below command to install firewalld, if not done already.<\/p>\n<pre>yum install firewalld -y<\/pre>\n<p><strong>firewalld<\/strong> services are rules which help you to open and allow a certain connection within our firewall to our server, now start and enable firewalld, by enabling a service it will start at every boot.<\/p>\n<pre>systemctl enable --now firewalld<\/pre>\n<p>To open port 80(http) and and allow traffic use below command<\/p>\n<pre>firewall-cmd --add-service=http --permanent &amp;&amp; firewall-cmd --reload<\/pre>\n<p><strong>Step-5: Complete joomla configuration from web browser<\/strong><\/p>\n<p>Copy your public-ip on to the web browser<\/p>\n<p>give your site name here and click on &#8220;Setup login data&#8221;<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1216 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-6-300x160.jpeg\" alt=\"\" width=\"657\" height=\"351\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-6-300x160.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-6-1024x547.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-6-768x410.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-6-1536x821.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-6-1200x641.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-6.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Next create a user and give your email then click on &#8220;Setup Database Connection&#8221;<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1218 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-9-300x271.jpeg\" alt=\"\" width=\"537\" height=\"485\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-9-300x271.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-9-1024x925.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-9-768x694.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-9.jpeg 1076w\" sizes=\"(max-width: 537px) 85vw, 537px\" \/><\/p>\n<p>give the database name , database user name and password that you have created in step-2 and click on &#8220;install Joomla&#8221;<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1217 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-8-300x285.jpeg\" alt=\"\" width=\"592\" height=\"563\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-8-300x285.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-8-1024x972.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-8-768x729.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-8.jpeg 1081w\" sizes=\"(max-width: 592px) 85vw, 592px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Login as admin using username and password you have created , that&#8217;s it you have installed and configured joomla on your machine.<\/p>\n<p><img loading=\"lazy\" class=\" wp-image-1219 aligncenter\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-10-300x161.jpeg\" alt=\"\" width=\"697\" height=\"374\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-10-300x161.jpeg 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-10-1024x548.jpeg 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-10-768x411.jpeg 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-10-1536x822.jpeg 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-10-1200x643.jpeg 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/joomla-10.jpeg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>If you have any requirements for CMS development or support, please feel free to get in touch with us. Our 24X7 <a href=\"https:\/\/www.checkmateq.com\/\">offshore engineering team<\/a> would be delighted to assist you.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Joomla CMS Joomla is one of the mostly used free and open-source Content Management System (CMS), it allows you to publish web components and create dynamic websites, its written in PHP and you can use MySQL or MariaDB\u00a0 database management systems with joomla, in this blog we will see how to install and configure joomla &hellip; <a href=\"https:\/\/www.checkmateq.com\/blog\/joomla-cms\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to install Joomla CMS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":1262,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[2,7,22,23,16],"_links":{"self":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/854"}],"collection":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/comments?post=854"}],"version-history":[{"count":29,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/854\/revisions"}],"predecessor-version":[{"id":4189,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/854\/revisions\/4189"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media\/1262"}],"wp:attachment":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media?parent=854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/categories?post=854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/tags?post=854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}