1. /
  2. Docs
  3. /
  4. PteroRUST-WipeInterface
  5. /
  6. Installation

Installation

File Upload

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 pterorust_wipeinterface_x.x.x.zip into /var/www/pterorust-wi and then unzip it using

unzip pterorust_wipeinterface_x.x.x.zip

Set Permissions

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 storage/ and 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

/var/www/pterorust-wi

. 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 STEAM_API_KEY here.

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.

Crontab Configuration

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
Was this article helpful to you? Yes 1 No 1

How can we help?