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.
:~$ 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
Next, enable Apache to start at the boot system.
:~$ sudo systemctl enable apache2
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
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(); ?>
Now, open the web browser and go to http://SERVER_IP/test.php and you will see this.
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
Now, set the root password using the mysql_secure_installation script.
:~$ sudo mysql_secure_installation
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;
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
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/
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>
Then, enable the new virtual host and the rewrite module.
:~$ sudo a2ensite inoERP.conf :~$ sudo a2enmod rewrite :~$ sudo systemctl restart apache2
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.
Now, you have to set the databases credentials.
After that, you can start the installation.
At the end of the installation, go to the login page. User: inoerp and password: inoerp.
And you will see the 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.
inoerp arabic language ???