How to Install Invoice Ninja on POP! OS
In this tutorial, we will guide you on how to install Invoice Ninja on POP! OS which is an invoice and payment management software. InvoiceNinja is free and open-source software that can help you manage your customers, invoices, payments, and many more.
Prerequisites
- POP! OS installed on your system.
- A user account with sudo or root privileges
- An internet connection
Step 1: Install Dependencies
The first step is to install the necessary dependencies for the Invoice Ninja. Open the terminal window and run the following command:
sudo apt install wget unzip git
This command will install all the necessary dependencies to proceed further.
Step 2: Download Invoice Ninja
Next, we need to download the latest version of the Invoice Ninja from their official website. You can download the latest version of the Invoice Ninja by running the following command:
wget https://download.invoiceninja.com/ninja-v5.3.2.zip
This command will download the latest version of the Invoice Ninja. You can check for the latest version on the official website. After the download completes, extract the zip file by executing the following command:
unzip ninja-v5.3.2.zip
This command will extract the contents of the downloaded zip file to the current directory.
Step 3: Install PHP and Required Extensions
The next step is to install PHP and its required extensions to run the Invoice Ninja. Run the following command to install PHP, PHP-FPM, and PHP extensions:
sudo apt install php php-fpm php-mbstring php-xml php-zip php-curl php-gd php-json
This command will install PHP and its extensions required for the Invoice Ninja to run.
Step 4: Create a Virtual Host for Invoice Ninja
To run the Invoice Ninja, we need to create a virtual host in the Apache web server. Run the following command to create a new virtual host:
sudo nano /etc/apache2/sites-available/invoiceninja.conf
Paste the following configuration into the file:
<VirtualHost *:80>
ServerName invoiceninja.local
DocumentRoot /var/www/invoiceninja/public
<Directory /var/www/invoiceninja/public/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/invoiceninja_error.log
CustomLog ${APACHE_LOG_DIR}/invoiceninja_access.log combined
</VirtualHost>
Save and close the file.
Step 5: Enable the Virtual Host
Now, enable the newly created virtual host by executing the following command:
sudo a2ensite invoiceninja.conf
This command will enable the newly created virtual host for the Invoice Ninja.
Step 6: Restart Apache Service
After making the changes in the Apache configuration, restart the Apache service to apply the changes by running the following command:
sudo systemctl restart apache2
This command will restart the Apache service on your system.
Step 7: Configure Invoice Ninja
Now, navigate to the extracted directory of the Invoice Ninja and copy the .env.example file to .env as shown below:
cd ninja/
cp .env.example .env
Next, open the .env file in a text editor and configure the following settings:
APP_ENV=production
APP_URL=http://invoiceninja.local
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=dbname
DB_USERNAME=dbuser
DB_PASSWORD=dbpass
Update the DB_DATABASE, DB_USERNAME, and DB_PASSWORD variables with your database details. Save and close the file.
Step 8: Run the Invoice Ninja
The installation and configuration of the Invoice Ninja are completed at this point. Open your web browser and navigate to http://invoiceninja.local. You will see the following page:

Follow the on-screen instructions to complete the setup of the Invoice Ninja.
Conclusion
In this tutorial, you have learned how to install the Invoice Ninja on POP! OS. You can now use the Invoice Ninja to manage your invoices and payments easily.