티스토리 뷰

AU Study/ECU 191

Apache and ftp on Ubuntu

Last72 2019. 4. 13. 23:25

1. Ubuntu

1.1 IP address setup

ip address

sudo ip address add 192.168.0.3/24 dev ens33

ping 192.168.0.2

ip link set dev ens38 up

sudo dhclient ens38

1.2 Apache install

sudo apt update

sudo apt install apache2

systemctl status apache2

1.3 vsftpd install

sudo apt install vsftpd

sudo adduser ftpadmin

1.3.1 vsftpd configure (uncommenting 2 lines, Ctrl+O to save, Ctrl + X to exit)

sudo nano /etc/vsftpd.conf

write_enable=YES

chroot_local_user=YES

1.4 Set home directory and permission

sudo usermod --home /var/www ftpadmin

sudo chown ftpadmin /var/www

sudo chmod 555 /var/www (or sudo chmod a-w /var/www)

sudo chown ftpadmin /var/www/html

1.5 restart vsftpd

sudo systemctl restart vsftpd

 

2. Windows 10

2.1 Enable ping request (PowerShell)

netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol="icmpv4:8,any" dir=in action=allow

ping 192.168.0.3

2.2 Test apache server

browse 192.168.0.2 in MS Edge

2.3 Test FTP

Use FileZilla (username: ftpadmin, password: password)

 

https://youtu.be/d3tBvRmJmP4

불러오는 중입니다...

 

 

 

https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-18-04

https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04

'AU Study > ECU 191' 카테고리의 다른 글

Uni exam prep  (0) 2019.06.03
Windows Server 2019 iSCSI PowerShell  (0) 2019.04.15
댓글
Announcement
Recent Posts
Recent Comments
Total
Today
Yesterday
Link
TAG
more
«   2024/12   »
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
Search by month