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 invoice.mydomain.com page isn’t working

invoice.mydomain.com is currently unable to handle this request.
HTTP ERROR 500

My index.php

define(‘IP_URL’, ‘https://invoice.mydomain.com’);

My config.php

$config[‘base_url’] = https://invoice.mydomain.com;

My config

#AUTOMATICALLY GENERATED - DO NO EDIT!

server {
listen 80;
server_name invoice.mydomain.com;

add ssl settings

return 301 https://invoice.mydomain.com$request_uri;
}

server {
listen *:443 ssl;
ssl_certificate /etc/letsencrypt/live/invoice.mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/invoice.mydomain.com/privkey.pem;
server_name invoice.mydomain.com;

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_ciphers EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers On;
ssl_session_cache shared:SSL:128m;
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 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;
}

}

Hey,

Can you please include your apache logs (errors) ?

define('IP_URL', 'https://invoice.mydomain.com');
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

nginx

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: 85.14.30.242, server: invoice.mydomain.com, request: “GET /index.php/welcome HTTP/1.1”, host: “invoice.mydomain.com

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
https://community2.invoiceplane.com/t/tip-error-on-setup-screen-upgrading-to-1-4-0/930

Thank you Guys :clap::+1:

1 Like