Ubuntu 16.10 (x86) Install WordPress SRV 4.7.1-1-5

Source: Internet
Author: User
Tags install wordpress wordpress setup

Download the WordPress program
(entered TMP catalog) cd/tmp

Curl-o https://wordpress.org/latest.tar.gz
"Notes" above connected to the latest version of WordPress download
Ver 471 "Curl-o https://wordpress.org/wordpress-4.7.1.tar.gz"

The installed installation will relieve the pressure
Tar xzvf latest.tar.gz
Tar xzvf wordpress-4.7.1.tar.gz (below is the decompression complete)

Create a. htaccess file
Touch/tmp/wordpress/.htaccess
chmod 660/tmp/wordpress/.htaccess

To create a setup file:
cp/tmp/wordpress/wp-config-sample.php/tmp/wordpress/wp-config.php

Copy WordPress to the website root catalogue:
sudo rm-rf/var/www/html/*
sudo cp-a/tmp/wordpress/. /var/www/html

To change WordPress permissions:
sudo chown-r user:www-data/var/www/html

Changes to the record may be rights:
sudo find/var/www/html-type d-exec chmod g+s {} \;
sudo chmod g+w/var/www/html/wp-content
sudo chmod-r g+w/var/www/html/wp-content/themes
sudo chmod-r g+w/var/www/html/wp-content/plugins

Edit wordpress Setup
sudo vim/var/www/html/wp-config.php

Enter the name of the repository, username and password
In the name of the repository, insert a line "define (' Fs_method ', ' direct ');"
After the change

Set Secret hierarchy "define value" hierarchy "null"

Access to secret Hierarchy
Curl-s https://api.wordpress.org/secret-key/1.1/salt/

More Hierarchy Locations

Input ": Wq" Save and exit

Ubuntu 16.10 (x86) Install WordPress SRV 4.7.1-1-5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.