Debian9 in a LAMP environment to install and deploy WordPress

First, install and configure the MySQL database
installation MySql:
APT-GET-install MySQL Server MySQL-MySQL-PHP-MySQL the Common Client
Log in as root to Mysql:
MySQL -u root -p
create the database:
the Create Database WordPress;
create a user:
creat user wpuser @ localhost identfied by ' 123456'
associated with the user database:
Grant All privileges ON * WordPress to wpuser @ localhost;.
refresh database:
flush privileges;
Second, the installation environment PHP7.0
apt-get install php-fpm php -cli php -mysql php-fpm
three, arranged Nginx service
installation MySql:
APT-GET the install nginx
configuration nginx site to support php module:
Vim / etc / nginx / site-enable / default
Server {
the listen the default_server 80;
the listen [::] : 80 the default_server;
the root / var / WWW / HTML;
index.html index.htm index.nginx-debian.html index the index.php
Server name ;
Localtion / {
try_files $ $ URI URI / = 404;
}
Localtion ~ $ {.php
the include Snippets / FastCGI-php.conf;
fastcgi_pass UNIX : / var / RUN / [the HP / php7.0-fpm.sock;
}
}
Fourth, install WordPress
in accordance with the official tutorial is to wordpress blog program folder into the nginx web directory, I have here is / var / www / html /, the path is placed after the / var / www / html / wordpress

By SFTP client tools will be downloaded WordPress package uploaded to / var / www / html / directory
Debian9 in a LAMP environment to install and deploy WordPress
extract the package uploaded
tar -zxvf wordpress-4.9.4-zh_CN.tar.gz
gives extracting complete wordpress directory full permissions
chmod 777 wordpress
client browser to access the test:
HTTP: // ip_address / WordPress
then will enter into WordPress installation configuration interface, only need to be completed after the installation configuration can use a WordPress follow the prompts.
Debian9 in a LAMP environment to install and deploy WordPress

Guess you like

Origin blog.51cto.com/13779637/2424243