{"id":13202,"date":"2022-01-05T01:27:51","date_gmt":"2022-01-05T01:27:51","guid":{"rendered":"https:\/\/linuxways.net\/?p=13202"},"modified":"2022-01-05T01:27:51","modified_gmt":"2022-01-05T01:27:51","slug":"how-to-install-joomla-on-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/red-hat\/how-to-install-joomla-on-rocky-linux-8\/","title":{"rendered":"How to Install Joomla on Rocky Linux 8"},"content":{"rendered":"<p>Joomla is a free and open source platform Content Management System (CMS) written in PHP. It enables you to create dynamic web pages and applications with ease. It includes an easy-to-use design that allows you to get the most out of its features and functionality.<\/p>\n<h2><strong>What you need to install Joomla<\/strong><\/h2>\n<p>Before you proceed, you need to have LAMP installed on your instance. Check out our latest guide on how <a href=\"https:\/\/linuxways.net\/de\/red-hat\/how-to-install-lamp-stack-on-rocky-linux\/\"> install LAMP server on Rocky Linux 8<\/a><\/p>\n<p>Now, let\u2019s hit the ground running.<\/p>\n<h3><strong>Step 1: Install Additional PHP Modules<\/strong><\/h3>\n<p>After LAMP stack is installed, proceed to install the below PHP modules with the command:<\/p>\n<pre><strong>$ sudo dnf install php php-gd php-pear php-xml php-soap php-mbstring php-intl php-ldap php-curl php-mysqlnd php-json php-zip php-opcache <\/strong><\/pre>\n<p>Now head over and modify the <strong>php.ini<\/strong> file:<\/p>\n<pre><strong>$ sudo vim \/etc\/php.ini<\/strong><\/pre>\n<p>Change the following parameters:<\/p>\n<pre><strong>memory_limit = 256<\/strong>\r\n\r\n<strong>output_buffering = Off<\/strong>\r\n\r\n<strong>max_execution_time = 300<\/strong>\r\n\r\n<strong>date.timezone = Asia\/Dubai<\/strong><\/pre>\n<p>Once done, be sure to save the changes on your command-line editor.<\/p>\n<h3><strong>Step 2: Create a database for Joomla<\/strong><\/h3>\n<p>With the installation of PHP and the configuration of the <strong>php.ini<\/strong> configuration file out of the way, we are going to create and configure a database for Joomla.<\/p>\n<p>So, login to MariaDB server<\/p>\n<pre><strong>$ sudo mysql -u root -p<\/strong><\/pre>\n<p>Next, create the Joomla db:<\/p>\n<pre><strong>$ CREATE DATABASE joomladb;<\/strong><\/pre>\n<p>Then , create a database user and grant all the privileges to the joomla user and database.<\/p>\n<pre><strong>$ GRANT ALL PRIVILEGES ON joomladb.* TO 'joomlauser'@'localhost' IDENTIFIED BY 'Pass@2023!<\/strong><\/pre>\n<p>After that is done, save and exit MariaDB.<\/p>\n<h3><strong>Step 3:Download and configure Joomla<\/strong><\/h3>\n<p>Download the latest Joomla archive file from the official site using the below wget command:<\/p>\n<pre><strong>$ wget https:\/\/downloads.joomla.org\/cms\/joomla4\/4-0-5\/Joomla_4-0-5-Stable-Full_Package.zip?format=zip -O joomla.zip<\/strong><\/pre>\n<p>Next, unzip the file as shown:<\/p>\n<pre><strong>$ sudo unzip joomla.zip -d \/var\/www\/html\/joomla<\/strong><\/pre>\n<p>Next, grant ownership to the Joomla folder located in the webroot directory to Apache user.<\/p>\n<pre><strong>$ sudo chown -R apache:apache \/var\/www\/html\/joomla\/<\/strong><\/pre>\n<p>Next, configure the directory permissions as follows and provide global users access rights to read and execute the contents of the Joomla web files.<\/p>\n<pre><strong>$ sudo chmod -R 775 \/var\/www\/html\/joomla\/<\/strong><\/pre>\n<p>With the permissions and ownerships on the Joomla directory in place, we can now setup a virtualhost file.<\/p>\n<h3><strong>Step 4:Set up an Apache virtual host file for Joomla<\/strong><\/h3>\n<p>Now we need to configure the Apache virtual host for Joomla. For that, we will configure a virtual host file that will tell the server where to access the website files.<\/p>\n<pre><strong>$ sudo vim \/etc\/httpd\/conf.d\/joomla.conf<\/strong><\/pre>\n<p>Next, append the following lines to the file. For the <strong> ServerName <\/strong>directive, feel free to use the server\u2019s Public IP or domain name.<\/p>\n<pre><strong>&lt;VirtualHost *:80&gt;<\/strong>\r\n\r\n<strong> ServerAdmin admin@mysite.example.com<\/strong>\r\n\r\n<strong> DocumentRoot \"\/var\/www\/html\/joomla\"<\/strong>\r\n\r\n<strong> ServerName mysite.example.com<\/strong>\r\n\r\n<strong> ErrorLog \"\/var\/log\/httpd\/mysite.example.com-error_log\"<\/strong>\r\n\r\n<strong> CustomLog \"\/var\/log\/httpd\/mysite.example.com-access_log\" combined<\/strong>\r\n\r\n<strong>&lt;Directory \"\/var\/www\/html\/joomla\"&gt;<\/strong>\r\n\r\n<strong> DirectoryIndex index.html index.php<\/strong>\r\n\r\n<strong> Options FollowSymLinks<\/strong>\r\n\r\n<strong> AllowOverride All<\/strong>\r\n\r\n<strong> Require all granted<\/strong>\r\n\r\n<strong>&lt;\/Directory&gt;<\/strong>\r\n\r\n<strong>&lt;\/VirtualHost&gt;<\/strong><\/pre>\n<p>Save the virtual host and restart Apache web server to apply the changes to the virtualhost file.<\/p>\n<pre><strong>$ sudo systemctl restart httpd<\/strong><\/pre>\n<p>Great, the last step is to finalize the installation of Joomla from a web browser.<\/p>\n<h3><strong>Step 5: Wrap up Joomla installation from the web browser<\/strong><\/h3>\n<p>Launch your preferred browser and browser the address:<\/p>\n<pre><strong>$ http:\/\/server-ip or domain_name<\/strong><\/pre>\n<p>You will be taken to the following page. Provide the required information then click \u2018Set up Database Connection\u2019.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"867\" class=\"wp-image-13203\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-430.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-430.png 1920w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-430-300x135.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-430-1024x462.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-430-768x347.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-430-1536x694.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/strong><\/p>\n<p>Next, fill out your database details and click \u2018Install Joomla\u2019.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"859\" class=\"wp-image-13204\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-431.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-431.png 1920w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-431-300x134.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-431-1024x458.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-431-768x344.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-431-1536x687.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/strong><\/p>\n<p>Wait for the installation process to complete. If the installation is complete and successful, you will see the output below:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"868\" class=\"wp-image-13205\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-432.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-432.png 1920w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-432-300x136.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-432-1024x463.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-432-768x347.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-432-1536x694.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/strong><\/p>\n<p>Then pick &#8216;Open Administrator&#8217; as your login option. Finally, the Joomla login page will come to view as shown. Provide your logn credentials and hit that \u2018Login\u2019 button.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"865\" class=\"wp-image-13206\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-433.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-433.png 1920w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-433-300x135.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-433-1024x461.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-433-768x346.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-433-1536x692.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/strong><\/p>\n<p>Finally, Joomla\u2019s dashboard will be displayed as follows:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1902\" height=\"864\" class=\"wp-image-13207\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-434.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-434.png 1902w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-434-300x136.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-434-1024x465.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-434-768x349.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/12\/word-image-434-1536x698.png 1536w\" sizes=\"auto, (max-width: 1902px) 100vw, 1902px\" \/><\/strong><\/p>\n<p>And that\u2019s it. We have managed to successfully install Joomla on Rocky Linux 8.<\/p>","protected":false},"excerpt":{"rendered":"<p>Joomla is a free and open source platform Content Management System (CMS) written in PHP. It enables you to create dynamic web pages and applications with ease. It&hellip;<\/p>","protected":false},"author":1,"featured_media":13634,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165],"tags":[793,436],"class_list":["post-13202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-red-hat","tag-joomla","tag-rocky-linux-8"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/13202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=13202"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/13202\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/13634"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=13202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=13202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=13202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}