Skip to content

Source setup

Praveen edited this page Apr 19, 2021 · 1 revision

Setup webserver source

  1. Login to Raspberry Pi

  2. Navigate to html directory

cd /var/www/html
  1. Clone the repository here
git clone https://github.com/shreyExp/DreamHacker.git
  1. Update the permissions for the cloned repo
sudo chmod -R pi:pi DreamHacker

Nginx Configuration

  1. Update the Nginx user to default pi username by running below commands
cd /etc/nginx/
sudo nano nginx.conf

Find user and change the value to pi Enter CNTRL + X and press Y.

PHP FPM Configuration

  1. Edit configuration file of php-fpm by entering following command:
sudo nano /etc/php/7.3/fpm/pool.d/www.conf
  1. Find the listen.owner and listen.group parameters and set to pi.
  2. Find listen and update the value to /tmp/php-fpm.
  3. Save and exit by pressing CNTRL + X and press Y.

Restart Services

  1. Restart the services using below commands
sudo systemctl reload php7.3-fpm && sudo systemctl restart nginx.service
  1. Open browser and go to localhost.