-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10.create-wp-site
45 lines (30 loc) · 1.21 KB
/
10.create-wp-site
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Wordpress Installing a Wordpress Site Using WP-CLI
download wordpress
$ wp core download
create he wp-config.php file
$ wp core config --dbname= --dbuser= --dbpass= --dbprefix=
!!! Do Not Use wp_ as the Wordpress Database Prefix !!!
installing wordpress
$ wp core install --url= --title= --admin_user= --admin_password= --admin_email=
$ cd /var/www
$ ls
blog.wpcli.com forum.wpcli.com html wpcli.com www.wpcli.com
$ cd wpcli.com/public_html
$ wp core download
Downloading WordPress 5.2.2 (en_US)...
md5 hash verified: aea5bb5e4fd51034f67c85e6d8bc6bbf
Success: WordPress downloaded.
$ wp core config --dbname=wpdb --dbuser=wpemre --dbpass=wppass --dbprefix=wpprefix
Success: Generated 'wp-config.php' file.
$ wp core install --url=http://www.wpcli.com --title='WP cli' --admin_user=admin_emre --admin_password=admin_pass [email protected]
(i change wpcli.com to http://35.236.64.179)
sh: 1: /usr/sbin/sendmail: not found
Success: WordPress installed successfully
$ sudo apt update && sudo apt install sendmail
$ cd /etc/nginx/sites-available
$ sudo vi wpcli.com
server_name 35.236.64.179;
$ sudo nginx -t
$ sudo systemctl restart nginx
and then view browser 35.236.64.179
for admin panel -> 35.236.64.179/wp-admin