Install InvoiceNinja on HostGator (Shared)

OK. Thanks a lot! I’m probably going to do it over using this as reference to ensure that others finding this - or having similar issues - will be able to get it done. I’ll check it shortly. Still on the road.

OK. Checked from phone and all its doing is reflecting the main site. Will check from PC in another hour or less.

OK so from a PC I get to the setup URL - so that’s good. I’m having issues when I change these settings below. The site no longer becomes accessible. Since it was working before I’m gonna reload the original .htaccess files and try again. I want to do the setup from scratch and document the process but this last curveball is a little annoying.


RewriteRule ^(.*)$ public/$1 [L]

RewriteRule ^(.*)$ public/$1 [L]


RewriteBase /

RewriteBase /

Yeah - it looks like once you get it up and working you shouldn’t mess with the settings. I’m probably going to do it over soon as I said - but going to try and troubleshoot these a bit first. gives:

You don’t have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at Port 80 which redirects to gives:
Not Found
The requested URL /index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at Port 80

Thanks so very much guys @billyggla & @Hillel Coren.

So far it’s up and working. Going to do the documentation and then post a link.

Going to also test this and see if it works:

0 8 * * * /usr/local/bin/php /path/to/ninja/artisan ninja:send-invoices
0 8 * * * /usr/local/bin/php /path/to/ninja/artisan ninja:send-reminders

No problem, glad you got it working.

I think you were having issues due to the built in file manager messing up the extraction and also due to the mobile redirect on your site while trying to access the install on mobile.

Glad to hear it’s working, thanks @billyggla for all of your help!

@hillel no problem, glad I could help.

So great news. Managed to duplicate the process. The main points would be the PHP version and uploading the fully extracted files - although this is a very long process. From there either or will allow access to the setup. I’ve taken screenshots along the way and will upload for you to use/integrate into your own documentation. While this will be specific to HostGator and the current version of InvoiceNinja, it may be able to help others that have had issues getting it setup.

Notation should also be that this version needs PHP7 or higher. I forgot to look at the requirements on the site.

Once this is done it’s fine. Again - thanks for the great support guys - keep up the good work!

So I’ve done a first draft of the document. Please get in touch with me so I can send it to you directly if you want the info to be placed on your site. I’m going to format it and place it elsewhere with the necessary references made. Thanks again guys!

For reference, I could not get the cron jobs to run due to some information shortage.



Both links have the same information. What I was unaware of would be that it’s the EasyApache 3 and not 4 commands that I’d need to run. Not sure where the difference would be, but for my shared hosting I needed the 3 commands.

So to point out…

EA4: /opt/cpanel/ea-php70/root/usr/bin/php /home/username/public_html/cron.php
EA3: /opt/php70/bin/php /home/username/public_html/cron.php

And the one I needed to use was EA3.

OK - so now I’m going to update the documentation to have this last bit of detail.

As a side-question: how does the Endless Reminder work? Let me give a scenario.

If I’m migrating from another app and created an invoice that is already overdue - sent out the email using the 3rd reminder template - will the system automatically send a new email next week? And will it then continue to send out every week thereafter?

The information below didn’t give me much details to answer that.

I’ve setup a test account going to my own email just to see, but it would be nice to know beforehand since the frequency can’t be less than weekly.

Can you not set the frequency of the endless reminders in the settings?

The frequency can’t be less than weekly. The options are:

First Reminder
Second Reminder
Third Reminder
Endless Reminder

Under ENDLESS the options are:
Two Weeks
Four Weeks
Two Months
Three Months
Four Months
Six Months
Two Years

There was another link where someone wanted more frequent reminders, but that doesn’t look possible. While I think weekly should be fine, I’d like to set it more frequently for initial testing on the invoice I sent to myself. Still it’s almost the weekend, so I should know by Monday next week. That is assuming the reminders are sent on Mondays and not Sundays.

Hi guys. Thanks again. TBH I wanted you to look over the info before I published, but I didn’t get any feedback. Here is the link - let me know if there are any changes you’d make and I’ll get them done.

Just realized the old link above is still there. Not gonna remove - for memories - lol. But here’s the updated link below.

It’s great that you have taken the time to write such a detailed resource.

I’m sure many people will find it helpful.

1 Like

Thanks @billyggla. I always put up info to try and help - especially when I find it difficult or if I can’t find the resources anywhere. I’m not much into software (I did Pascal programming back in 1996 but that was it) and while I have a (fair I think) technical background, the web setup and applications are hard. I’d expect someone running their own Windows or Linux server on a VPS or at home to have enough knowledge on how to get things done. Technology moves very quickly and while you can find lots of resources, it’s helpful when it’s easily accessible.

Going forward persons visiting here (or doing Google searches) should find a pretty straightforward step-by-step set of instructions that should help them get going.

As I said - if Hillel or any other mod for this site would like to use the content I’ve put up to add to the manual - I have no objections to that. All the better to help others that have my level (or lower) in these kind of setups.

Again - thank you guys very much for your time and assistance in getting this done. Keep up the good work!

Thanks for taking the time to write the article, we’ll make sure it’s added to our docs.

1 Like

No problem @Hillel Coren - thank you for all the help in getting it setup. Keep up the good work!


I have same issue
Hosting Hostgator

InvoiceNinja v5.0.13

PHP Version 7.2.32

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@maisait .com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Hi there. This topic has been resolved as the issue is with v4. Your issue with v5 should be posted in that area - please see my link below. Hopefully we can get this resolved.

To somewhat address your issue - that version of PHP is being retired and version 7.3 or higher may be required. You should check your cPanel for the “PHP SELECTOR” or something similar (not using HostGator currently) and maybe you can change the PHP version. If that doesn’t help then please post in the new thread linked above.