Linux_ Nginx
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

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, you can use the following config file:

  server {
    listen   80;
    # change to your (sub)domain, such as 
    access_log /srv/www/;
    error_log /srv/www/;
    # leave out "/thebuggenie" if you want users to have to enter 
    root /srv/www/;
    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 to, 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)


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



Attachments 0

Comments 0

Expand, collaborate and share
Post a comment and get things done