How to Install ASTPP on Fedora CoreOS Latest

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.

Prerequisites

Before proceeding, make sure you have the following requirements:

Step 1: Update the system

Ensure that your system is up to date by running the following command:

sudo dnf update

Step 2: Install dependencies

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

Step 3: Install ASTPP

Follow these steps to download and install ASTPP:

  1. Change to the /usr/src directory:

    cd /usr/src
    
  2. Download the latest version of ASTPP from the official website:

    sudo wget https://github.com/astpp/astpp/archive/master.zip
    
  3. Unzip the downloaded file:

    sudo unzip master.zip
    
  4. Change to the directory where the files are extracted:

    cd astpp-master
    
  5. 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.

  6. 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.

Step 4: Configure ASTPP

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.

  1. Login to the MySQL server:

    sudo mysql -u root
    
  2. 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.

  3. 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.

  4. 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.

  5. 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!