Local PhantomJS PDF Generation

I did all that (Windows Server 2008 R2 IIS)
I believe mcrypt was already in there, so did nothing but set the database up and pointed IIS to the public folder.

I imported the .htaccess file also.

Managed to get to the point of running the setup page, which ultimately said “whoops something went wrong”, even though it set up the mySQL tables as expected.

If there is something obvious you can remember you did that I am missing, please let me know and I’ll give it another go.

Kind regards,

Actually, in case anyone has a suggestion, the laravel log says:

fopen(C:\inetpub\wwwroot\ninja\bootstrap/cache/compiled.php): failed to open stream: Permission denied

I’ve read the troubleshooting and tried allowing IUSR and Application Pool identities full access to that folder.

I’m wondering if the separators are the issue as they change from \ to / ?

Dali could I ask - did you set your home folder in IIS to be /public/ or the main ninja folder?

I don’t use IIS. I have Apache.

I’m using InvoiceNinja as a folder inside my website. https://mywebsite.com/InvoiceNinja/ The reason is I don’t have wildcard SSL certificate. I need to replace the certificate, but don’t find the right time for this yet. However, it works so far.

I login via the link
https://mywebsite.com/InvoiceNinja/public/dashboard

Settings in .env is:
APP_URL=https://mywebsite.com/InvoiceNinja/public

However this is not really recommended. You should go with subdomain like invoiceninja.yourwebsite.com to be on the safe side really.

Br,
Dali

That’s what I’m trying (i.e. a separate site on windows 2008 server). The error message “whoops something went wrong” and even the logs are not helping.

I’ve got it running on Ubuntu, but my primary server is windows.

Did you install composer for PHP when you installed it in Windows 10 can you remember? That may be where my error lies…

What about debug mode. Shows any error? Maybe Hillel can point you to a problem if you paste the error here?

Br,
Dali

I did post it above:

fopen(C:\inetpub\wwwroot\ninja\bootstrap/cache/compiled.php): failed to open stream: Permission denied

but its not permissions - I’ve allowed everything.

My knowledge is not sufficient to be able to help you based on error report. I’m just a advanced user who digs until it starts to work somehow :slight_smile: Hillel was always a great help for InvoiceNinja problems.

Have you tried Apache for Windows instead of IIS? Why would you use IIS anyway? ASP? You can simply install it along the IIS on another listening port?

Br,
Dali

My server is used for some advanced .net websites. Don’t want to install Apache in case there’s some issues…

I’m not convinced its the web server yet. I suspect I’m missing something obvious on the php side.

Thanks for your suggestions though Dali. Much appreciated.

The issue was, in the end, a simple one. No end of changing permissions on the Bootstrap or Storage folder helped. Then I noticed that the Boostrap folder had a ‘read only’ tick on it, as windows tends to do with downloaded files.

Removing that seems to have cured the problem (so far). Took a few hours to figure out so I hope that helps someone.

Thanks for sharing the solution!