Install Maian Guardian

Server Requirements
A Windows or Linux web server with a PHP version 7.0 or higher. To view currently supported versions, see the system requirements.
1 MySQL/MariaDB database to hold the script tables. MySQL5+ is recommended. This is set up on your web server.
MySQL Improved Extension (mysqli) functions enabled on server for database connection. Note that MySQL running in STRICT mode is NOT currently supported.
JSON functions enabled on server for ajax responses.
Mcrypt library enabled for data encryption (not required for white label licence). Required for PHP7.0* ONLY.
OpenSSL library enabled for data encryption (not required for white label licence). PHP7.1 or higher ONLY.
ZipArchive Class enabled for zip downloads.
CURL functions enabled for software version check and API.
shell_exec function enabled on server for command line operations.
Source Guardian encoding software.

The installer will check what functions are available.

You MUST also have a good understanding of Source Guardian and how it's "licgen" program works. If you don't understand Source Guardian, please ask for assistance on their support forums. We can offer no support for Source Guardian.
1 Create Config File/MySQL Database
If you don't have a database available, create one via your server control panel. Most server control panels have easy options to create databases, but if you are unsure, contact your host.

Once a database is available, copy the 'control/_cfg-sample.php' file as 'control/_cfg.php' and open the 'control/_cfg.php' file in your text editor and update the connection parameters. Example:

define('DB_HOST', 'localhost');
define('DB_USER', 'joeblogs_admin');
define('DB_PASS', '12345XX');
define('DB_NAME', 'guardian');
define('DB_PREFIX', 'mg_');
define('DB_CHAR_SET', 'utf8');
2 Secret Key
Also, in the 'control/_cfg.php' file set a unique secret key (or salt) value. This should be a combination of letters, numbers and/or special characters.

define('SECRET_KEY', 'Your unique string here');
You can use the Maian Media secret key service to generate a unique key. See the connection file for more information.
3 Set Administration Password
Again, in the 'control/_cfg.php' file enter a administration user/pass. Examples:

define('LG_USER', 'admin');
define('LG_PASS', 'admin');
You can also restrict the login to certain IP addresses ONLY for security. Enter one or more IP addresses separated with a comma. Useful only if you have a fixed IP address. Leave blank for no IP restriction. Examples:

define('LG_RESTRICT_BY_IP', '127.0.0.1');
define('LG_RESTRICT_BY_IP', '127.0.0.1,78.150.204.108');
Note that this is not a server IP restriction.

The global user has access to all areas. You can also add additional staff members via the staff menu option in your admin area. Staff added here can have restricted privileges. The IP restriction set above would also apply to other staff members if set.
4 FTP
Using a good FTP program such as FileZilla, WinSCP or Cyberduck, transfer the 'guardian' folder to your web server. You may rename the folder if you wish or have the files in your public html root not inside a folder.
5 Permissions
Give the following directories read/write permissions. Chmod to 0777 on Linux or 0755 if supported.

logs/
lic/
You may be able to do this directly in your FTP via the right click menu.
6 Run Installer
Access the installer in your browser via the 'install/index.php' file. Follow the onscreen instructions.

Important: When you have run the installer, rename or delete the 'install' folder from your server.

(Advanced users may prefer to manually run the 'docs/schematic/database-schema.sql' file)
7 Update Settings
Once the installer is run, log into your administration centre (admin/index.php) with the user/pass you specified above and update your settings.
8 SMTP Setup
Set up a SMTP account so the system can send emails.
9 Rename Admin Folder
For extra security it is recommended you rename the 'admin' folder to something else. If you rename the folder, enter the new folder name in the 'ADMIN_FOLDER' value in the 'admin/control/options.php' file.
10 Install Source Guardian licgen Program
Refer to the licgen program instructions.
11 Creating Products
Refer to the License Setup section for help in setting up your software to use an external program in Source Guardian. Once you have that in place you can add your products to Maian Guardian.
12 Auto Create Licenses
Once your products are in Maian Guardian, you'll need to setup your payment routines to transmit POST data to Maian Guardian via the API. More info here.