# 404 Trying to run installer

**URL:** <https://forum.mautic.org/t/404-trying-to-run-installer/4492>\
**Category:** Product Support\
**Created:** [July 13, 2016, 11:23pm UTC](https://forum.mautic.org/t/404-trying-to-run-installer/4492 "2016-07-13T23:23:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [July 13, 2016, 11:23pm UTC](https://forum.mautic.org/t/404-trying-to-run-installer/4492/1 "2016-07-13T23:23:39Z")

</div>

I’m brand new to mautic (can’t wait to use it) and I can’t get the installer to run. Fast facts:

Code:

1) I'm on Debian 8.x LEMP / PHP 5.6.22 / MySQL 5.5.49 2) Uploaded the unzipped files to a sub folder for my current website 3) I have rewrites working on nginx because I'm using WordPress pretty urls 4) My installer URL is: http://www.oilygurus.com/n/installer

  
**\*Note:** I just tried on a dedicated box I have (same LEMP stack versions) and instead of a 404 it just redirects to the home page of the website, in case that helps anyone with ideas. Almost sounds like nginx is to blame.  
  
Another update: I just did all of the same steps, but on my LAMP VPS. BOOM. Worked. So it sounds like a nginx issue. I'm still trying to figure it out.  
  
Here's my nginx site config:  

Code:

server { listen 80; listen [::]:80;

```
root /var/www/oilygurus.com/public_html;
access_log /var/www/oilygurus.com/logs/access.log;
    error_log /var/www/oilygurus.com/logs/error.log;	
index index.php index.html;

server_name oilygurus.com www.oilygurus.com;

location / {
    try_files $uri $uri/ /index.php?$args;
}	

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ .php$ {
	include snippets/fastcgi-php.conf;
#
#	# With php5-cgi alone:
#	fastcgi_pass 127.0.0.1:9000;
#	# With php5-fpm:
	fastcgi_pass unix:/var/run/php5-fpm.sock;
}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /.ht {
#	deny all;
#}	

```

}

  
After trying same process on LAMP server, I edited nginx config and added the below, and now the installer white screens.  

Code:

 location ^~ /n { alias /var/www/oilygurus.com/public\_html/n; try\_files $uri $uri/ @n;

```
	location ~ .php {
	    fastcgi_pass unix:/var/run/php5-fpm.sock;
	    fastcgi_split_path_info ^(.+.php)(.*)$;
	    include /etc/nginx/fastcgi_params;
	}
    }
    
    location @n {
	rewrite /n/(.*)$ /n/index.php?/$1 last;
    }</div>

```

---

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [July 13, 2016, 11:23pm UTC](https://forum.mautic.org/t/404-trying-to-run-installer/4492/2 "2016-07-13T23:23:39Z")

</div>

I’m brand new to mautic (can’t wait to use it) and I can’t get the installer to run. Fast facts:

```auto
1) I'm on Debian 8.x LEMP / PHP 5.6.22 / MySQL 5.5.49
2) Uploaded the unzipped files to a sub folder for my current website
3) I have rewrites working on nginx because I'm using WordPress pretty urls
4) My installer URL is: http://www.oilygurus.com/n/installer
```

\*Note: I just tried on a dedicated box I have (same LEMP stack versions) and instead of a 404 it just redirects to the home page of the website, in case that helps anyone with ideas. Almost sounds like nginx is to blame.

Another update: I just did all of the same steps, but on my LAMP VPS. BOOM. Worked. So it sounds like a nginx issue. I’m still trying to figure it out.

Here’s my nginx site config:

```auto
server {
	listen 80;
	listen [::]:80;

	root /var/www/oilygurus.com/public_html;
	access_log /var/www/oilygurus.com/logs/access.log;
        error_log /var/www/oilygurus.com/logs/error.log;	
	index index.php index.html;

	server_name oilygurus.com www.oilygurus.com;
	
	location / {
        try_files $uri $uri/ /index.php?$args;
	}	

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	#
	location ~ .php$ {
		include snippets/fastcgi-php.conf;
	#
	#	# With php5-cgi alone:
	#	fastcgi_pass 127.0.0.1:9000;
	#	# With php5-fpm:
		fastcgi_pass unix:/var/run/php5-fpm.sock;
	}

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	#location ~ /.ht {
	#	deny all;
	#}	
}
```

After trying same process on LAMP server, I edited nginx config and added the below, and now the installer white screens.

```auto

	location ^~ /n {
		alias /var/www/oilygurus.com/public_html/n;
		try_files $uri $uri/ @n;
	    
		location ~ .php {
		    fastcgi_pass unix:/var/run/php5-fpm.sock;
		    fastcgi_split_path_info ^(.+.php)(.*)$;
		    include /etc/nginx/fastcgi_params;
		}
	    }
	    
	    location @n {
		rewrite /n/(.*)$ /n/index.php?/$1 last;
	    }
```

---

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [July 14, 2016, 2:18am UTC](https://forum.mautic.org/t/404-trying-to-run-installer/4492/3 "2016-07-14T02:18:25Z")

</div>

Okay… so after more searching, here’s a break through:

```auto
location /n {
                try_files $uri $uri/ /n/index.php?q=$uri&$args;
        }
```

Now I’m at least getting the installation screen to show. Albeit, the URL looks a little weird:

```auto
http://www.oilygurus.com/n/index.php/installer
```

Not sure why the index.php is in there.

---

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [July 14, 2016, 2:20am UTC](https://forum.mautic.org/t/404-trying-to-run-installer/4492/4 "2016-07-14T02:20:21Z")

</div>

Changed it to this:

```auto
location /n {
                try_files $uri $uri/ /n/?q=$uri&$args;
        }
```

Manually force the url to this:

```auto
http://www.oilygurus.com/n/installer
```

Loads okay – now to the next part!

---

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [July 14, 2016, 2:42am UTC](https://forum.mautic.org/t/404-trying-to-run-installer/4492/5 "2016-07-14T02:42:22Z")

</div>

BOOYAH!!!

It installed. Now for the fun stuff.
