ASTPP is an open-source VoIP billing solution for managing and automating various aspects of VoIP businesses. In this tutorial, we will guide you through the installation of ASTPP on Fedora CoreOS.
Before proceeding, make sure you have the following requirements:
Ensure that your system is up to date by running the following command:
sudo dnf update
ASTPP requires some dependencies to be installed. Run the following command to install these:
sudo dnf install epel-release
sudo dnf install -y wget mysql-server httpd php php-mysqlnd php-gd php-pear php-xml php-mcrypt php-mbstring php-devel libssh2 libssh2-devel libyaml-devel libffi-devel libzip-devel php-curl php-json php-openssl
Follow these steps to download and install ASTPP:
Change to the /usr/src
directory:
cd /usr/src
Download the latest version of ASTPP from the official website:
sudo wget https://github.com/astpp/astpp/archive/master.zip
Unzip the downloaded file:
sudo unzip master.zip
Change to the directory where the files are extracted:
cd astpp-master
Run the installation script:
sudo sh install.sh
This will start the installation process, and you will be prompted to enter your desired ASTPP installation directory. Press Enter to install it to the default directory.
After the installation completes, run the following command:
sudo systemctl start astpp
sudo systemctl enable astpp
These commands will start the ASTPP service and enable it to auto-start at boot time.
By default, ASTPP uses the MySQL database user root
with no password. However, it is advisable to create a new MySQL user with full privileges for ASTPP.
Login to the MySQL server:
sudo mysql -u root
Create a new user with full privileges:
CREATE USER 'astpp_user'@'localhost' IDENTIFIED BY 'your_password_here';
GRANT ALL PRIVILEGES ON astpp.* TO 'astpp_user'@'localhost';
FLUSH PRIVILEGES;
Replace astpp_user
and your_password_here
with your desired username and password.
Import the ASTPP database schema:
mysql -u astpp_user -p astpp < /usr/src/astpp-master/astpp/sql/001_create_astpp_db.sql
Enter the password you set for your MySQL user when prompted.
Configure ASTPP to use the new MySQL user:
Edit the /usr/src/astpp-master/freeswitch/scripts/mysql/db.conf.php
file and change the values of the following variables:
$dbhost = 'localhost';
$dbname = 'astpp';
$dbuser = 'astpp_user';
$dbpass = 'your_password_here';
Save the file and exit.
Restart the ASTPP service:
sudo systemctl restart astpp
You have successfully installed ASTPP on Fedora CoreOS Latest and configured it to use a new MySQL user. You can now log in to ASTPP using the default username and password admin
and admin
.
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!