• Joomla nginx set up and configuration

    by  • November 4, 2014 • Blog • 6 Comments

    Nginx is consider one of the fastest and light web server what support well for PHP. Joomla nginx are a good combination to make joomla work fast as possible. Today I will show you step by step to install and configure joomla and nginx to make your joomla site fly on nginx.

    Joomla_Nginx

     

    1. Install nginx for joomla

    We have no any special tips about nginx for joomla, we just need to install basic nginx version. It ‘s recommended to install the latest version of nginx to keep the best speed and security. Belong to each OS (Windows, Ubuntu, CentOS….) you will have a different ways to install nginx. Let ‘s visit this site for more detail how to install nginx http://wiki.nginx.org/Install

    nginx_logo

    2. Install FastCGI

    Because this is an advance tutorial so that you have to take care many installation and configuration stuffs. But anyway, to get joomla work fast, it ‘s nice to do. You can check the FastCGI Example (with PHP FPM) in URL http://wiki.nginx.org/PHPFcgiExample

    3. Install Joomla

    Now, time to do the magic.

    Before doing the joomla installation, you should know these configuration files

    • /etc/nginx/sites-available/ on Ubuntu (for sites running on that nginx instance)
    • /etc/nginx/nginx.conf on Gentoo and Raspbian(= Debian optimized for Raspberry Pi)

    I would say NO for Windows, something like this we shouldn’t use Windows (actually we can’t do that).

    This is an example what you can use for any of joomla site what need to add in /etc/nginx/sites-available/yourdomain.com.conf

    The parameter fastcgi_pass is set to 127.0.0.1:9000, corresponding to the port that fpm is configured to listen to. This means you can run the PHP processes on separate servers. On Gentoo, you can find this configuration in /etc/php/fpm-php5.3/php-fpm.conf/

    Don’t forget to replace YOUR_DOMAIN & PATH_ON_SERVER above depending on your domain and the path of Joomla on your server.

    GZip support

    If you need GZip compression support, add the following section to the http section of the main nginx configuration file:

    Now install joomla as normal and run it to see how fast it is. Welcome any comment!

    6 Responses to Joomla nginx set up and configuration

    1. Pingback: The Best Joomla Server Configuration and Set Up - Fast Joomla Hosting

    2. Kai
      November 12, 2014 at 12:33 am

      Cool! You save my time on this. I do a lot of research before taking your tutorial. It work perfect for my joomla site. Thanks

    3. dspe
      November 18, 2014 at 11:27 am

      FastJoomlaHost.com running on WordPress?

      • November 19, 2014 at 12:16 am

        Yes, it ‘s running on WordPress. Because the purpose of site is blog post so that wordpress is still much more simpler and better to use.

        • Deneil
          December 8, 2014 at 1:55 am

          Yeah, wordpress is very nice for the blog system like this. You got a very nice blog

    4. Torsten Egeler
      February 21, 2015 at 11:43 am

      It works, but not with http://www.mysite.com/administrator

      No index.php ist used in any Subdirectory

    Leave a Reply

    Your email address will not be published. Required fields are marked *