-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path06.wp.directories
63 lines (51 loc) · 1.08 KB
/
06.wp.directories
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Create your site(S) directory structure
* wpcli.com
* www.wpcli.com
* blog.wpcli.com
* forum.wpcli.com
-- server web root
/var/www
ownership root:root
create directories
site.com/public_html
using tree to view directory layout
>> Commands
changing ownership
- chown -R user:group /path
create directory
- mkdir
create directory with sub-directories
- mkdir -p
install tree
- sudo apt install tree
------------------------------------------------
$ cd /var/www
$ ls -l
total 4
drwxr-xr-x 2 root root 4096 Jun 3 17:31 html
$ sudo chown -R emre:emre /var/www/
$ ls -l
total 4
drwxr-xr-x 2 emre emre 4096 Jun 3 17:31 html
$ mkdir wpcli.com
html wpcli.com
$ cd wpcli.com/
$ mkdir public_html
$ ls
public_html
$ cd ..
$ mkdir -p blog.wpcli.com/public_html
$ mkdir -p forum.wpcli.com/public_html
$ ls
blog.wpcli.com forum.wpcli.com html wpcli.com
$ sudo apt install tree
$ tree
.
├── blog.wpcli.com
│ └── public_html
├── forum.wpcli.com
│ └── public_html
├── html
│ └── index.nginx-debian.html
└── wpcli.com
└── public_html