PERFECT LITTLE HOME SERVER [Raspberry Pi 3] PART 1 – NGiNX, PHP, MySQL



Follow me on TWITTER: https://twitter.com/salkohd

This is the part 1 of the tutorial on how to create your own perfect little Raspberry Pi Home Server.

NOTE: You can use this tutorial for any other computer running Debian or Ubuntu.

Topics covered in this video are:

Installation of:
1. NGiNX 04:43
2. PHP 07:20
3. MySQL 17:38
5. PHPMyAdmin 22:38
6. Pure-FTPd 27:31

COMMANDS USED IN THE TUTORIAL:

NGiNX & PHP
======================================================
apt-get update
apt-get upgrade -y

apt-get install mysql-server mysql-client

apt-get install nginx

apt-get install php5-fpm php-apc

nano /etc/nginx/sites-available/default

server {
listen 80;

root /var/www/html/;
index index.php index.html index.htm;

server_name localhost;

location / {
try_files $uri $uri/ =404;
}

location ~.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_split_path_info ^(.+.php)(/.*)$;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
try_files $uri =404;
include fastcgi_params;
}
}

MySQL & PHPMyAdmin
============================================================================

apt-get install mysql-server mysql-client php5-mysql phpmyadmin
ln -s /usr/share/phpmyadmin /var/www/phpmyadmin

Pure-FTPd
======================================================
apt-get install pure-ftpd

groupadd ftpgroup
useradd salkoftpuser -g salkoftpgroup -s /sbin/nologin -d /dev/null

mkdir /home/pi/FTP

chown -R salkoftpuser:salkoftpgroup /home/pi/FTP

pure-pw useradd upload -u salkoftpuser -g salkoftpgroup -d /home/pi/FTP -m

pure-pw mkdb

ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/60puredb

service pure-ftpd restart

======================================================

Leave a Reply

Your email address will not be published.