• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How to Install FossBilling on Ubuntu (Apache Webserver)

By Abhishek Ghosh July 20, 2023 7:27 am Updated on July 20, 2023

How to Install FossBilling on Ubuntu (Apache Webserver)

Advertisement

FOSSBilling is a fork of BoxBilling. It is a self-hosted billing web software with ticket support and knowledgebase mainly designed to be easy for clients and sellers of web hosting niches. However, anyone related to online business or freelancing can use this software. It is suitable for freelancers, small, medium or even large businesses. FOSSBilling comes with Apache 2.0 license, which means it is free software and you are allowed to do any modification for your business. As we have mentioned before, Apache 2.0 license and GNU GPL 3.0 license are similar. GNU GPL is a copyleft license.

It is quite easy to install FossBilling since it is PHP MySQL-based web app and the steps are essentially like that of installing WordPress.

How to Install FossBilling on Ubuntu Apache Webserver

 

Steps for Installing FossBilling on Ubuntu

 

To complete this guide, you will need a Ubuntu server with the hostname something like fossbilling-server, a non-root user with sudo/root administrator privileges (See this guide). You need a sub-domain pointed to the server IP address.

Advertisement

---

Install MariaDB

Install the MariaDB server. When prompted, input y and press ENTER to proceed:

Vim
1
2
3
4
apt update -y && apt upgrade -y
sudo apt install mariadb-server
# check
sudo systemctl status mariadb

Run the secure installation script:

Vim
1
sudo mariadb-secure-installation

These are the questions and answers:

Switch local authentication to unix_socket? N
Set up MariaDB root password? Y
Remove the default anonymous user? Y
Disable remote login for the root user? Y
Remove the default database test? Y
Reload table privileges and apply changes? Y

Now login to MySQL server and create a database and user:

Vim
1
2
3
4
5
6
mysql -u root -p
CREATE DATABASE billingdb;
CREATE USER billingadmin@localhost IDENTIFIED BY ‘write-your-password-here’;
GRANT ALL ON billingdb.* TO billingdb@localhost WITH GRANT OPTION;
FLUSH PRIVILEGES;
QUIT

Install PHP and Apache2

Vim
1
2
3
4
5
6
7
8
9
10
11
sudo add-apt-repository ppa:ondrej/apache2
# Press [ ENTER ]
sudo apt update
sudo add-apt-repository ppa:ondrej/php
# Press [ ENTER ]
sudo apt update
apt-get -y install apache2 apache2-doc apache2-utils
sudo a2enmod rewrite
sudo systemctl restart apache2
sudo apt install php libapache2-mod-php php-mysql php-curl
php -v

Open apache2.conf:

Vim
1
sudo nano /etc/apache2/apache2.conf

Find AllowOverride and set to none:

Vim
1
AllowOverride None

This is an example of /var/www location:

Vim
1
2
3
4
5
6
/etc/apache2/apache2.conf
<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

Restart Apache:

Vim
1
sudo systemctl restart apache2

Install FossBilling

Change directory to /var/www/html and run the commands.

Vim
1
2
3
4
5
6
cd /var/www/html
curl https://fossbilling.org/downloads/stable -L --output FOSSBilling.zip
apt install unzip -y
unzip FOSSBilling.zip
sudo chown -R www-data:www-data /var/www/html
rm FOSSBilling.zip

Now, you need to configure the Apache virtual host and install certbot. You can follow this guide for production server.

Open your web browser and visit the subdomain name of your FosssBilling installation. The FOSSBilling installer should now check and verify your system details. Click Next to continue and complete the wizard. This guide is written to match the points mentioned by the official guide:

Vim
1
https://fossbilling.org/docs/getting-started/apache

This guide is using Apache’s mod prefork module. If you want, you can switch to mpm_event (and PHP-FPM) by following this guide. I do not know why you’ll need mpm_event (and PHP-FPM) for billing web software but I can see that zillion of sites have written guides with PHP-FPM (either with Nginx or Apache). mod_php (with mod prefork) is more stable and secure.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Install FossBilling on Ubuntu (Apache Webserver)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • How to Install WordPress : Ubuntu 16.04, Nginx, PHP7-FPM

    Here is Step by Step Guide on How to Install WordPress on Ubuntu 16.04, Nginx, PHP7-FPM, memcached & Percona MySQL 5.7 on Cloud Server or VPS.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

  • Steps On How To Install Flarum On Ubuntu 16.04

    Here Are The Steps On How To Install Flarum On Ubuntu 16.04 With Apache2 With Required Permissions, Configuring Sendgrid As SMTP Mail Server.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

vpsdime

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cloud-Powered Play: How Streaming Tech is Reshaping Online GamesSeptember 3, 2025
  • How to Use Transcribed Texts for MarketingAugust 14, 2025
  • nRF7002 DK vs ESP32 – A Technical Comparison for Wireless IoT DesignJune 18, 2025
  • Principles of Non-Invasive Blood Glucose Measurement By Near Infrared (NIR)June 11, 2025
  • Continuous Non-Invasive Blood Glucose Measurements: Present Situation (May 2025)May 23, 2025
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2026 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy