|
1: 2011-09-03 (土) 14:30:29 iseki |
| + | *** Helper Scripts [#sd479b44] |
| + | - If you do not use [[XoopenSim>XoopenSim (E)]] or [[Modlos>Modlos (E)]] (Web Interface), you should setup helper scripts by manual. |
| + | - If you use [[XoopenSim>XoopenSim (E)]] or [[Modlos>Modlos (E)]], this function is setup by automatically. |
| + | - You need ''Web Server (ex. Apache) and PHP5 (include PHP5-XMLRPC, PHP5-CURL)'' |
| + | - Please copy Scripts/* to any Web contents directory, and edit ENV_HELPER_URL, ENV_HELPER_PATH and DB information in include/config.php |
| | | |
| + | - command ex.: |
| + | mkdir (Document Root of WEB)/currency |
| + | cp -R Scripts/* (Document Root of Web)/currency |
| + | cd (Document Root of Web)/currency |
| + | chown -R apache.apache . |
| + | vi include/config.php |
| + | |
| + | - include/cpnfig.php: |
| + | // URL of Helper Script |
| + | if (!defined('ENV_HELPER_URL')) define('ENV_HELPER_URL', 'http://202.26.159.139/currency/helper'); |
| + | // Path of Helper Script |
| + | if (!defined('ENV_HELPER_PATH')) define('ENV_HELPER_PATH', '/home/apache/htdocs/currency/helper/'); |
| + | |
| + | define('OPENSIM_DB_HOST', 'localhost'); // FQDN or IP addess of MySQL DB server |
| + | define('OPENSIM_DB_NAME', 'opensim_db'); // DB name of MySSQL |
| + | define('OPENSIM_DB_USER', 'opensim_user'); // User ID of DB |
| + | define('OPENSIM_DB_PASS', 'opensim_pass'); // Password of DB |
| + | |
| + | define('CURRENCY_SCRIPT_KEY', '123456789'); // Secret key of Helper Script |
| + | define('USER_SERVER_URI', 'http://202.26.159.214:8002'); // URL of User Server. Not use localhost or 127.0.0.1 |
| + | |
| + | - Please execute viewer with "-helperuri [ENV_HELPER_URL/]" option. (ex. -loginuri http://localhost/currency/helper/ ) [''need last '/' ''] |
| + | - Here, ENV_HELPER_URL is ''helper'' directory url that is set in include/config.php. |
| + | - If you use 3rd party viewer (ex. Hippo, Meerkat or Imprudence etc.), you should use ''Grid Manager'' instead of "-helperuri" option. |
| + | |
| + | #br |