Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Configuring and running Ryzom Core server on GNU/Linux

...

Tip

If your frontend service is available through a firewall using NAT and a mapped IP address this is how you can advertise that external IP address. For example if your FS is on 192.168.1.100 internally but your firewall maps 74.125.225.210 through to your FS you would want to configure FSListenHost to be the address the clients connect to: 74.125.225.210.

 

 

Configuring Apache and web tools

...

Note

For current Ubuntu versions, just edit "default" @ /etc/apache2/sites-available/ substituting what is listed below for what is already there. 
Don't forget to change "username" below to your correct username.

Apache Configuration
Section
Column
width50%
Panel
title
Main Login Site
borderStyledashed
Listen 40916
<VirtualHost *:40916>
  <Directory "/home/username/ryzom/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/username/ryzom/code/ryzom/tools/server/www
  ServerName localhost
</VirtualHost>
Column
width50%
Panel
titleMain Web Site
borderStyledashed
<VirtualHost *:80>
  <Directory "/home/username/ryzom/code/ryzom/tools/server/">
     Options -Indexes FollowSymLinks MultiViews
     IndexOptions FancyIndexing FoldersFirst NameWidth=*
     AllowOverride All
     Order allow,deny
     Allow from all
  </Directory> 
  ServerAdmin admin@localhost
 
  # You can change this if you want.
  DocumentRoot /home/username/ryzom/code/ryzom/tools/server/admin
 
  
ServerName localhost </VirtualHost>

...

# Admin Tool
  Alias /admin/ /home/username/ryzom/code/ryzom/tools/server/admin
 
  ServerName localhost 
</VirtualHost>
Section
Column
Panel
titleRing / Session Site
borderStyledashed
Listen 30000
<VirtualHost *:30000>
  <Directory "c:/RyzomCore/ryzom_core_server/ryzom/tools/server">
    Options -Indexes FollowSymLinks MultiViews
    IndexOptions FancyIndexing FoldersFirst NameWidth=*
    AllowOverride All
    Order allow,deny
    Allow from all

 

    AddType text/html .php .phps
    AddHandler application/x-httpd-php .php
    AddHandler application/x-httpd-php-source .phps 
  </Directory>
  ServerAdmin admin@localhost
  DocumentRoot "/home/username/ryzom/code/ryzom/tools/server/www/ring" 
  ServerName localhost
</VirtualHost>
Column
width50%
Panel
titlePatch Site
borderStyledashed
Listen 43435
<VirtualHost *:43435>
  <Directory "c:/RyzomCore/ryzom_core_server/ryzom/tools/server">
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory> 
  DocumentRoot /home/username/ryzom/code/ryzom/tools/server/patches
  ServerName localhost
</VirtualHost>
 
  • Restart Apache by typing the following.

...

Note: If you are using ubuntu 10.4 you will need to type. 

sudo /etc/init.d/apache2 restart

...

cd code/ryzom/tools/server/admin/templates/
cp -r default default_c
chmod a+w default_c

 

Setting up MySQL

NOTE:
The configuration files in code/ryzom/server expect your user to be named 'shard' with NO PASSWORD. If you decide to use a different name for your MySQL user, or assign it a password, you will need to go through the .cfg files and change these values from 'shard' and "" wherever they appear. (they appear in several of the .cfg files)
Since this (and a password) can lead to unexpected errors (eg. error '4000',) it's best to make sure everything works OK with defaults first.

...

/home/ryzom/code/ryzom/server/save_shard/rrd_graphs

Import in phpMyAdmin.

 

Running the shard

  • Make sure $RYZOM_PATH is set correctly: export RYZOM_PATH="/home/user/ryzom/code/ryzom"

...

momentarily pressing "ctrl" and "a" together and then press "n" to cycle through.

 

Client login errors

 

Notes

If you want to use your shard with the core client, you will have to copy the following file into code/ryzom/common/data_common:

...