Configure Windows Server

 

I will assume that:

- the source is in c:\ryzom

- the target folder will be c:\ryzom_shard

- Wamp is installed in c:\wamp

- the build is in c:\ryzom\code\build

 

Setting up the shard:

- copy code\ryzom\common\data_common to c:\ryzom_shard\common
- copy code\ryzom\common\data_leveldesign to c:\ryzom_shard\common
- copy code\ryzom\server to c:\ryzom_shard\
- delete everything from c:\ryzom_shard\server except the cfg files, data_shard, save_shard and sheet_pack_cfg folders
- copy code\ryzom\tools\server to c:\ryzom_shard\tools
- delete everything from c:\ryzom_shard\tools\server except the admin and www folders
- edit c:\ryzom_shard\tools\server\admin\config.php and add the lines

define('NELTOOL_SITEBASE', '.');
define('NELTOOL_SYSTEMBASE', 'c:/ryzom_shard/tools/server/admin/');

 

- create a logs folder in c:\ryzom_shard\tools\server\www\login
- edit c:\ryzom_shard\tools\server\www\login\config.php and add the lines

$LogRelativePath = './logs';

- edit c:\ryzom_shard\server\frontend_service.cfg and add the lines
FSListenHost = "buildbox.tempestintheaether.org";

 

- edit C:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf and uncomment

Include conf/extra/httpd-vhosts.conf

 


- edit C:\wamp\bin\apache\Apache2.2.21\conf\extra\httpd-vhosts.conf and add

<VirtualHost *:40916>
 <Directory "C:/ryzom_shard/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 "C:/ryzom_shard/tools/server/www" 
 ServerName localhost
</VirtualHost>

<VirtualHost *:80>
 <Directory "C:/ryzom_shard/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 "C:/ryzom_shard/tools/server/admin" 
 ServerName localhost
</VirtualHost>
 

- open phpmyadmin and import the following file

https://drive.google.com/open?id=0B3IoSZchy92tREZaM05PN0dnQmc&authuser=0

- copy shard_start.bat and shard_stop.bat from the standalone core server to c:\ryzom_shard

- edit shard_start.bat

comment:

start Server2Go.exe

change the path to:

cd ./server

- copy following binaries from c:\ryzom\code\build\bin\Release to c:\ryzom_shard\server

ryzom_admin_service.exe
ryzom_backup_service.exe
ryzom_entities_game_service.exe
ryzom_gpm_service.exe
ryzom_ios_service.exe
ryzom_naming_service.exe
ryzom_welcome_service.exe
ryzom_tick_service.exe
ryzom_mirror_service.exe
ryzom_ai_service.exe
ryzom_mail_forum_service.exe
ryzom_shard_unifier_service.exe
ryzom_frontend_service
ryzom_session_browser_service.exe
ryzom_logger_service.exe
ryzom_dynamic_scenario_service.exe

- start the shard with c:\ryzom_shard\shard_start.bat

You will find the logs in c:\ryzom_shard\server