Installation on Linux - GenisysPro/GenisysPro GitHub Wiki
Requirements
- PHP binary for GNU/Linux
- GenisysPro PHAR file
- Start script for GNU/Linux
- OpenSSL extension for your GNU/Linux OS (Optional, download if you want to use Xbox Live authentication or global resource pack)
OpenSSL Extension
We provide compiled openssl.so
for some GNU/Linux operating systems. If your OS is not listed here, you need to compile openssl.so
for your OS by yourself.
- Compiled
openssl.so
for CentOS 7 (tested on CentOS 7.2.1511 x86_64) - Compiled
openssl.so
for Ubuntu (tested on Ubuntu 16.04.2 LTS "Xenial" amd64)
Setup
- Make a new folder somewhere on your machine. This will be where you'll set your server up.
- Extract the GenisysPro PHP binary package into the folder you created in step 1.
- If you want to use OpenSSL extension, copy
openssl.so
to./bin/php7/lib/php/extensions/no-debug-zts-20151012
in the folder you created in step 1. - Edit
./bin/php7/bin/php.ini
in the folder you created in step 1:
- Change
date.timezone=UTC
(line 1) to your timezone. (Optional, but recommended)
For a list of supported timezone options in PHP, click here. - Complete the full path to
opcache.so
inzend_extension=bin/php7/lib/php/extensions/no-debug-zts-20151012/opcache.so
(line 7). Make sure the path is absolute, not relative.
For example, if the folder you created in step 1 is/home/genisyspro/GenisysPro
, change it to
Do not usezend_extension=/home/genisyspro/GenisysPro/bin/php7/lib/php/extensions/no-debug-zts-20151012/opcache.so
~
for/home
, or PHP binary will not recognize the path! - If you want to use OpenSSL extension, add the following line to
php.ini
:extension=<full path to your openssl.so>
- Copy the GenisysPro PHAR file into the folder you created in step 1.
- Copy the start script into the folder you created in step 1.
- Make the start script executable by running
chmod +x ./start.sh
.
When you have finished the steps above, you should have a folder with the following contents:
bin
folderphp7
folderbin/php.ini
edited as the instructions in step 4lib/php/extensions/no-debug-zts-20151012/openssl.so
(If you want to use OpenSSL extension)- Other files and folders
GenisysPro.phar
start.sh
(with execute permission)
Now, your server should be ready to run.