« Previous - Version 6/70 (diff) - Next » - Current version
mask, 05/09/2010 06:56 pm


Configuring and running Ryzom Core on Linux

  • Prepare MySQL databases
mysql -uroot -p

CREATE DATABASE nel;
CREATE DATABASE nel_tool;
CREATE DATABASE ring_open;
GRANT ALL ON nel.* TO shard@localhost;
GRANT ALL ON nel_tool.* TO shard@localhost;
GRANT ALL ON ring_open.* TO shard@localhost;
  • Change all occurences of open.ryzom.com in core/ryzom/tools/server/sql/ryzom_default_data.sql to your address (e.g. 192.168.0.1), but remember to keep ports (:4999 etc) as is.
  • Popoulate databases with default data
cat code/ryzom/tools/server/sql/ryzom_tables.sql | mysql -ushard
cat code/ryzom/tools/server/sql/ryzom_default_data.sql | mysql -ushard
cat code/ryzom/tools/server/sql/ryzom_admin_default_data.sql | mysql -ushard nel_tool
  • Update host for admin app. Change YOUR_ADDRESS to your address (e.g. 192.168.0.1).
USE nel_tool
UPDATE neltool_domains SET domain_as_host='YOUR_ADDRESS' where domain_id=12;
  • Change FSListenHost in code/ryzom/server/frontend_service.cfg to your address (e.g. 192.168.0.1)
  • Configure Apache with PHP. Make a VirtualHost for the login scripts and admin app (replace DocumentRoot with your own path).
Listen 40916
<VirtualHost *:40916>
  <Directory "/home/nevrax/code/ryzom/tools/server/">
     Options -Indexes FollowSymLinks MultiViews
     IndexOptions FancyIndexing FoldersFirst NameWidth=*
     AllowOverride All
     Order allow,deny
     Allow from all
  </Directory> 
  ServerAdmin admin@localhost
  DocumentRoot /home/nevrax/code/ryzom/tools/server/www
  ServerName localhost
</VirtualHost>
<VirtualHost *"80>
  <Directory "/home/nevrax/code/ryzom/tools/server/">
     Options -Indexes FollowSymLinks MultiViews
     IndexOptions FancyIndexing FoldersFirst NameWidth=*
     AllowOverride All
     Order allow,deny
     Allow from all
  </Directory> 
  ServerAdmin admin@localhost
  DocumentRoot /home/nevrax/code/ryzom/tools/server/admin
  ServerName localhost
</VirtualHost>
  • Create code/ryzom/server/save_shard/rrd_graphs/ directory.
  • Rename code/ryzom/server/admin_service.cfg to code/ryzom/server/ryzom_admin_service.cfg
  • Run the shard. Remember to have path to the scripts in your PATH. You'll need screen app for this script.
shard start