|
PeakAPI
Helpful
|
Installation Steps
Download the latest version:
http://www.peakapi.com/modules/smartsection/item.php?itemid=14 ===================================================================================== STAGING FILES ===================================================================================== 1. Upload zip file to your web server 2. Unzip file ===================================================================================== MODIFY mainfile.php ===================================================================================== 1. Edit 9 variables within mainfile.php (the --> below) // XOOPS Physical Paths // Physical path to the XOOPS documents (served) directory WITHOUT trailing slash --> define( 'XOOPS_ROOT_PATH', '/put/your/physical/path/here' ); // For forward compatibility // Physical path to the XOOPS library directory WITHOUT trailing slash --> define( 'XOOPS_PATH', '/put/your/physical/path/her/xoops_lib' ); // Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash --> define( 'XOOPS_VAR_PATH', '/put/your/physical/path/her/xoops_data' ); // Alias of XOOPS_PATH, for compatibility, temporary solution --> define("XOOPS_TRUST_PATH", XOOPS_PATH); // XOOPS Virtual Path (URL) // Virtual path to your main XOOPS directory WITHOUT trailing slash // Example: define( 'XOOPS_URL', 'http://www.peakapi.com' ); --> define( 'XOOPS_URL', 'http://www.peakapi.com' ); // Database Username // Your database user account on the host --> define( 'XOOPS_DB_USER', 'CHANGEME' ); // Database Password // Password for your database user account --> define( 'XOOPS_DB_PASS', 'CHANGEME' ); // Database Name // The name of database on the host. The installer will attempt to create the database if not exist --> define( 'XOOPS_DB_NAME', 'CHANGEME' ); // ADDED FOR PEAKBACKUP - NOT XOOPS NATIVE --> $encrypt_key = "CHANGEME"; //Change this at initial install - NEVER CHANGE OR LOSE - include XOOPS_ROOT_PATH . '/modules/acctmgmt/includes/std.encryption.class.php'; // END ADDED FOR PEAKBACKUP - NOT XOOPS NATIVE NOTE: If you can't figure out your phsical path on your server (sometimes difficult on a hosted plan), place the following in your htdocs root and access from a browser: ===================================================================================== CONFIGURE FOLDERS AND FILE PERMISSIONS ===================================================================================== 1. Ensure following folders are writable by server uploads xoops_data/ xoops_data/caches/ xoops_data/caches/xoops_cache/ xoops_data/caches/smarty_cache/ xoops_data/caches/smarty_compile/ xoops_lib/modules/protector/configs xoops_data/configs include/license.php modules/acctmgmt/localKey.txt Linux example: # chmod 777 uploads xoops_data/ chmod 777 xoops_data/caches/ chmod 777 xoops_data/caches/xoops_cache/ chmod 777 xoops_data/caches/smarty_cache/ chmod 777 xoops_data/caches/smarty_compile/ chmod 777 xoops_lib/modules/protector/configs chmod 777 xoops_data/configs chmod 777 include/license.php chmod 777 modules/acctmgmt/localKey.txt 2. Ensure mainfile.php is readable only Linux example: chmod 444 mainfile.php 3. Ensure proper ownership on all files Linux example: chown -R owner:group * If you are not sure of the group since you just unzipped to your web server's http folder, cd up on level and perform a long listing. For example: cd .. ls -l Output will be something like: drwxr-x--- 22 peakapi psaserv 4096 Nov 16 2008 httpdocs For this example (change your user:group and http folder for your specific host): chown -R peakapi:psaserv httpdocs 4. Intallation and recovery, delete contents of xoops_data/caches/xoops_cache/ xoops_data/caches/smarty_cache/ xoops_data/caches/smarty_compile/ Linux example: rm xoops_data/caches/xoops_cache/* rm xoops_data/caches/smarty_cache/* rm xoops_data/caches/smarty_compile/* 5. Edit modules/acctmgmt/config.php with Trial or Purchase license $peakAPILicense = "VDev@5$dVadkd"; //Change license name between quotes received from PeakAPI ===================================================================================== STAGING MySQL DATABASE ===================================================================================== 1. Create a MySQL database 2. Create a MySQL user and password 3. Import the .sql files located in the mysql folder of download Note: Ensure your database, user, and password match the edits of mainfile.php ===================================================================================== At this point, you can go to your URL and login to your new website ===================================================================================== CHANGING THE PRICING 1. Edit modules/acctmgmt/config.php The majority is semi-explanatory.... 2. Verify changes by saving the file and refreshing browser at this URL: http://YOURDOMAIN.com/modules/acctmgmt/index.php?op=add_account ===================================================================================== ENSURING YOUR WEB SERVER CAN TALK WITH YOUR AHSAY SERVER - 5.5.2.X and prior 5.5.3.X READ THE ADMIN GUIDE ===================================================================================== Note: Always read the administrator guide from Ahsay to ensure proper web.xml editing. Begin Ahsay Configuration To avoid OBS’s APIs from being exploited by hackers from an unauthorized network, OBS, by default, accepts and handles only the API requests originating from the same local machine. To loosen this restriction, please do the following: 1. Open %INSTALL_DIR%\webapps\obs\WEB-INF\web.xml 2. Edit the Range values. I'll give an example since the Ahsay docs. are semi-clear: Range1: localhost/OBS server itself Range2: Another local setting Range3: Not OBS default. Added for LAN support. Range4: Not OBS default. Added for Internet support. 3. Restart OBS |