Linux/Unix HOWTO: Install and run Fiveserver

Install

The following three-step installation sequence should work as is on any Unix OS, such as Linux (any flavour), FreeBSD or Mac OSX. If you are using Windows, then it is recommended that you follow the instructions in Windows HOWTO.


1. Python 2.6

Install Python 2.6 (or later), if your system doesn't have it. Go to http://python.org/download/ and get the installer that is appropriate for your operating system. (If you are on Linux, you can also use yum or apt-get)

2. Virtualenv
Install virtualenv. Download the source tarball from http://pypi.python.org/pypi/virtualenv/ unzip the archive, switch to virtualenv source directory, then build and install with this command:

$ sudo python2.6 setup.py install

3. Dependencies
Return to fiveserver source directory and install all the necessary dependencies by issuing this command (as yourself, not root):

$ make install

This will create an isolated Python environment and install all Python packages needed to run Fiveserver/Sixserver


Configure MySQL databases

The following instructions assume that you can use a command-line mysql client  utility to connect to your MySQL server with a root account.

For Fiveserver (PES5/WE9/WE9LE), you will need to create a databases, and grant appropriate permissions. If you use default database name and login/password (you can change all of those in ./etc/conf/fiveserver.yaml), then it would be this:

mysql> create database fiveserver;
mysql> grant select, insert, update on fiveserver.* to 'fiveserver'@'%' identified by 'we9le';

Create the tables and apply alters:

mysql> use fiveserver;
mysql> source ./sql/schema.sql
mysql> source ./sql/alter_001_add_settings.sql


For Sixserver (PES6/WE2007), you will need to create a databases, and grant appropriate permissions. If you use default database name and login/password  (you can change all of those in ./etc/conf/sixserver.yaml), then it would be this:

mysql> create database sixserver;
mysql> grant select, insert, update on sixserver.* to 'sixserver'@'%' identified by 'proevo';

Create the tables and apply alters:

mysql> use sixserver;
mysql> source ./sql/schema6.sql
mysql> source ./sql/alter6_001_modify_profiles.sql



Usage

The service.sh script can be used to run both services (fiveserver and sixserver) or to launch them in the background. Just run the script without any arguments to see all available options:

$ ./service.sh
Usage ./service.sh {fiveserver|sixserver} {run|start|stop|status}

For example, to start fiveserver service, you would do:

$ ./service.sh fiveserver start




Next: read how to configure firewall, use administrative interface, register user accounts

Comments