ASTPP (A Smart TelePhony Platform) is a free and open-source VoIP billing solution. It comes with a billing engine, which allows you to bill your customers based on their usage, features, and duration of the calls. ASTPP also provides real-time monitoring of call traffic and allows you to generate reports on call logs, billing, and more. In this tutorial, we will show you how to install ASTPP on Ubuntu Server.
Before starting the installation process, make sure that:
Before any installation, we need to update our Ubuntu system with the following command:
sudo apt-get update
sudo apt-get upgrade
ASTPP requires some dependencies to be installed on the Ubuntu server. To install these dependencies, run the following command:
sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mysql php-curl php-pear php-mbstring php-xml libcurl4-openssl-dev libssl-dev libldap2-dev libpng-dev libfreetype6-dev libmcrypt-dev libicu-dev libreadline-dev unixodbc-dev
Download the latest ASTPP version from https://www.astppbilling.org/download/ using wget or curl command:
cd /usr/src
wget https://github.com/iNextrix/ASTPP/archive/refs/tags/4.1.1.tar.gz
Extract the downloaded tar.gz archive:
tar -zxvf 4.1.1.tar.gz
Move the extracted files to /var/www/html/ directory:
mv ASTPP-4.1.1 /var/www/html/astpp
Set the ownership of the ASTPP directory to the apache user:
chown -R www-data:www-data /var/www/html/astpp/
Log in to the MySQL server with the following command:
sudo mysql -u root -p
Create a new MySQL database for ASTPP:
CREATE DATABASE astppdb;
Create a new user for ASTPP and grant all privileges to the user on the ASTPP database:
GRANT ALL PRIVILEGES ON astppdb.* TO 'astppuser'@'localhost' IDENTIFIED BY 'secure_password';
Flush the privileges:
FLUSH PRIVILEGES;
Exit the MySQL shell:
\q
Navigate to the ASTPP installation directory and run the installation script:
cd /var/www/html/astpp/install/
sudo ./install.sh
During the installation, you will be asked some questions, like MySQL database details, admin username and password, and other information related to your ASTPP installation. Enter the appropriate details as per your requirements.
Once the installation is completed successfully, you will see the following message:
====================================================
ASTPP is now installed on your server.
====================================================
This automated script is intended to make the process
as easy as possible for you.
Start using ASTPP with one of the following URLs:
https://<astpp server IP address>/astpp
http://<astpp server IP address>/astpp
By accessing the web interface of the ASTPP billing and
telephony system, you can log in as an admin user with
the following credentials:
username: admin
password: <admin password>
====================================================
Edit the default Apache virtual host file (/etc/apache2/sites-available/000-default.conf):
sudo nano /etc/apache2/sites-available/000-default.conf
Add the following alias at the end of the VirtualHost tag:
Alias /astpp /var/www/html/astpp/
Save and close the file.
Restart the Apache server:
sudo systemctl restart apache2
You can now access the ASTPP web interface using the following URL:
https://<astpp server IP address>/astpp
Login with the admin username and password which you have created during the installation process.
Congratulations! You have successfully installed the ASTPP billing software on your Ubuntu server. You can now start configuring ASTPP to suit your needs.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!