# Cant get Mautic installed.

**URL:** <https://forum.mautic.org/t/cant-get-mautic-installed/7591>\
**Category:** Product Support\
**Created:** [February 19, 2017, 4:30pm UTC](https://forum.mautic.org/t/cant-get-mautic-installed/7591 "2017-02-19T16:30:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![renegadeza](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@renegadeza](https://forum.mautic.org/u/renegadeza)\
**Post date:** [February 19, 2017, 4:30pm UTC](https://forum.mautic.org/t/cant-get-mautic-installed/7591/1 "2017-02-19T16:30:46Z")

</div>

This is the error every time. no matter which way i install. same thing.  
  
  
  
The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.  
  
System administrators, check server logs for errors.

---

<div class="post-metadata">

**Author:** ![renegadeza](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@renegadeza](https://forum.mautic.org/u/renegadeza)\
**Post date:** [February 19, 2017, 4:30pm UTC](https://forum.mautic.org/t/cant-get-mautic-installed/7591/2 "2017-02-19T16:30:46Z")

</div>

This is the error every time. no matter which way i install. same thing.

The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.  
System administrators, check server logs for errors.

---

<div class="post-metadata">

**Author:** ![renegadeza](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@renegadeza](https://forum.mautic.org/u/renegadeza)\
**Post date:** [February 19, 2017, 4:31pm UTC](https://forum.mautic.org/t/cant-get-mautic-installed/7591/3 "2017-02-19T16:31:27Z")

</div>

server {  
listen 80;  
listen [::]:80;  
server\_name xxxxxxxxxxxxxxxxxxx;

root /var/www/html/mautic;

index index.php index.html index.htm index.nginx-debian.html;

location / {

# try to serve file directly, fallback to app.php

try\_files $uri /index.php$is\_args$args;  
}

location ~ .php$ {  
include snippets/fastcgi-php.conf;  
fastcgi\_pass unix:/run/php/php7.0-fpm.sock;  
}

location ~\* ^/index.php {

# try\_files $uri =404;

fastcgi\_split\_path\_info ^(.+.php)(/.+)$;

# NOTE: You should have “cgi.fix\_pathinfo = 0;” in php.ini

fastcgi\_pass unix:/var/run/php/php7.0-fpm.sock;  
fastcgi\_index index.php;  
fastcgi\_param SCRIPT\_FILENAME $document\_root$fastcgi\_script\_name;

include fastcgi\_params;

fastcgi\_buffer\_size 128k;  
fastcgi\_buffers 256 16k;  
fastcgi\_busy\_buffers\_size 256k;  
fastcgi\_temp\_file\_write\_size 256k;  
}  
}

---

<div class="post-metadata">

**Author:** ![autoize](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/autoize/32/105_2.png) [@autoize](https://forum.mautic.org/u/autoize)\
**Post date:** [February 21, 2017, 12:03am UTC](https://forum.mautic.org/t/cant-get-mautic-installed/7591/4 "2017-02-21T00:03:48Z")

</div>

@MxyzptlkFishStix is correct.

Most of the time, ensuring the Mautic directories and files are owned by the user the web server (Apache or Nginx) runs as does the trick. You can check which user Nginx is running as using the following command:

```auto
ps -ef | grep nginx
```

I suggest following [these instructions on ServerFault](http://serverfault.com/questions/534497/why-do-nginx-process-run-with-user-nobody) to set your Nginx user to www:www .

Then, you can use the following command to make your web directory owned by the Nginx user:

```auto
chown -R www:www /var/www/html/mautic
```
