Invoice Ninja + Ubuntu Server 17.10

Hello!

I’m trying to install Invoice Ninja on Ubuntu Server 17.10 with this guide:

I have done exactly as the guide says (I think so, invoiceninja.conf is the one that I’m not sure if it’s like it should be), but when I try to go to the page I get only the nginx default welcome page.

I have tried to go to x.x.x.x/invoiceninja I get a 403 permission denied page.

Here is my invoiceninja.conf if there is something wrong with it.

server {
    listen 80;
    listen [::]:80;
    root /var/www/html/invoiceninja/public;
    index  index.php index.html index.htm;
    server_name  192.168.1.110;

     client_max_body_size 100M;

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

    location ~ \.php$ {
    try_files $uri =404;
    fastcgi_split_path_info  ^(.+\.php)(/.+)$;
    fastcgi_index            index.php;
    fastcgi_pass             unix:/var/run/php/php7.1-fpm.sock;        # for Ubuntu 17.10
    include                  fastcgi_params;
    fastcgi_param   PATH_INFO       $fastcgi_path_info;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

Did you do the important bits

sudo ln -s /etc/nginx/sites-available/invoiceninja /etc/nginx/sites-enabled/

and

sudo systemctl restart nginx.service

Otherwise, it looks about right. Make sure that your user has permissions to run the service. Otherwise do a

sudo apt-get remove --purge nginx mariadb-server mariadb-client php-fpm php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-tidy php-mysql php-cli php-mcrypt php-ldap php-zip php-curl php-sqlite3

And start again. you must have missed something unless the guide is old and the directory structure has changed a little bit.

1 Like