Difference between revisions of "Installation"

From GExtension Wiki
Jump to navigation Jump to search
Line 13: Line 13:
 
#Set directory permissions (Linux)
 
#Set directory permissions (Linux)
 
#Open the directory on your webserver using a browser
 
#Open the directory on your webserver using a browser
#Press '''"Retrieve"''' to get your license key
+
#Press '''"Retrieve"''' to get your license if it's not already in the field
 
#Press '''"Start"'''
 
#Press '''"Start"'''
  

Revision as of 23:01, 15 April 2017

This article will lead you through the installation process of GExtension.

Web

First, you have to install GMOD Web.

  1. Download the installation files from ScriptFodder
  2. Edit config.php
    1. Protocol: 'http' or 'https'. Only use 'https' if you have a valid SSL certificate.
    2. SteamAPI: Key: Get your API Key from Steam
    3. Timezone: Select the correct timezone from this site
    4. MySQL: Insert IP, port, user, password and database
    5. SMTP (optional): Insert mailserver, port, username, password, alias, security and method. You can use outlook.com if you do not have your own mailserver.
  3. Upload the files to your webserver
  4. Set directory permissions (Linux)
  5. Open the directory on your webserver using a browser
  6. Press "Retrieve" to get your license if it's not already in the field
  7. Press "Start"

Linux Only

  • You need to allow apache to access (read/write) the GExtension directory. You may use this command:
cd path/to/gextension
chown -R www-data:www-data *
chmod -R 777 *

Troubleshooting

Troubleshooting#Web

Lua

Attention: Your players may loose theire groups if you do not follow the instructions under "Groups and Bans"

After installing the web part, you can now install the Lua addon.

  1. Open GMOD Web with your webbrowser
  2. Click on the bullhorn (further named "Admin") -> Settings -> Update
  3. Click on the "Lua" button and save the ZIP file
  4. Extract the files to a folder and navigate to "gextension/lua/gextension/config/"
  5. Edit sh_config.lua to your needs. Required: WebURL
  6. Edit sv_config.lua and insert your MySQL data (same that you used for GMOD Web)
  7. Upload the folder into your server's addon folder
  8. Install tMySQL or MySQLoo
  9. Restart your server and connect

The Lua installation is now finished and you should see that GExtension has connected to the database in the console. But to work correctly, you now need to assign your server to a serverbundle.

  1. Open GMOD Web with your webbrowser
  2. Navigate to Admin -> Settings -> Servers
  3. Create a new serverbundle with a fitting name (for example "TTT") and select your server
  4. After five seconds, you can see in the console, that the server found the bundle

Groups and Bans

Go to Admin -> Settings -> Groups and create all groups you have in GMOD with the EXACT SAME name.

Import users/bans from ULX or ServerGuard

Make these steps before players connect to your server. Import:ULX-ServerGuard

Troubleshooting

Troubleshooting#Lua