Skip to content

Installation

Preparation

Download the latest version of lethal.landing from store.lethal.network.

Tip: If you don't have access to the command-line interface or another way of unzipping a file, extract the downloaded ZIP archive to a location of your choice on your local device.

Uploading Files

The first step is to create the folder where the lethal.landing 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/lethal.landing
cd /var/www/lethal.landing

Once you have created a new directory for lethal.landing and moved into it you'll need to upload the previously downloaded ZIP archive into it. The easiest way to do this is via FTP/SFTP. Once uploaded, extract the contents by executing the following command.

unzip -o lethal.landing_x.x.x.zip
Note: The filename will most likely differ! Replace it accordingly...

Warning!

Installations in subdirectories are not supported! Security risk, don't try! Why?

Configuration

lethal.landing uses Steam API to log users in. To set an administrator and allow logging in we fist create a copy of the example configuration by running:

cp example-config.php config.php

Edit the file to your liking, add as many Steam IDs for admins as you need. You can get an API token here: Steam Developers

Default Data

If this is the first time installing, make a copy of the default data. to do this run:

cp -R example_data/ data/

Heads Up! Possible data loss...

You're reading the Installation! Do not do this when updating lethal.landing, updating is explained here: Updating

Setting File Permissions

Finally, set the correct permissions on the files so that the webserver can use them correctly. Below is an example of how to perform this operation.

chmod -R 755 /var/www/lethal.landing/*

# If using NGINX or Apache (not on CentOS):
chown -R www-data:www-data /var/www/lethal.landing/*

# If using NGINX on CentOS:
chown -R nginx:nginx /var/www/lethal.landing/*

# If using Apache on CentOS
chown -R apache:apache /var/www/lethal.landing/*

Yay! You did it!

Post-Installation Tasks

Now that lethal.landing is installed go ahead and log in with one of the Steam accounts added during Configuration. Administrators will be able to access settings by clicking the ⛭ icon to their name.