Skip to content

Instantly share code, notes, and snippets.

@chengguizi
Created August 23, 2018 04:30
Show Gist options
  • Select an option

  • Save chengguizi/7aeb21af1e3800bb39bb6502c2e0dd3e to your computer and use it in GitHub Desktop.

Select an option

Save chengguizi/7aeb21af1e3800bb39bb6502c2e0dd3e to your computer and use it in GitHub Desktop.
Install Nginx HTTP and reverse proxy server

Install Nginx HTTP and reverse proxy server

sudo apt install nginx

Check: Now by accessing the server IP, the "Welcome to nginx!" should show up!

(For more info on configuration file, visit this ,this,this)

Install Database

sudo apt install mariadb-server mariadb-client

Check: now by entering sudo mariadb or sudo mysql, we should be able to enter MariaDB monitor.

Install PHP 7

sudo apt-get install php7.0 php7.0-fpm php7.0-mysql

Install a Clean Version of Wordpress

cd /var/www
sudo wget https://wordpress.org/latest.tar.gz
sudo tar xvfz latest.tar.gz
sudo rm latest.tar.gz
sudo mv wordpress my_new_wordpress_site

the last command could be also

sudo cp -a wordpress wordpress_demo

Change the ownership, so that media upload feature could work

sudo chown -R www-data:www-data /var/www/wordpress_demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment