Step 3: configure the mandatory settings |
Modify the "config.php" file1) Navigate to the "inc" subfolder (heakdist/admin/inc) and edit the config.php file stored on your server. Note: ensure that the config.php file can only be accessed from other scripts (normally you have a .htaccess that prevents end users from accessing files in the inc folder) because this file contains sensitive data. This is the beginning of the config.php file: <?php // Should be left unchanged unless you know what you do define('DOC_ROOT', realpath(dirname(__FILE__) . '/../')); define('URL_ROOT', str_replace('\\', '/', substr(DOC_ROOT, strlen(realpath($_SERVER['DOCUMENT_ROOT']))))); // Global database parameters that you must configure: $dbhost = "localhost"; // Database settings on your remote host. Port can be specified too, e.g. hostname:8080 $dbname = "heak"; // Database name associated to the publication. $dbuser = "root"; // Database login info. $dbpass = "password"; // Administrator log in: $adminname = "admin"; $adminpass = "admin"; /* SECURITY: be sure to use your own password. If you know php, you should also use the encryption features from the Flourish php library, like fCryptography::checkPasswordHash (edit the login.php file). */ error_reporting(0); fCore::disableContext(); /* // Comment the previous lines and uncomment the three following lines if you want to enable error logging. error_reporting(E_STRICT | E_ALL); fCore::enableErrorHandling('html'); fCore::enableExceptionHandling('html'); */ // Replace with your local timezone: fTimestamp::setDefaultTimezone('Europe/Paris'); /* Do not modify below this line */ 2) Change the values of the $db* variables to the appropriate ones from your hosting provider. In our tutorial, $dbname should be changed from "heak" to "myheak". 3) Choose a name and password for the administration panel. Of course, do not keep the default values: $adminname and $adminpass should be customized. 4) Modify your timezone to the appropriate value: a list of available timezones are in the PHP's manual at http://www.php.net/manual/en/timezones.php 5) Save modifications to the config.php file.
|
This is the online documentation of the HTML Executable Activation Kit.
About this Activation Kit
HTML Executable is an ebook compiler that lets you build secure ebooks with your websites, HTML or PDF documents. The generated ebooks can work with online activation: you can create trial or restricted versions of your ebooks, and offer them for public downloads. After purchase, customers can activate their ebook thanks to an activation code on a given number of computers only. Moreover, you can control who may read your ebook, block access at any time and authorize refunds to your customers. Everything is automated thanks to this activation kit.