Skip to content
d8ahazard edited this page Dec 15, 2017 · 1 revision

Using a Raspberry Pi

(Thanks to giac0m0 for the writeup)

Check version of PHP

  1. On the Raspberry Pi, check version of PHP

     php -v
    

1a. If PHP is not v7.0, remove PHP and install 7.0

    sudo apt-get remove php*

Install PHP v7.0 and plugins needed

  1. Install Apache and PHP7.0 using instructions from site: https://www.stewright.me/2016/03/turn-raspberry-pi-3-php-7-powered-web-server/

  2. Install PHP XML and mbstrings (missing from previous guide)

     sudo apt-get install php-xml php7.0-mbstring
    
  3. Install GIT

    sudo apt-get install git
    
  4. Create a phlex directory

    sudo mkdir /var/www/html/Phlex/
    
  5. Clone Phlex

    sudo git clone https://github.com/d8ahazard/Phlex.git /var/www/html/Phlex
    
  6. Change ownership of Phlex folder to www-data

     sudo chown -R www-data /var/www/html/Phlex/
    
  7. Add writeable folders to /etc/php/7.0/apache2/php.ini

    Add this line to the file, near the guidance notes for open_basedir :

     open_basedir = /var/www/html/Phlex/
    
  8. Edit php.ini for Dynamic Extensions. Add lines:

     extension=curl.so
     extension=openssl.so
    

Restart web server

    sudo service apache2 restart