Build Website Free step by step on your own gcp server with wordpress, install nginx,mysql, php.



This video will show you how to build a free website with your own webserver and wordpress opensource.

Recommend using Google cloud server, you can get 💰$350 free by sign up using follow link:
🔗 https://gcpsignup.page.link/3Cru

all scripts are below.
sudo apt install nginx

sudo apt install mysql-server

sudo mysql_secure_installation

This will ask if you want to configure the VALIDATE PASSWORD PLUGIN.

sudo mysql
SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’;
FLUSH PRIVILEGES;
#this change authentication method from unix_socket to mysql_native_password;

#You can create another user
CREATE DATABASE example_database;
CREATE USER ‘example_user’@’%’ IDENTIFIED WITH mysql_native_password BY ‘password’;
GRANT ALL ON example_database.* TO ‘example_user’@’%’;
FLUSH PRIVILEGES;

#exit mysql
exit

sudo apt install php-fpm php-mysql

server {
listen 80;
server_name your_domain www.your_domain;
root /your web root;

index index.php index.html index.htm;

location / {
try_files $uri /index.php$is_args$args;
}

location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}

location ~ /.ht {
deny all;
}

}
Download This Video

(Visited 3 times, 1 visits today)
treehoster
Author: treehoster

Share This Post
Have your say!
00