Installation on Linux - GenisysPro/GenisysPro GitHub Wiki

Requirements

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.

Setup

  1. Make a new folder somewhere on your machine. This will be where you'll set your server up.
  2. Extract the GenisysPro PHP binary package into the folder you created in step 1.
  3. 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.
  4. 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 in zend_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
    zend_extension=/home/genisyspro/GenisysPro/bin/php7/lib/php/extensions/no-debug-zts-20151012/opcache.so
    
    Do not use ~ 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>
    
  1. Copy the GenisysPro PHAR file into the folder you created in step 1.
  2. Copy the start script into the folder you created in step 1.
  3. 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 folder
    • php7 folder
      • bin/php.ini edited as the instructions in step 4
      • lib/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.