6 C
Texas
angeloma
Senior Writer and partner

Install inoERP on Ubuntu 18.04

In this modern world, it is unthinkable that an organization does not have a system to manage its processes. Fortunately, in Linux, we have many open source alternatives willing to provide solutions at a low cost. So, that is why today I’ll show you how to install inoERP on Ubuntu 18.04.

InoERP is an open source web-based enterprise management system. So, it is built using open source technologies and has a wide range of features suitable for running various kind of businesses. In addition, the application is an ERP (Enterprise Resource Planning) ie a system where you can manage employees, payments, finance, inventory of a company. It is extremely efficient with the use of resources.

So, let us start to install inoERP.

1. Install Apache web server and PHP

inoERP is a web application that runs on a web server, so the first step is to install Apache and PHP.

- Advertisement -
:~$ sudo apt install apache2 php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mysql php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-gd php7.2-bcmath php7.2-xml php7.2-cli php7.2-zip

1.- Install apache and PHP
1.- Install Apache and PHP

Next, enable Apache to start at the boot system.

:~$ sudo systemctl enable apache2

2.- Enabling apache
2.- Enabling apache

Now, you have to configure PHP to work with inoERP. Open the PHP configuration file:

:~$ sudo nano /etc/php/7.2/apache2/php.ini

And change the following options:

file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = YOUR_TIMEZONE

3.- PHP config
3.- PHP config

After that, it is time to test PHP and Apache. To do it, create a file called test.php on the /var/www/html/ folder.

:~$ sudo nano /var/www/html/test.php

So, add the following:

<?php
phpinfo();
?>

4.- PHP test
4.- PHP test

Now, open the web browser and go to http://SERVER_IP/test.php and you will see this.

5.- PHP info
5.- PHP info

So, Apache and PHP are installed.

2. Install MariaDB

inoERP supports several database handlers, from MariaDB to PostgreSQL through Oracle Database. In this case, I will choose MariaDB.

:~$ sudo apt install mariadb-server

6.- Install mariadb
6.- Install MariaDB

Now, set the root password using the mysql_secure_installation script.

:~$ sudo mysql_secure_installation

7.- Configuring mariadb
7.- Configuring MariaDB

Using this script you will not only be able to configure the root password, but also other server configurations. For this example, I will answer Y, N, Y, Y.

Now, create a database and user for inoERP.

:~$ sudo mysql -u root -p
CREATE DATABASE inoerpdb;
GRANT ALL PRIVILEGES ON inoerpdb.* TO 'inoerpuser'@'localhost' IDENTIFIED BY 'inoerppss';
FLUSH PRIVILEGES;
exit;

8.- Creating the database for inoERP
8.- Creating the database for inoERP

So, MariaDB is ready.

3. Install inoERP on Ubuntu 18.04

Now we will be able to install it, for it we will use git and thus clone its repository on the Apache web folder.

:~$ sudo apt install git
:~$ cd /var/www/html/
:~$ sudo git clone https://github.com/inoerp/inoERP.git

9.- Cloning the inoERP repository
9.- Cloning the inoERP repository

After that, assign the correct permissions.

:~$ sudo chown -R www-data:www-data /var/www/html/inoERP/
:~$ sudo chmod -R 755 /var/www/html/inoERP/

10.- Change the permissions
10.- Change the permissions

Then, create a new virtual host for using inoERP.

:~$ sudo nano /etc/apache2/sites-available/inoERP.conf

And add the following:

<VirtualHost *:80>
     ServerAdmin admin@your_domain.com
     DocumentRoot /var/www/html/inoERP/inoerp/www
     ServerName inoerp.osradar.lan
     ServerAlias inoerp.osradar.lan

     <Directory /var/www/html/inoERP/inoerp/www/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined
    
     <Directory /var/www/html/inoERP/inoerp/www/>
            RewriteEngine on
            RewriteBase /
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(.*) index.php [PT,L]
    </Directory>
</VirtualHost>

11.- Create the new virtaulhost
11.- Create the new virtual host

Then, enable the new virtual host and the rewrite module.

:~$ sudo a2ensite inoERP.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2

12.- Restart apache
12.- Restart apache

So, complete the installation.

4. Complete the installation

Open your web browser and complete the installation by going to your virtual host. And you will see this.

13.- Installation prerequisites
13.- Installation prerequisites

Now, you have to set the databases credentials.

14.- Databases parameters
14.- Databases parameters

After that, you can start the installation.

15.- Install inoERP
15.- Install inoERP

At the end of the installation, go to the login page. User: inoerp and password: inoerp.

16.- Log in
16.- Log in

And you will see the dashboard.

17.- Dashboard
17.- Dashboard

So, that’s it.

Conclusion

Installing and managing these applications will make your business more orderly and better managed. Therefore, it is good to install inoERP to be more efficient in business processes.

Please share this post with your friends.

 

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article