-
Notifications
You must be signed in to change notification settings - Fork 69
Using Raspberry Pi
d8ahazard edited this page Dec 15, 2017
·
1 revision
(Thanks to giac0m0 for the writeup)
-
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 Apache and PHP7.0 using instructions from site: https://www.stewright.me/2016/03/turn-raspberry-pi-3-php-7-powered-web-server/
-
Install PHP XML and mbstrings (missing from previous guide)
sudo apt-get install php-xml php7.0-mbstring
-
Install GIT
sudo apt-get install git
-
Create a phlex directory
sudo mkdir /var/www/html/Phlex/
-
Clone Phlex
sudo git clone https://github.com/d8ahazard/Phlex.git /var/www/html/Phlex
-
Change ownership of Phlex folder to www-data
sudo chown -R www-data /var/www/html/Phlex/
-
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/
-
Edit php.ini for Dynamic Extensions. Add lines:
extension=curl.so extension=openssl.so
sudo service apache2 restart