The first step is to create the folder where the WI will be installed in, then move ourselves into that newly created folder. Below is an example of how to perform this operation.
mkdir -p /var/www/pterorust-wi cd /var/www/pterorust-wi
Once you have created a new directory for the WI and moved into it you’ll need to download the WI files. Navigate to ‘Account’ > ‘Downloads’ and download the latest version. Upload the downloaded
/var/www/pterorust-wi and then unzip it using
The next step is to set the correct permissions on the WI files so that the webserver can use them correctly.
Set the correct permissions on the
bootstrap/cache/ by issuing the following command:
chmod -R 755 storage/* bootstrap/cache/
# If using NGINX or Apache (not on CentOS): chown -R www-data:www-data /var/www/pterorust-wi/* # If using NGINX on CentOS: chown -R nginx:nginx /var/www/pterorust-wi/* # If using Apache on CentOS chown -R apache:apache /var/www/pterorust-wi/*
Setup & Database Migration
Make a copy of the example configuration.
cp .env.example .env
Locate and and edit the
.env file in
. Make sure that you set
STEAM_OWNER_ID to the root admins SteamID as this will be the only user that can setup and view Pterodactyls API credentials and is able to set up more users. You can get a
Please make sure to have a database ready for and fill in all DB_ related options before continuing with the next step.
Once finished editing the
.env file run the following commands:
php artisan key:generate php artisan migrate --seed --force
Above command will run all migrations and will also set up
STEAM_OWNER_ID as the first user.
Create a new cronjob that runs every minute to process specific tasks, such as requesting map data from rustmaps.com, executing scheduled tasks, and most importantly check if a wipe is due. You’ll need to open your crontab using
sudo crontab -e and then paste the line below. The path may depend on the location you’ve set the WI up.
* * * * * php /var/www/pterorust-wi/artisan schedule:run >> /dev/null 2>&1