How to install Joomla 3.6.5 on CentOS 7 using LEMP

To install Joomla 3.6.5 on CentOS 7 using LEMP

Joomla is a free, open-source, and popular content management system (CMS) that can be used to build online applications and websites. It uses a PHP application and back-end database such as MySQL or MariaDB. A main benefit of using Joomla CMS is that it does not require significant technical skill or knowledge to manage. This tutorial covers the installation procedure of Joomla 3.6.5 on CentOS 7 using LEMP.

Pre-Requisite

LEMP Setup

-Nginx

-MariaDB

-PHP 7

Installation procedure

Before proceeding with the installation procedure, go to its official website and get the package link for downloading it. Execute the wget command followed by the download link.

[root@linuxhelp ~]# wget https://downloads.joomla.org/cms/joomla3/3-7-2/Joomla_3-7.2-Stable-Full_Package.zip?format=zip
--2017-09-11 14:43:17--  https://downloads.joomla.org/cms/joomla3/3-7-2/Joomla_3-7.2-Stable-Full_Package.zip?format=zip
Resolving downloads.joomla.org (downloads.joomla.org)... 72.29.124.146
Connecting to downloads.joomla.org (downloads.joomla.org)|72.29.124.146|:443... connected.
HTTP request sent, awaiting response... 303 See Other
Location: http://s3-us-west-2.amazonaws.com/joomla-official-downloads/joomladownloads/joomla3/Joomla_3.7.2-Stable-Full_Package.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256& X-Amz-Credential=AKIAIZ6S3Q3YQHG57ZRA%2F20170911%2Fus-west-2%2Fs3%2Faws4_request& X-Amz-Date=20170911T091410Z& X-Amz-Expires=60& X-Amz-SignedHeaders=host& X-Amz-Signature=8e20c49e96e4cc15df0dc0e99f076d43ac2571ea13b2a4621926c6b95ecf3845 [following]
--2017-09-11 14:43:19--  http://s3-us-west-2.amazonaws.com/joomla-official-downloads/joomladownloads/joomla3/Joomla_3.7.2-Stable-Full_Package.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256& X-Amz-Credential=AKIAIZ6S3Q3YQHG57ZRA%2F20170911%2Fus-west-2%2Fs3%2Faws4_request& X-Amz-Date=20170911T091410Z& X-Amz-Expires=60& X-Amz-SignedHeaders=host& X-Amz-Signature=8e20c49e96e4cc15df0dc0e99f076d43ac2571ea13b2a4621926c6b95ecf3845
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)... 52.218.160.92
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|52.218.160.92|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13006329 (12M) [application/x-www-form-urlencoded]
Saving to: ‘ Joomla_3-7.2-Stable-Full_Package.zip?format=zip’ 
100%[======================================> ] 13,006,329   366KB/s   in 1m 45s
2017-09-11 14:45:04 (121 KB/s) - ‘ Joomla_3-7.2-Stable-Full_Package.zip?format=zip’  saved [13006329/13006329]

Unzip the downloaded package by executing the unzip command as follows.

[root@linuxhelp ~]# unzip Joomla_3-7.2-Stable-Full_Package.zip?format=zip &ndash d /usr/share/nginx/html
Archive:  Joomla_3-7.2-Stable-Full_Package.zip?format=zip
  inflating: LICENSE.txt             
  inflating: README.txt              
   creating: administrator/
   creating: administrator/cache/
  inflating: administrator/cache/index.html  
   creating: administrator/components/
   creating: administrator/components/com_admin/
  inflating: administrator/components/com_admin/admin.php  
  inflating: administrator/components/com_admin/admin.xml  
.
.
.
extracting: /usr/share/nginx/html/templates/system/images/selector-arrow.png  
  inflating: /usr/share/nginx/html/templates/system/index.php  
  inflating: /usr/share/nginx/html/templates/system/offline.php  
   creating: /usr/share/nginx/html/tmp/
  inflating: /usr/share/nginx/html/tmp/index.html  
  inflating: /usr/share/nginx/html/web.config.txt  

Open the php configuration file using vim editor and run it. Do the following changes and save the file.

[root@linuxhelp ~]# vim /etc/php.ini
cgi.fix_pathinfo=0

Open the php-fpm configuration file and make the following changes in the file. Save and exit the file.

[root@linuxhelp ~]# vim /etc/php-fpm.d/www.conf
listen = /run/php-fpm/php-fpm.sock
listen.owner = nginx
listen.group = nginx
user = nginx
group = nginx

Start the php-fpm service.

[root@linuxhelp ]# systemctl start php-fpm

Change the owner permission of the PHP file.

[root@linuxhelp ]# chown &ndash R nginx:nginx /run/php-fpm/php-fpm.sock

Restart php-fpm service.

[root@linuxhelp ~]# systemctl restart php-fpm

Open your Nginx configuration file named nginx.conf using vim editor. Enter the following contents in the file and save it.

[root@linuxhelp share]# vim /etc/nginx/nginx.conf
  server {
        listen       80 default_server 
        listen       [::]:80 default_server 
        server_name  192.168.7.165 
        root         /usr/share/nginx/html 
        index index.php 
        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf 

        location  ~ \.php$ {
        try_files $uri =404 
        fastcgi_pass unix:/run/php-fpm/php-fpm.sock 
        fastcgi_index index.php 
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name 
        include fastcgi_params 
        }
    }

Restart your Nginx service.

[root@linuxhelp share]# systemctl restart nginx

Reopen your php-fpm configuration and uncomment the session saved path. Save and exit the file.

[root@linuxhelp html]# vim /etc/php-fpm.d/www.conf
 php_value[session.save_path]    = /var/lib/php/session

Switch over to your browser and enter the machine' s IP followed by the installation link. The installation wizard of Joomla appears on the screen.

Enter the account details for creating a new user account.

Enter the following database configurations and save the details.

Enter the database details and save it.

This page shows the overview summary of the installation.

This page shows the list of configurations. Click install to continue to the next page.

The installation is in progress. It may take some time for the installation to complete.

The installation is completed and it will lead to the Joomla home page.

Now you can customize your own site. Befor customizing, remove the installation folder completely through terminal.

Remove the installation folder by executing the following command.

The installation folder is removed and now you can customize your own site.

The installation procedure of Joomla on CentOS7 is done without any glitches.

FAQ
Q
How can I extend Joomla?
A
There are more than 8,000 extensions available in the Joomla! community ready for you to download.
Q
Is Joomla OpenSource?
A
Joomla is a free, open-source, and popular content management system.
Q
What is Joomla?
A
Joomla is a free, open-source, and popular content management system (CMS) that can be used to build online applications and websites. It uses a PHP application and back-end databases such as MySQL or MariaDB. The main benefit of using Joomla CMS is that it does not require significant technical skill or knowledge to manage.
Q
Can I install Joomla! on my hosting account?
A
Yes, you can.
Download the version of Joomla! that you want to use, unpack the files locally and then upload them to your account directly using FTP.
You’ll also want to create a database with a username and password.
When you’re done, visit the front end of your site, and you will see the installer page and you can begin the installation process.
Q
Why doesn't the pdf of my page show the images on Joomla?
A
Images are not supported in Joomla! 1.0.x in the pdf creation script. Images are supported in Joomla! 1.5.