Menu
HTTP/2 (HTTP/2.0) is the major upgrade over older version HTTP/1.1 protocol.HTTP/1 was released in 1997 and after a long time the HTTP/2 is released in 2015. HTTP/2 protocol is based on SPDY (generally known as speedy). Some of the key improvements of HTTP/2 are:
- Server push: Server will pro-actively sent components to clients, So clients doesn’t need to wait for sending requests to server.
- Multiplexing: Reducing number of active connection by bundling multiple HTTP requests from client and sent to server.
- Encryption: efficiently use to encryption with TLS protocol in HTTP/2 over HTTP/1.1.
- HTTP header compression: Compressed headers will reduce the overhead of additional requests to web server.
This article will help you to enable HTTP/2.0 in Apache web server on CentOS / Red Hat/ Debian and Ubuntu systems.
Install or Update Apache
A standalone HTTPD is provided as a separate download in the Red Hat Customer Portal at in the JBoss Enterprise Application Platform 6 download area. Refer to Section 13.2.9, “Install the Apache HTTPD included with JBoss Enterprise Application Platform 6” for information about this HTTPD if you wish to use it. Posted October 17, 2013 By oliversimon. In httpd.conf, search for AllowOveride None and change to AllowOveride All, then restart apache. View 1 response to this answer on our full site. Centos uses a modules directory in the /etc/httpd directory that is a symlink to /usr/lib64/httpd/modules (on my system) so you just need. That said, in order to install modproxywstunnel you need to have Apache2.4 or better. This manual page documents briefly the a2enmod and a2dismod commands. A2enmod is a script that enables the specified module within the apache2 configuration. Next, we’re going to install an SSL certificate on CentOS. Install an SSL certificate on CentOS. Using the method below, you can install an SSL certificate on CentOS 7 & 6. Download the primary and intermediate certificates that you’ve received from your SSL provider; Copy your SSL files to your Apache server.
HTTP/2 protocol supported over Apache version >=2.4.17. So make sure that your Apache version supporting HTTP/2 protocol. If you have not installed Apache or using older version upgrade it first. Use the following commands to add PPA for installing latest Apache2 version on your Ubuntu system.
![See See](/uploads/1/1/8/9/118935306/526620092.png)
Verify Apache Version
After successful installation of Apache2 web server on your system, make sure you have Apache >=2.4.17, Earlier version does not supports HTTP/2 protocol.
Enable HTTP/2 in Apache
HTTP/2 protocol requires SSL/TLS virtual hosts. You can’t use HTTP/2 protocol without SSL/TLS enabled websites. Now edit your website VirtualHost and add http2 keyword in listen section.
Verify HTTP/2
Now configure a VirtualHost with SSL for your domain and use following online tool for testing HTTP/2 support on your website.
If you want to install Akaunting for a demo on a local server or for permanent purpose on cloud/hosting VPS server then here is the tutorial to guide you the steps for the installation of Akaunitng on Ubuntu, CentOS, Debian, Linux, Elementary OS and other similar Linux.
Akaunting is free and open source accounting software uses PHP & MySQL to run and available on GitHub. Thus, no need to use any client or the installation of accounting software on each and every system of a company or home. Any user who wants to use the Akaunting for small and medium business or personal usage can access it locally or remotely with the help of the internet and browser, once installed.
It provides a web interface like some WordPress based website and the procedure of its setup is also similar to it. That’s why it is not only user-friendly but also device too. Yes, we can use it on smartphones and tablets as well.
Akaunting Features:
- Completely Free accounting software to use.
- Access financial data online anytime on Mac, PC, tablet or mobile phone.
- Open Source Accounting software with Github repository
- Add deposits to and transfers between accounts
- Send professional invoices to clients
- Vendor Management system
- Create and manage bills
- Add non-billable expenses
- Manage the finances of multiple companies
- Accept bulk payments
- Automatically create invoices, revenues, bills, and payments for ongoing jobs
- Discount management
- Customer Summary
- Graph and Visual reporting
- Mutlicurrencies support
Akaunting requirements:
The requirements of this software are very common and easily provided by almost every hosting service provider.
- PHP 7.2 or higher
- Web Server (eg: Apache, Nginx, IIS)
- Database (eg: MySQL, PostgreSQL, SQLite, SQL Server)
- URL Rewrite (mod_rewrite)
- Php extensions:
- PDO
- OpenSSL
- Mbstring
- Tokenizer
- XML
- Zip
- Official website and Github link of this software
Install Akaunting software on Ubuntu or CentOS Linux
Install Akaunting software on Ubuntu or CentOS Linux
A2enmod Rewrite
Almost all the steps are same for both Ubuntu and CentOS, expect a few such as Apache installation command.
1: Install Apache server for Akaunting
If you already have Apache installed on your Linux server or Desktop where you want to setup Akaunting then move to the next step.
For Ubuntu, Debian and Linux
sudo apt update
sudo apt install apache2
For CentOS & RedHat
yum update
yum install httpd
2. Enable and Start Apache
Once the installation procedure is completed on your server, run the following commands to enable and start the webserver along with system boot.
Ubuntu, Debian and Linux Mint
sudo systemctl enable apache2
sudo systemctl start apache2
CentOS, Redhat and Fedora
sudo systemctl enable httpd
sudo systemctl start httpd
3. Install MySQL server for Akaunting database
To store financial data created by the Akaunting software, we need some database and that would be provided by MySQL. However, you can also use PostgreSQL and SQLite.
To install MySQL on Debian or Ubuntu-based systems use this command:
sudo apt install mysql-server
Whereas for CentOS or Redhat, one can use this one:
yum install mysql-sever
4. Enable MySQL services
After setting up of MySQL, just like Apache, we also have to enable and start this database service at boot level, means whenever our system reboots, Apache and MySQL services should start automatically.
sudo systemctl start mysql
sudo systemctl enable mysql
5. Akaunting database setup
Now using the following commands to create a database that we will use in this opensource accounting software. It will be the same for any Linux OS.
sudo mysql -u root -p
create database h2smedia;
create user h2s;
GRANT ALL ON h2smedia.* TO 'h2s'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
flush privileges;
exit;
Note: Replace the red colour text with whatever you want to use.
6. Akaunting supports PHP 7.2 or high version along with modules
The install Akaunting, minimum PHP version we need to set up for this open-source accounting software is PHP 7.2 or higher.
For Ubuntu, Debian and their equal Linux, here are the commands:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
I Need To Enable ' Mod_headers ' - CentOS
sudo apt update
sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-imap php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-ldap php7.2-zip php7.2-curl
To install PHP on CentOS and other similar Linux
sudo yum install epel-release yum-utils -y
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum-config-manager --enable remi-php72
sudo yum update
sudo yum install php libapache2-mod-php php-common php-imap php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-mysql php-cli php-ldap php-zip php-curl
7. Download zipped Akaunting file to setup
In this step, we will download the latest release file of the Akaunting free software and then extract the same in the public web folder for further usage.
Ubuntu or Debian
sudo apt install git
CentOS or Redhat
sudo yum install git
Clone the latest version of Akaunting available on the Github repository
cd /var/www/html/
git clone https://github.com/akaunting/akaunting.git
Now, change the permission of the cloned folder:
sudo chown -R www-data:www-data /var/www/html/akaunting/
If you get an error” chown: invalid user: ‘www–data:www-data’” after running the above command use this one:
sudo chown -R apache:apache /var/www/html/akaunting/
Now give the apache user full read and write permission:
sudo chmod -R 755 /var/www/html/akaunting/
See: 10 top opensource accounting software
8. Configure Apahce2 site configuration file for Akaunting
Here, we will create an Apache site configuration file for Akaunting to tell it where to look the folder to execute the files and what other things should it follow.
Ubuntu:
sudo apt install nano
CentOS:
yum install nano
Create a file:
Ubuntu or Debian
sudo nano /etc/apache2/sites-available/akaunting.conf
for CentOS
sudo nano /etc/httpd/sites-available/akaunting.conf
Now add the following lines:
Replace the red text with your own domain or values.
To save and exit the nano editor, press: Ctrl+X keys and type: Y and then hit the Enter button.
Enable the configuration and rewrite modules.
sudo a2ensite akaunting.conf
sudo a2enmod rewrite
Finally, restart the apache to make the changes into effect.
Ubuntu:
sudo systemctl restart apache2
CentOS:
sudo systemctl restart httpd
9: Setup & Dashboard of Akaunting open source accounting software
Now, everything is ready, go to your browser and open the server IP address or domain name (if you are installing it on cloud or VPS hosting).
Here, we are installing Akaunting for a demo on our local server, thus we are using the local IP address of the same.
- As you point the domain or IP to access the server, a setup page of the Akaunting will open. First, select the language in which you wan to install it, by default it will be English.Select language
- Add the details of MySQL database which we have created in this article.
- Add the details of the company along with admin email and password which will be used to access this free accounting software from anywhere.Company and admin details
- Finally, the Dashboard of the software will be in front of you. Now, start performing your financial calculations.Akaunting free accounting software installed on Ubuntu Linux
Other Articles: