InvoicePlane setup HTTP ERROR 500

Hi guys,

I’m using Ubuntu with Ajenti V ( Nginx web server )

I’m getting the error below when i visit my url to setup InvoicePlane. Any help Please.
Thanks Guys

The page isn’t working is currently unable to handle this request.

My index.php

define(‘IP_URL’, ‘’);

My config.php

$config[‘base_url’] =;

My config


server {
listen 80;

add ssl settings

return 301$request_uri;

server {
listen *:443 ssl;
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;

access_log /var/log/nginx/invoice.access.log;
error_log /var/log/nginx/invoice.error.log;
root /srv/invoice;
index index.html index.htm index.php;
fastcgi_read_timeout 600;

client_max_body_size 100M;
index index.php;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
ssl on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers On;
ssl_session_cache shared:SSL:128m;
ssl_stapling on;
ssl_stapling_verify on;
resolver valid=300s;

location ~ [^/]\.php(/|$) {
    fastcgi_index index.php;
    include fcgi.conf;
    fastcgi_pass unix:/var/run/ajenti-v-php7.0-fcgi-invoice-php7.0-fcgi-0.sock;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;



Can you please include your apache logs (errors) ?

define('IP_URL', '');
Is incorrect, you have to append a slash / to the URL.
Also, do not change the config.php file.

Hi Maxime, my log file is empty.

Hi Kovah, I’ve corrected the URL in the index.php and also config.php as instructed… this is the new error message I’m getting whenever i visit the url

Unable to locate the specified class: Log.php

Ehm. Please make sure that all files were copied correctly. I assume that you downloaded the package from the website and did not cloned the git repository…

Thanks Kovah. yes i did. :+1:

New error

500 Internal Server Error


Log file

2016/12/16 04:01:10 [error] 9389#0: *1 rewrite or internal redirection cycle while internally redirecting to “/srv/invoice/index.php”, client:, server:, request: “GET /index.php/welcome HTTP/1.1”, host: “

My PHP config

try_files $uri/ $uri /srv/invoice/index.php$is_args$args;
fastcgi_split_path_info ^(.+.php)(/.+)$;

thanks your help.

I’m not familiar with nginx configuration so I can’t help you with this. Sorry.

Thank you a lot you’ve done more then enough… working now.

./uploads/customer_files is not writable

there no file or folder named customer_files in the uploads dir.

All working now fuound a fix from the community

Thank you Guys :clap::+1:

1 Like