Configuring and Using Joomla with NGINX

NGINX Setup for Joomla

With the recent release of version 3.5, Joomla is still one of the most popular CMS platforms in the world. This latest release features full PHP 7 support, drag-and-drop images, and more:



Table of contents[Show]

This assumes you have a working Joomla installation and have located the files at /var/www/html/. If you need an installation guide, try the official documentation available at https://docs.joomla.org/J3.x:Installing_Joomla.

To use Joomla with NGINX, we need a simple NGINX configuration file. This is a very basic PHP-FPM configuration with no changes required:

server { 
    listen       80; 
    server_name  joomla.nginxcookbook.com; 
 
    access_log  /var/log/nginx/joomla.access.log  combined; 
    index index.php; 
 
    root   /var/www/html/; 
 
    location / { 
        try_files $uri $uri/ /index.php?$args; 
    } 
 
    location ~ \.php$ { 
        fastcgi_pass unix:/var/run/php7.0-fpm.sock; 
        fastcgi_index index.php; 
        fastcgi_param SCRIPT_FILENAME 
$document_root$fastcgi_script_name; include fastcgi_params; } location ^~ /cache/ { deny all; } }

To enable clean URLs, you also need to ensure that URL rewriting is enabled:

Joomla docs: https://docs.joomla.org/Nginx

Вас заинтересует / Intresting for you:

Configuring and Using Magento ...
Configuring and Using Magento ... 816 views Гвен Sun, 20 Mar 2022, 07:00:30
 Setup and configuring Django ...
Setup and configuring Django ... 808 views Гвен Wed, 06 Apr 2022, 17:58:18
Configuring NGINX for WordPres...
Configuring NGINX for WordPres... 668 views Гвен Sun, 20 Mar 2022, 07:01:55
How to uese WordPress multisit...
How to uese WordPress multisit... 2055 views Гвен Sun, 20 Mar 2022, 07:01:34
Comments (0)
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Suggested Locations