Install InvoiceNinja on HostGator (Shared)

Going to also test this and see if it works:

https://www.invoiceninja.com/forums/topic/setting-up-cron/

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.

https://invoice-ninja.readthedocs.io/en/latest/install.html

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 sub.mysite.com or mysite.com/ninja/public 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.

https://invoice-ninja.readthedocs.io/en/latest/install.html

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.

OLD LINK
https://support.hostgator.com/articles/cpanel/what-do-i-put-for-the-cron-job-command

NEW LINK
https://www.hostgator.com/help/article/what-do-i-put-for-the-cron-job-command

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.

https://invoice-ninja.readthedocs.io/en/latest/templates_and_reminders.html

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:
Weekly
Two Weeks
Four Weeks
Monthly
Two Months
Three Months
Four Months
Six Months
Anually
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.

http://blog.catsinja.com/2018/10/setup-invoice-ninja-on-hostgator-shared/

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

I’m sure many people will find it helpful.

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.

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

Hi

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.