![]() ![]() You can create it with the following command: nano /etc/httpd/conf.d/nfĬustomLog /var/log/httpd/invoice_ninja_access.log combinedĮrrorLog /var/log/httpd/invoice_ninja_error.log Next, you will need to create an Apache virtual host configuration file for InvoiceNinja. Save and close the file, then set proper permissions and ownership to the InvoiceNinja directory: chown -R apache:apache /var/www/html/ninjaĬhmod -R 755 /var/www/html/ninja/storage/ Step 5 – Configure Apache for InvoiceNinja envĬhange the following lines: DB_HOST=localhost env file and define your database settings: nano. Next, change the directory to the InvoiceNinja and install all required dependencies: cd /var/www/html/ninja Once the download is completed, move the downloaded file to the Apache web root: mv invoiceninja /var/www/html/ninja Next, download the latest version of InvoiceNinja with the following command: git clone -b v5-stable -single-branch ![]() You will get the following output: Composer version 2.4.2 16:11:15 Once Composer is installed, verify the Composer version using the following command: composer -V Php composer-setup.php -install-dir=/usr/local/bin -filename=composer ![]() You can install it with the following command: curl -sS -o composer-setup.php Next, flush the privileges and exit from the MariaDB shell with the following command: FLUSH PRIVILEGES įirst, you will need to install Composer on your server. GRANT ALL ON invoiceninja.* TO IDENTIFIED BY "password" Next, create a database and user with the following command: CREATE DATABASE invoiceninja InvoiceNinja uses MariaDB/MySQL as a database backend, so you will need to create a database and user for InvoiceNinja.įirst, log in to the MariaDB shell with the following command: mysql Systemctl enable httpd mariadb php-fpm Step 3 – Create a Database for InvoiceNinja Next, start and enable the Apache, MariaDB, and PHP-FPM services with the following command: systemctl start httpd mariadb php-fpm Next, install PHP with other required extensions using the following command: dnf install php php-nogpgcheck Next, enable the PHP 8.1 repository with the following command: dnf module enable php:remi-8.1 Next, install the EPEL and PHP Remi repositories with the following command: dnf install epel-release -y Next, you will need to install the latest version of PHP on your server.įirst, reset the default PHP module with the following command: dnf module reset php You can install both packages using the following command: dnf install httpd mariadb-server -y dnf update -y Step 2 – Install Apache, MariaDB, and PHPįirst, you will need to install the Apache and MariaDB service on your system. Once you are logged in to your server, run the following command to update your base system with the latest available packages. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page. Create a new server, choosing Oracle Linux 8 as the operating system with at least 2GB RAM. Step 1 – Create Atlantic.Net Cloud Serverįirst, log in to your Atlantic.Net Cloud Server. A root password is configured on your server.A server running Oracle Linux 8 on the Atlantic.Net Cloud Platform.In this post, we will show you how to install InvoiceNinja on Oracle Linux 8. InvoiceNinja offers a lot of useful features such as recurring invoices, creating tasks, proposals, and projects, invoice designs, multiple payment options and more. It is written in PHP and JavaScript and designed for invoicing and billing customers. | id | company_id | account_id | user_id | is_owner | is_admin |įrom the SQL output we can see that user_id 1 is defined as owner (is_owner).InvoiceNinja is free, open-source, low-cost invoicing software that allows you to create and send invoices to your client with your own branding. MariaDB > SELECT id,company_id,account_id,user_id,is_owner,is_admin FROM company_user The setting in question is a simple on (1) or off (0) in the is_owner column in the company_users table: If you have enough technical knowledge and know some SQL, you can adjust the "owner flag" directly in the database, used by the Invoice Ninja installation. Luckily there's a solution (there is always a solution!). It is also nowhere possible in the application to manually add this flag to a user. All additional users do not get that flag. The "owner" flag is automatically set to the first account created in that installation. The reason for this option being hidden is that it is only shown to the "owner" of that Invoice Ninja installation. ![]()
0 Comments
Leave a Reply. |