How to Install ASTPP on Fedora Server Latest

ASTPP is an open-source billing system designed for modern VoIP networks. In this tutorial, we will guide you through the steps of installing ASTPP on Fedora Server Latest.

Prerequisites

Step 1: Update the System

Before installing ASTPP, you need to make sure that your system is up-to-date. Use the following command to update the system:

sudo dnf update

Step 2: Install Required Dependencies

ASTPP requires several dependencies to operate correctly. Use the following command to install the required dependencies:

sudo dnf install -y epel-release yum-utils nano wget net-tools mariadb mariadb-server mariadb-devel httpd httpd-devel mod_ssl gcc-c++ php php-cli php-gd php-ldap php-zip php-mysqlnd php-soap php-xml php-mbstring php-fpm php-opcache php-mcrypt php-bcmath python36 python36-setuptools python36-devel python36-pip python36-cryptography python3-jinja2 python3-paramiko python3-ldap python3-lxml python3-selenium python3-sqlalchemy python3-sshtunnel python3-pymysql python-devel python-pip python-wheel

Step 3: Install ASTPP

After installing the required dependencies, we can now start installing ASTPP. Follow the steps below:

  1. Go to the ASTPP website and download the latest version using the following command:

    wget https://github.com/iNextrix/ASTPP/archive/refs/tags/v4.2.2.tar.gz
    
  2. Extract the downloaded archive using the following command:

    tar -xvzf v4.2.2.tar.gz
    
  3. Rename the extracted ASTPP directory for convenience:

    mv ASTPP-4.2.2/ astpp/
    
  4. Install ASTPP using the following command:

    cd astpp/
    sudo python3 setup.py install
    

Step 4: Configure MariaDB

ASTPP requires a database to store its configuration data. We will use MariaDB for this purpose.

  1. Start MariaDB service:

    sudo systemctl start mariadb
    
  2. Secure MariaDB:

    sudo mysql_secure_installation
    
  3. Create a database for ASTPP:

    mysql -u root -p
    
    CREATE DATABASE astpp;
    GRANT ALL PRIVILEGES ON astpp.* TO 'astpp'@'localhost' IDENTIFIED BY 'password';
    FLUSH PRIVILEGES;
    exit
    

    Replace password with a strong password.

Step 5: Install ASTPP Configurations

  1. Copy ASTPP configuration files to /etc/astpp directory:

    cp conf/astpp*.conf /etc/astpp/
    
  2. Copy ASTPP database schema to MariaDB:

    cd /usr/src/astpp/sql
    mysql -u astpp -p astpp < astpp.sql
    mysql -u astpp -p astpp < ratings.sql
    
  3. Update ASTPP configurations for your environment:

    nano /etc/astpp/astpp.conf
    

    Update the values for DATABASE_USER, DATABASE_PASS and DATABASE_NAME with the appropriate values you set earlier.

Step 6: Configure Apache

We will now configure Apache to serve ASTPP.

  1. Create virtual host configuration file:

    nano /etc/httpd/conf.d/astpp.conf
    

    And add the following content:

    <VirtualHost *:80>
      ServerName your_domain.com
      DocumentRoot /usr/src/astpp/
      ErrorLog /var/log/httpd/astpp-error.log
      CustomLog /var/log/httpd/astpp-access.log combined
      <Directory /usr/src/astpp/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
      </Directory>
    </VirtualHost>
    

    Replace your_domain.com with your own domain name.

  2. Start and enable Apache:

    sudo systemctl start httpd
    sudo systemctl enable httpd
    

Step 7: Start ASTPP

  1. Generate the ASTPP startup configuration:

    astpp_start
    
  2. Start ASTPP:

    astpp_svc start
    

Conclusion

You have now installed and configured ASTPP on your Fedora Server Latest. You can now start using it to manage your VoIP network billing and ratings.

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!