Skip to content

Using Raspberry Pi

d8ahazard edited this page Oct 14, 2018 · 2 revisions

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/FlexTV/
    
  5. Clone Flex TV

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

     sudo chown -R www-data /var/www/html/FlexTV/
    
  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/FlexTV/
    
  8. Edit php.ini for Dynamic Extensions. Add lines:

     extension=curl.so
     extension=openssl.so
    

Restart web server

    sudo service apache2 restart