The Bug Genie
The Bug Genie
star_faded.png
Please log in to subscribe to updates for this article
The Bug Genie:Linux_Nginx
Last updated at Mon Jun 02 09:04, by zegenie

Installing The Bug Genie on Nginx  ⇑ top

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  ⇑ top

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  ⇑ top

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!


Article attachments

There are no file attached to this article

Article comments (0)

There are no comments