PteroBilling has not yet been released. The Dev version contains known or unknown bugs. Install it now at your own risk. Please wait for the pre-release for a more stable version.

Download Our Source Code

First, go to the directory where the website files are stored, for example:

cd /var/www

Next, run the following commands and a new folder named ‘pterobilling’ will be created automatically in your current working directory:

composer create-project pterobilling/pterobilling pterobilling --no-dev --stability=dev

Then, set the correct permissions of the files so that the web server can access them.

chmod -R 755 /var/www/pterobilling
chown -R www-data:www-data /var/www/pterobilling

Configure MySQL Database & SMTP Server

Please make sure you have already set up a MySQL database and edited the .env file before continuing the installation.

After editing the .env file, run the following commands. The first command will migrate all tables to the database. The others will cache the configurations and views to optimize the performance.

php artisan migrate --seed --force
php artisan config:cache
php artisan view:cache

Set Up Cron Job & Queue Worker

Then, let's set up a cron job and a queue worker. Run the following command to open the crontab configuration.

crontab -e

Copy and paste the following lines to the file.

* * * * * php /var/www/pterobilling/artisan schedule:run >> /dev/null 2>&1
* * * * * php /var/www/pterobilling/artisan queue:work --sansdaemon --tries=3 >> /dev/null 2>&1

Configure Web Server

After that, you should create an SSL certificate and set up your web server. You may also make some changes to the .env file of Pterodactyl panel (optional).

Log into Admin Area

Finally, log into the admin area with the default account [email protected] and the password is password. Remember to change the default email address and password!