Linux_ Nginx
https://secure.gravatar.com/avatar/b28e536690cbbcc42568497fe280b4f4.png?d=wavatar&s=28
Mon Jun 02 09:04 Authored by zegenie

Installing The Bug Genie on Nginx  

This article assumes a working nginx installation with all requirements met (such as php 5.3+ and !MySQL database). (If this is not the case, you should use an installation and setup guide to do so, such as https://library.linode.com/lemp-guides)

nginx config file  

The virtual host configuration file depends on how you wish to configure your server. If The Bug Genie should run on the root (such as www.yourdomain.com), you can use the following config file:

  server {
    listen   80;
    # change example.com to your (sub)domain, such as bugs.example.com. 
    server_name www.example.com example.com;
    access_log /srv/www/example.com/logs/access.log;
    error_log /srv/www/example.com/logs/error.log;
    # leave out "/thebuggenie" if you want users to have to enter http://example.com/thebuggenie 
    root /srv/www/example.com/public_html/thebuggenie;
    index /index.php;
		
    # php redirect block assumes php5-fpm module. If you're using another module, please replace the following block.
    location ~ \.php$ {
 	fastcgi_split_path_info ^(.+\.php)(/.+)$;
	# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
	# With php5-fpm:
	fastcgi_pass unix:/var/run/php5-fpm.sock;
	fastcgi_index index.php;
	include fastcgi_params;
    }
	
    # This must come after the FastCGI location block!
    # It will redirect URLS such as example.com/project to example.com/index.php?url=project, allowing more readable URL's
    location ~ /(.*) 
    {
        set $suburi $1;
        try_files $uri $uri/ /index.php?url=$suburi&$args;
    }
  }


Upload the configuration file to your server (usually into /etc/nginx/available-sites/) and don't forget to restart your nginx service (usually through the "nginx service restart" command)

Installation  

Just visit the URL provided in your nginx config file (such as http://example.com) which will redirect you to the installation wizard. All done!

Categories

Installation

Attachments 0

Comments 0

/unthemed/mono/no-comments.png
Expand, collaborate and share
Post a comment and get things done