-
Notifications
You must be signed in to change notification settings - Fork 12
Installation
1. Edit the details in ../core/config.php
(database details and more)
2. Run ../install.php
in your browser
Installation failed:
2a. On the installation page a SQL code will appear, execute this (e.g. via phpMyAdmin)
After installation
3. Delete ../install.php
and ../SQL.TXT
(!important)
4. Setup cronjobs:
-
../cronjobs/limiters.php
» Execute every 30 seconds! -
../crojobs/igcmds.php
» Execute every 5 seconds!
Open up the crontab, I personally prefer to use the nano editor, so type this:
EDITOR=nano crontab -e
To run the limiters, type (on a new line):
* * * * * bash /path/to/cronjobs/limiters.sh
To run the in-game commands, type (on a new line):
* * * * * bash /path/to/cronjobs/igcmds.sh
5. (Optional) Run in browser instead of cronjobs
Run ../cronjobs/limiters_browser.php
and / or ../cronjobs/igcmds_browser.php
in your browser
And done! Enjoy!
1. Edit ../core/config.php
, These are fake details and some things are left out!
<?php
define('HOME_URL', 'http://localhost/path/to/this/tool/');
# Important to change this! Just some random characters, shouldn't be too difficult, right?
define('RANDOM_STRING', 'D&*(;ShDF&^v&*)SDF[SDFc87&*^]');
$config = array(
'db_host' => 'localhost',
'db_username' => 'mydb_username',
'db_password' => 'pass123',
'db_name' => 'mydb_name',
);
?>
2. Run ../install.php
in your browser
2a. Installation failed
You'll get this message with the code, copy this
Paste this in PhpMyAdmin and execute it
3. Delete install.php and SQL.TXT
Well... No example needed, right? ...
4. Setup cronjobs
Open up the crontab, I personally prefer to use the nano editor, so type this:
EDITOR=nano crontab -e
To run the limiters, type (on a new line):
* * * * * bash /path/to/cronjobs/limiters.sh
To run the in-game commands, type (on a new line):
* * * * * bash /path/to/cronjobs/igcmds.sh