...
Code Block | ||
---|---|---|
| ||
# Make sure you change this from client to server define('RYAPI_MODE', 'server'); // Url where the api is define('RYAPI_URL', 'http://api.domain.org/'); /* ... skip some code ... */ // used by "home" link if (!defined('RYAPP_URL')) define('RYAPP_URL', 'http://app.domain.org/'); |
Info |
---|
We still need documentation regarding:
|
...
Code Block | ||
---|---|---|
| ||
define('RYAPP_URL', 'http://app.domain.org/'); |
Build the Database
You will need to execute two scripts to build the basic API database and the test application database.
...
Code Block |
---|
GRANT ALL ON webig.* TO webdb@localhost; GRANT ALL ON app_test.* TO webdb@localhost; |
Troubleshooting
Table players not found
Problem: If you receive the following error:
Panel |
---|
PHP Notice: Use of undefined constant RYAPI_WEBDB_PASS - assumed 'RYAPI_WEBDB_PASS' in /home/username/ryzomcore/web/api/common/db_lib.php on line 136 |
Solution: You need to ensure that the RYAPI_MODE is set to server. The client mode is intended for remote third-party API use.
Broken images at login screen
Problem: When you go to the login screen you see the input boxes with a black background but no images.
Solution: In your api/common/config.php and your app/config.php ensure that the URL fields have a trailing slash, e.g. http://api.domain.org/