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:
- An SSH client to connect to your Fedora CoreOS instance
- A sudo user account
- Access to the internet
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:
Change to the
/usr/srcdirectory:cd /usr/srcDownload the latest version of ASTPP from the official website:
sudo wget https://github.com/astpp/astpp/archive/master.zipUnzip the downloaded file:
sudo unzip master.zipChange to the directory where the files are extracted:
cd astpp-masterRun the installation script:
sudo sh install.shThis 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 astppThese 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.
Login to the MySQL server:
sudo mysql -u rootCreate 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_userandyour_password_herewith 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.sqlEnter 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.phpfile 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.