This application is quite useful for tracking payments. This quick tip is going to only go over the app installation for self-hosted versions (not setting up a server from scratch).
What you need to have:
- A CentOS server and Apache with PHP updated to version 7 or greater. (By default you usually get PHP 5.6. You may need to manually update this to 7. There are tutorials online for this)
- Knowledge or Google-Fu on Virtual Hosts with Apache
- Basic knowledge on moving files/ editing files within a Linux system.
What you need to do:
- Download the files. You can do this through commands like wget on the box or download it from www.invoiceninja.com on a Windows box and upload it to your web server.
- Extract the files either on your linux box or before uploading them through a utility like Filezilla
- Move (mv) the files to your web directory (IE: /var/www/html)
- I tend to put the application under a folder called ninja and modify permissions/ owner appropriately. Modify/ create a Virtual host for 80 and 443 pointed to the directory /var/www/html/ninja/public.
- cd /var/www/html/ninja
- composer install
- composer update
- Now when you navigate to your URL (IE: website.com or web.site.com), you’ll get the setup prompts.
Remember & Note
- The .env is your settings file. It’s required to connect to any existing database if you are doing an update. If you update, please move this file to the new folder you upload.
- Composer is a utility that will download necessary dependencies that Ninja will need to run. I tend to run these two commands every time I update the software to get the latest and greatest versions of all the dependencies.