Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to install Logic Invoice on an Ubuntu Server

Today we will show you how to install Logic Invoice on an Ubuntu 14.04 VPS using Apache web-server and MySQL database.

Logic Invoice is a user-friendly and feature-rich accounting and invoicing solution for your small business needs written in PHP, which uses MySQL to store pages. Logic Invoice is free, and open source. By making Logic Invoice open source, the possibilities are endless! It is fairly easy to install Logic Invoice on an Ubuntu Virtual Server. The installation process should take about 5-10 minutes if you follow the very easy steps described below.

At the time of writing this tutorial, Logic Invoice 1.1.1 is the latest stable version available and it requires:

  • Apache web server;
  • PHP (version 5.3. or higher);
  • MySQL(version 5.1 or higher) installed on your Linux Virtual Server;

Installation instructions:

Log in to your VPS via SSH

ssh user@vps_IP
Update the system
[user]$ sudo apt-get update && sudo apt-get -y upgrade
Install MariaDB 10.0

To install MariaDB, run the following command:

[user]$ sudo apt-get install -y mariadb-server

Next, we need to create a database for our Logic Invoice installation.

[user]$ mysql -u root -p

MariaDB [(none)]> CREATE DATABASE logic;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON logic.* TO 'logicuser'@'localhost' IDENTIFIED BY 'your-password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Do not forget to replace ‘your-password’ with a strong password.

Install Apache2 web server
[user]$ sudo apt-get install apache2
Install PHP and required PHP modules

To install the latest stable version of PHP version 5 and all necessary modules, run:

[user]$ sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-mysql php5-gd

Download and extract the latest version of Logic Invoice on your server:

[user]$ sudo cd /opt && wget https://github.com/Equotix/Logic-Invoice/releases/download/v1.1.1/Logic-Invoice-1.1.1.zip
[user]$ sudo unzip Logic-Invoice-1.1.1.zip -d logic-invoice
[user]$ sudo mkdir /var/www/html/logic-invoice
[user]$ sudo mv logic-invoice/upload/* /var/www/html/logic-invoice

All files have to be readable by the web server, so we need to set a proper ownership

[user]$ sudo chown www-data:www-data -R /var/www/html/logic-invoice/

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘logic-invoice.conf’ on your virtual server:

[user]$ sudo touch /etc/apache2/sites-available/logic-invoice.conf
[user]$ sudo ln -s /etc/apache2/sites-available/logic-invoice.conf /etc/apache2/sites-enabled/logic-invoice.conf
[user]$ sudo nano /etc/apache2/sites-available/logic-invoice.conf

Then, add the following lines:


ServerAdmin [email protected]
DocumentRoot /var/www/html/logic-invoice/
ServerName your-domain.com
ServerAlias www.your-domain.com

Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all

ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common

Restart the Apache web server for the changes to take effect:

[user]$ sudo service apache2 restart

Open your favorite web browser, navigate to http://your-domain.com/ and if you configured everything correctly the Logic Invoice installer should be starting. You should follow the easy instructions on the install screen inserting the necessary information as requested.

That is it. The Logic Invoice installation is now complete.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.



This post first appeared on Virtual-Server.org Virtual Server, please read the originial post: here

Share the post

How to install Logic Invoice on an Ubuntu Server

×

Subscribe to Virtual-server.org Virtual Server

Get updates delivered right to your inbox!

Thank you for your subscription

×