CREATE A STREAMING SITE (For advanced User)
For Strêâmïng Server: https://phcorner.net/threads/create-a-strêâmïng-server-for-advanced-user.1035618/
Introduction:
Gusto mo bang gumawa ng streaming site at e host ang sarili mong files? Well, subokan mo to.
and advantage nito ay controlado mo ang lahat simula sa website mo hanggang sa kinikita mo.
at sempre goodbye sa mga sagabal na ads mula sa mga ibang website tulad ng mixdrop at iba pa tapos ang kunti pa ang kinikita mo sa kanila.
ganun din ang pag iwas sa pag hohost ng files doon na may expiration sa loob ng 60 days kung ito ay hindi active.
Requirements:
1.SERVER para sa iyong Main Streaming Site. (Fresh Ubuntu 16.4 Server with 2G RAM, 1VCU with 20GB SSD. Price $3)
2.SERVER para sa iyong Files. (Intel Xeon E3-1220 v3 3.50GHz Turbo, 4 Cores, 4 Threads 8GB DDR3 1x 2TB SATA Unmetered 1Gbps Shared Price $49)
3.DOMAIN para sa iyong Main Streaming Site. (Price: Dependi sa domain extenction)
4.DOMAIN para sa iyong Files. (Price: Dependi sa domain extenction)
Step 1: Pag setup ng SERVER para sa Main Streaming Site.
Prerequisites: (Cloudlfare and domainame.)
Open your terminal emulator like Putty kung naka windows ka at e login ang root with password gamit ang IP Address ng Server mo sa Main Streaming Site.
(Restart your terminal and login ulit)
(Some server have an apache installed, it is better to check this.)
======Step 1: Setup Cloudflare
(Kung hindi mo alam paanu kumuha ng self-certeficates sa cloudflare? sundin mo ang website na ito.)
You do not have permission to view the full content of this post. Log in or register now.
======Step 2: Install NGINX
======Step 3: Install MariaDB Database Server
(Enter current password for root (enter for none) Hit "ENTER"
(Set root password? [Y/n] Type "Y")
(Type you new password and Re-enter new password for your mysql)
(Remove anonymous users? [Y/n]) Type "Y"
(Disallow root login remotely? [Y/n]) Type "Y"
(Remove test database and access to it? [Y/n]) Type "Y"
(Reload privilege tables now? [Y/n]) Type "Y"
(Enter your password in mysql)
======Step 4: Install PHP 7.2-FPM and Related Modules
(Do you want to continue? [Y/n]) Type "Y"
----EDIT---
memory_limit = 256M
cgi.fix_pathinfo = 0
upload_max_filesize = 40M
max_execution_time = 360
post_max_size = 40M
----EDIT---
======Step 6: Download WordPress Latest Release
======Step 7: Configure Nginx
---PASTE---
======Step 8: Enable the WordPress
(AFTER MO MA REBOOT ANG SERVER punta ka sa browser mo at type your domain at install mo ang wordpress.)
NOTE: I will create a new post for the tutorial sa pag gawa ng SERVER for Files.
For Strêâmïng Server: https://phcorner.net/threads/create-a-strêâmïng-server-for-advanced-user.1035618/
Introduction:
Gusto mo bang gumawa ng streaming site at e host ang sarili mong files? Well, subokan mo to.
and advantage nito ay controlado mo ang lahat simula sa website mo hanggang sa kinikita mo.
at sempre goodbye sa mga sagabal na ads mula sa mga ibang website tulad ng mixdrop at iba pa tapos ang kunti pa ang kinikita mo sa kanila.
ganun din ang pag iwas sa pag hohost ng files doon na may expiration sa loob ng 60 days kung ito ay hindi active.
Requirements:
1.SERVER para sa iyong Main Streaming Site. (Fresh Ubuntu 16.4 Server with 2G RAM, 1VCU with 20GB SSD. Price $3)
2.SERVER para sa iyong Files. (Intel Xeon E3-1220 v3 3.50GHz Turbo, 4 Cores, 4 Threads 8GB DDR3 1x 2TB SATA Unmetered 1Gbps Shared Price $49)
3.DOMAIN para sa iyong Main Streaming Site. (Price: Dependi sa domain extenction)
4.DOMAIN para sa iyong Files. (Price: Dependi sa domain extenction)
Step 1: Pag setup ng SERVER para sa Main Streaming Site.
Prerequisites: (Cloudlfare and domainame.)
Open your terminal emulator like Putty kung naka windows ka at e login ang root with password gamit ang IP Address ng Server mo sa Main Streaming Site.
Code:
sudo apt-get update
sudo apt-get upgrade
reboot
(Restart your terminal and login ulit)
(Some server have an apache installed, it is better to check this.)
Code:
sudo service apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get autoremove
whereis apache2
sudo rm -rf /usr/sbin/apache2 && sudo rm -rf /usr/lib/apache2 && sudo rm -rf /etc/apache2 && sudo rm -rf /usr/share/apache2 && sudo rm -rf /usr/share/man/man8/apache2.8.gz
sudo apt-get install nano rsync zip unzip -y
======Step 1: Setup Cloudflare
Code:
sudo nano /etc/ssl/certs/cloudflare_DOMAI_NAME.pem
sudo nano /etc/ssl/private/cloudflare_DOMAI_NAME.pem
cd /etc/ssl/certs/
sudo wget https://support.cloudflare.com/hc/en-us/article_attachments/360044928032/origin-pull-ca.pem
(Kung hindi mo alam paanu kumuha ng self-certeficates sa cloudflare? sundin mo ang website na ito.)
You do not have permission to view the full content of this post. Log in or register now.
======Step 2: Install NGINX
Code:
cd && sudo apt install nginx -y
sudo systemctl stop nginx.service
sudo systemctl start nginx.service
sudo systemctl enable nginx.service
======Step 3: Install MariaDB Database Server
Code:
sudo apt-get install mariadb-server mariadb-client -y
sudo systemctl stop mysql.service
sudo systemctl start mysql.service
sudo systemctl enable mysql.service
sudo mysql_secure_installation
(Enter current password for root (enter for none) Hit "ENTER"
(Set root password? [Y/n] Type "Y")
(Type you new password and Re-enter new password for your mysql)
(Remove anonymous users? [Y/n]) Type "Y"
(Disallow root login remotely? [Y/n]) Type "Y"
(Remove test database and access to it? [Y/n]) Type "Y"
(Reload privilege tables now? [Y/n]) Type "Y"
Code:
sudo mysql -u root -p
(Enter your password in mysql)
Code:
CREATE DATABASE DATABASE_NAME;
CREATE USER 'DATABASE_USER'@'localhost' IDENTIFIED BY 'YOUR_STRONG_PASSWORD_HERE';
GRANT ALL ON DATABASE_NAME.* TO 'DATABASE_USER'@'localhost' IDENTIFIED BY 'YOUR_STRONG_PASSWORD_HERE' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
======Step 4: Install PHP 7.2-FPM and Related Modules
Code:
sudo locale-gen en_US.UTF-8
export LANG=en_US.UTF-8
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:ondrej/php
(Press [ENTER] to continue or ctrl-c to cancel adding it) Hit "ENTER"
sudo apt update
sudo apt upgrade -y
sudo apt install php7.2-fpm php7.2-common php7.2-mysql php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-gd php7.2-xml php7.2-cli php7.2-zip
(Do you want to continue? [Y/n]) Type "Y"
Code:
sudo nano /etc/php/7.2/fpm/php.ini
----EDIT---
memory_limit = 256M
cgi.fix_pathinfo = 0
upload_max_filesize = 40M
max_execution_time = 360
post_max_size = 40M
----EDIT---
Code:
systemctl restart php7.2-fpm
sudo systemctl restart nginx.service
======Step 6: Download WordPress Latest Release
Code:
cd /tmp
wget https://wordpress.org/wordpress-5.5.3.tar.gz
tar -xvzf wordpress-5.5.3.tar.gz
sudo mv wordpress /var/www/html/DOMAIN_NAME
======Step 7: Configure Nginx
Code:
sudo nano /etc/nginx/sites-available/DOMAIN_NAME
---PASTE---
Code:
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name DOMAIN_NAME www.DOMAIN_NAME;
root /var/www/html/DOMAIN_NAME;
index index.php index.html index.htm;
ssl_certificate /etc/ssl/certs/cloudflare_DOMAIN_NAME.pem;
ssl_certificate_key /etc/ssl/private/cloudflare_DOMAIN_NAME.pem;
ssl_client_certificate /etc/ssl/certs/origin-pull-ca.pem;
ssl_verify_client on;
client_max_body_size 100M;
autoindex off;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Code:
nginx -t
sudo systemctl restart nginx.service
======Step 8: Enable the WordPress
Code:
sudo ln -s /etc/nginx/sites-available/DOMAIN_NAME /etc/nginx/sites-enabled/
sudo systemctl restart nginx.service
reboot
(AFTER MO MA REBOOT ANG SERVER punta ka sa browser mo at type your domain at install mo ang wordpress.)
NOTE: I will create a new post for the tutorial sa pag gawa ng SERVER for Files.
Last edited: