Setup PHP Proxy - Athlon1600/php-proxy-app GitHub Wiki

Work in progress


Installation instructions

Debian/Ubuntu

  1. As root user install composer (recommended installation):

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

  1. Execute the composer installer under the user you want (change /var/www to the path you like):

composer create-project athlon1600/php-proxy-app:dev-master /var/www/

  1. Now generate a random hash via:

openssl rand -base64 32

  1. Edit the config.php file (within the root directory) and change the encryption_key config variable to the just generated random hash. Something like (DO NOT USE THE SAME SECRET KEY) this:
$config['encryption_key'] = 'hDKLxshYCU+WQvkmbEPXTKdaoko1FGNXzRg3KaGnJS0=';
  1. Save the config.php file.

  2. Optimize auto load file:

composer dumpautoload -o --working-dir=/var/www/