0.0.1 • Published 6 years ago

setup-apache2-php-mysql-wordpress v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago
username@name:~$ sudo su
#[sudo] password for username:
root@username:/home/username# apt install apache2 mysql-server php7.2 php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php vsftpd lftp
#Reading package lists... Done
#Building dependency tree       
#Reading state information... Done
#The following additional packages will be installed:
#  apache2-bin apache2-data apache2-utils autoconf automake autopoint autotools-dev debhelper dh-autoreconf dh-strip-nondeterminism #dwz libapache2-mod-php7.2 libapr1 libaprutil1
#  libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive-cpio-perl libevent-core-2.1-6 libfile-stripnondeterminism-perl #libhtml-template-perl libltdl-dev libmail-sendmail-perl libmecab2
#  libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libsigsegv2 libssl-dev libsys-hostname-long-perl libtool libxmlrpc-epi0 m4 #mysql-client-5.7 mysql-server-5.7 php-common php7.2-cli
#  php7.2-common php7.2-curl php7.2-dev php7.2-fpm php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache #php7.2-readline php7.2-xml php7.2-xmlrpc php7.2-zip pkg-php-tools
#  po-debconf shtool
#Suggested packages:
#  apache2-doc apache2-suexec-pristine | apache2-suexec-custom autoconf-archive gnu-standards autoconf-doc dh-make #libipc-sharedcache-perl libtool-doc libssl-doc gfortran | fortran95-compiler
#  gcj-jdk m4-doc mailx tinyca dh-php libmail-box-perl
#The following NEW packages will be installed:
#  apache2 apache2-bin apache2-data apache2-utils autoconf automake autopoint autotools-dev debhelper dh-autoreconf #dh-strip-nondeterminism dwz lftp libapache2-mod-php libapache2-mod-php7.2
#  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive-cpio-perl libevent-core-2.1-6 #libfile-stripnondeterminism-perl libhtml-template-perl libltdl-dev
#  libmail-sendmail-perl libmecab2 libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libsigsegv2 libssl-dev #libsys-hostname-long-perl libtool libxmlrpc-epi0 m4 mysql-client-5.7 mysql-server
#  mysql-server-5.7 php-common php-curl php-dev php-fpm php-gd php-mbstring php-mysql php-pear php-xml php-xmlrpc php-zip php7.2 #php7.2-cli php7.2-common php7.2-curl php7.2-dev php7.2-fpm
#  php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline php7.2-xml php7.2-xmlrpc php7.2-zip #pkg-php-tools po-debconf shtool vsftpd
#0 upgraded, 69 newly installed, 0 to remove and 0 not upgraded.
#Need to get 21,1 MB of archives.
#After this operation, 148 MB of additional disk space will be used.
#Do you want to continue? [Y/n] y
#Get:1 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libapr1 amd64 1.6.5-1 [91,6 kB]
#Get:2 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1 amd64 1.6.1-3build1 [84,7 kB]
#Get:3 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-3build1 [10,6 kB]
#Get:4 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libaprutil1-ldap amd64 1.6.1-3build1 [8.692 B]
#Get:5 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 apache2-bin amd64 2.4.38-2ubuntu2 [1.157 kB]
#Get:6 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 apache2-data all 2.4.38-2ubuntu2 [164 kB]
#Get:7 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 apache2-utils amd64 2.4.38-2ubuntu2 [86,1 kB]
#Get:8 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 apache2 amd64 2.4.38-2ubuntu2 [95,5 kB]
#Get:9 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-client-5.7 amd64 5.7.27-0ubuntu0.19.04.1 [2.307 kB]
#Get:10 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libevent-core-2.1-6 amd64 2.1.8-stable-4build1 [85,9 kB]
#Get:11 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libmecab2 amd64 0.996-6 [257 kB]
#Get:12 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-server-5.7 amd64 5.7.27-0ubuntu0.19.04.1 [3.251 kB]
#Get:13 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libsigsegv2 amd64 2.12-2 [13,9 kB]                                     #                                                            
#Get:14 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 m4 amd64 1.4.18-2 [199 kB]                                             #                                                            
#Get:15 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 autoconf all 2.69-11 [322 kB]                                          #                                                            
#Get:16 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 autotools-dev all 20180224.1 [39,6 kB]                                 #                                                            
#Get:17 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 automake all 1:1.16.1-4ubuntu3 [522 kB]                                #                                                            
#Get:18 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 autopoint all 0.19.8.1-9 [412 kB]                                      #                                                            
#Get:19 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libtool all 2.4.6-10 [194 kB]                                          #                                                            
#Get:20 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 dh-autoreconf all 19 [16,1 kB]                                         #                                                            
#Get:21 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libfile-stripnondeterminism-perl all 1.1.2-1 [13,7 kB]                 #                                                            
#Get:22 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 dh-strip-nondeterminism all 1.1.2-1 [5.208 B]                          #                                                            
#Get:23 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 dwz amd64 0.12-3 [78,1 kB]                                             #                                                            
#Get:24 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 po-debconf all 1.0.21 [233 kB]                                         #                                                            
#Get:25 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 debhelper all 12ubuntu1 [887 kB]                                       #                                                            
#Get:26 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 lftp amd64 4.8.4-2build1 [558 kB]                                      #                                                            
#Get:27 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 php-common all 2:69ubuntu1 [11,8 kB]                                   #                                                            
#Get:28 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-common amd64 7.2.19-0ubuntu0.19.04.1 [890 kB]           #                                                            
#Get:29 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-json amd64 7.2.19-0ubuntu0.19.04.1 [19,0 kB]            #                                                            
#Get:30 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-opcache amd64 7.2.19-0ubuntu0.19.04.1 [166 kB]          #                                                            
#Get:31 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-readline amd64 7.2.19-0ubuntu0.19.04.1 [12,3 kB]        #                                                            
#Get:32 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-cli amd64 7.2.19-0ubuntu0.19.04.1 [1.443 kB]            #                                                            
#Get:33 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 libapache2-mod-php7.2 amd64 7.2.19-0ubuntu0.19.04.1 [1.388 kB] #                                                            
#Get:34 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libapache2-mod-php all 2:7.2+69ubuntu1 [2.912 B]                       #                                                            
#Get:35 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libarchive-cpio-perl all 0.10-1 [9.644 B]                              #                                                            
#Get:36 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libhtml-template-perl all 2.97-1 [59,0 kB]                             #                                                            
#Get:37 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libltdl-dev amd64 2.4.6-10 [162 kB]                                    #                                                            
#Get:38 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libsys-hostname-long-perl all 1.5-1 [11,7 kB]                          #                                                            
#Get:39 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libmail-sendmail-perl all 0.80-1 [22,6 kB]                             #                                                            
#Get:40 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libpcre16-3 amd64 2:8.39-12 [149 kB]                                   #                                                            
#Get:41 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libpcre32-3 amd64 2:8.39-12 [140 kB]                                   #                                                            
#Get:42 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libpcrecpp0v5 amd64 2:8.39-12 [15,4 kB]                                #                                                            
#Get:43 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libpcre3-dev amd64 2:8.39-12 [542 kB]                                  #                                                            
#Get:44 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 libssl-dev amd64 1.1.1b-1ubuntu2.1 [1.572 kB]                  #                                                            
#Get:45 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 mysql-server all 5.7.27-0ubuntu0.19.04.1 [9.956 B]             #                                                            
#Get:46 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-curl amd64 7.2.19-0ubuntu0.19.04.1 [29,8 kB]            #                                                            
#Get:47 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 php-curl all 2:7.2+69ubuntu1 [2.012 B]                                 #                                                            
#Get:48 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 shtool all 2.0.8-9 [121 kB]                                            #                                                            
#Get:49 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-dev amd64 7.2.19-0ubuntu0.19.04.1 [556 kB]              #                                                            
#Get:50 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 php-dev all 2:7.2+69ubuntu1 [2.816 B]                                  #                                                            
#Get:51 http://vn.archive.ubuntu.com/ubuntu disco-updates/universe amd64 php7.2-fpm amd64 7.2.19-0ubuntu0.19.04.1 [1.451 kB]        #                                                            
#Get:52 http://vn.archive.ubuntu.com/ubuntu disco/universe amd64 php-fpm all 2:7.2+69ubuntu1 [2.864 B]                              #                                                            
#Get:53 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-gd amd64 7.2.19-0ubuntu0.19.04.1 [27,7 kB]              #                                                            
#Get:54 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 php-gd all 2:7.2+69ubuntu1 [2.004 B]                                   #                                                            
#Get:55 http://vn.archive.ubuntu.com/ubuntu disco-updates/universe amd64 php7.2-mbstring amd64 7.2.19-0ubuntu0.19.04.1 [487 kB]     #                                                            
#Get:56 http://vn.archive.ubuntu.com/ubuntu disco/universe amd64 php-mbstring all 2:7.2+69ubuntu1 [2.016 B]                         #                                                            
#Get:57 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-mysql amd64 7.2.19-0ubuntu0.19.04.1 [119 kB]            #                                                            
#Get:58 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 php-mysql all 2:7.2+69ubuntu1 [2.008 B]                                #                                                            
#Get:59 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-xml amd64 7.2.19-0ubuntu0.19.04.1 [111 kB]              #                                                            
#Get:60 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 php-xml all 2:7.2+69ubuntu1 [2.032 B]                                  #                                                            
#Get:61 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 php-pear all 1:1.10.6+submodules+notgz-1.1 [285 kB]                    #                                                            
#Get:62 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 libxmlrpc-epi0 amd64 0.54.2-1.2 [30,5 kB]                              #                                                            
#Get:63 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2-xmlrpc amd64 7.2.19-0ubuntu0.19.04.1 [12,9 kB]          #                                                            
#Get:64 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 php-xmlrpc all 2:7.2+69ubuntu1 [2.016 B]                               #                                                            
#Get:65 http://vn.archive.ubuntu.com/ubuntu disco-updates/universe amd64 php7.2-zip amd64 7.2.19-0ubuntu0.19.04.1 [21,6 kB]         #                                                            
#Get:66 http://vn.archive.ubuntu.com/ubuntu disco/universe amd64 php-zip all 2:7.2+69ubuntu1 [2.004 B]                              #                                                            
#Get:67 http://vn.archive.ubuntu.com/ubuntu disco-updates/main amd64 php7.2 all 7.2.19-0ubuntu0.19.04.1 [9.248 B]                   #                                                            
#Get:68 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 pkg-php-tools all 1.37 [28,3 kB]                                       #                                                            
#Get:69 http://vn.archive.ubuntu.com/ubuntu disco/main amd64 vsftpd amd64 3.0.3-12 [115 kB]                                         #                                                            
#Fetched 21,1 MB in 11s (2.001 kB/s)                                                                                                #                                                            
#Extracting templates from packages: 100%
#Preconfiguring packages ...
#Selecting previously unselected package libapr1:amd64.
#(Reading database ... 213483 files and directories currently installed.)
#Preparing to unpack .../00-libapr1_1.6.5-1_amd64.deb ...
#Unpacking libapr1:amd64 (1.6.5-1) ...
#Selecting previously unselected package libaprutil1:amd64.
#Preparing to unpack .../01-libaprutil1_1.6.1-3build1_amd64.deb ...
#Unpacking libaprutil1:amd64 (1.6.1-3build1) ...
#Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
#Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.6.1-3build1_amd64.deb ...
#Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...
#Selecting previously unselected package libaprutil1-ldap:amd64.
#Preparing to unpack .../03-libaprutil1-ldap_1.6.1-3build1_amd64.deb ...
#Unpacking libaprutil1-ldap:amd64 (1.6.1-3build1) ...
#Selecting previously unselected package apache2-bin.
#Preparing to unpack .../04-apache2-bin_2.4.38-2ubuntu2_amd64.deb ...
#Unpacking apache2-bin (2.4.38-2ubuntu2) ...
#Selecting previously unselected package apache2-data.
#Preparing to unpack .../05-apache2-data_2.4.38-2ubuntu2_all.deb ...
#Unpacking apache2-data (2.4.38-2ubuntu2) ...
#Selecting previously unselected package apache2-utils.
#Preparing to unpack .../06-apache2-utils_2.4.38-2ubuntu2_amd64.deb ...
#Unpacking apache2-utils (2.4.38-2ubuntu2) ...
#Selecting previously unselected package apache2.
#Preparing to unpack .../07-apache2_2.4.38-2ubuntu2_amd64.deb ...
#Unpacking apache2 (2.4.38-2ubuntu2) ...
#Selecting previously unselected package mysql-client-5.7.
#Preparing to unpack .../08-mysql-client-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...
#Selecting previously unselected package libevent-core-2.1-6:amd64.
#Preparing to unpack .../09-libevent-core-2.1-6_2.1.8-stable-4build1_amd64.deb ...
#Unpacking libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...
#Selecting previously unselected package libmecab2:amd64.
#Preparing to unpack .../10-libmecab2_0.996-6_amd64.deb ...
#Unpacking libmecab2:amd64 (0.996-6) ...
#Selecting previously unselected package mysql-server-5.7.
#Preparing to unpack .../11-mysql-server-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...
#Selecting previously unselected package libsigsegv2:amd64.
#Preparing to unpack .../12-libsigsegv2_2.12-2_amd64.deb ...
#Unpacking libsigsegv2:amd64 (2.12-2) ...
#Selecting previously unselected package m4.
#Preparing to unpack .../13-m4_1.4.18-2_amd64.deb ...
#Unpacking m4 (1.4.18-2) ...
#Selecting previously unselected package autoconf.
#Preparing to unpack .../14-autoconf_2.69-11_all.deb ...
#Unpacking autoconf (2.69-11) ...
#Selecting previously unselected package autotools-dev.
#Preparing to unpack .../15-autotools-dev_20180224.1_all.deb ...
#Unpacking autotools-dev (20180224.1) ...
#Selecting previously unselected package automake.
#Preparing to unpack .../16-automake_1%3a1.16.1-4ubuntu3_all.deb ...
#Unpacking automake (1:1.16.1-4ubuntu3) ...
#Selecting previously unselected package autopoint.
#Preparing to unpack .../17-autopoint_0.19.8.1-9_all.deb ...
#Unpacking autopoint (0.19.8.1-9) ...
#Selecting previously unselected package libtool.
#Preparing to unpack .../18-libtool_2.4.6-10_all.deb ...
#Unpacking libtool (2.4.6-10) ...
#Selecting previously unselected package dh-autoreconf.
#Preparing to unpack .../19-dh-autoreconf_19_all.deb ...
#Unpacking dh-autoreconf (19) ...
#Selecting previously unselected package libfile-stripnondeterminism-perl.
#Preparing to unpack .../20-libfile-stripnondeterminism-perl_1.1.2-1_all.deb ...
#Unpacking libfile-stripnondeterminism-perl (1.1.2-1) ...
#Selecting previously unselected package dh-strip-nondeterminism.
#Preparing to unpack .../21-dh-strip-nondeterminism_1.1.2-1_all.deb ...
#Unpacking dh-strip-nondeterminism (1.1.2-1) ...
#Selecting previously unselected package dwz.
#Preparing to unpack .../22-dwz_0.12-3_amd64.deb ...
#Unpacking dwz (0.12-3) ...
#Selecting previously unselected package po-debconf.
#Preparing to unpack .../23-po-debconf_1.0.21_all.deb ...
#Unpacking po-debconf (1.0.21) ...
#Selecting previously unselected package debhelper.
#Preparing to unpack .../24-debhelper_12ubuntu1_all.deb ...
#Unpacking debhelper (12ubuntu1) ...
#Selecting previously unselected package lftp.
#Preparing to unpack .../25-lftp_4.8.4-2build1_amd64.deb ...
#Unpacking lftp (4.8.4-2build1) ...
#Selecting previously unselected package php-common.
#Preparing to unpack .../26-php-common_2%3a69ubuntu1_all.deb ...
#Unpacking php-common (2:69ubuntu1) ...
#Selecting previously unselected package php7.2-common.
#Preparing to unpack .../27-php7.2-common_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-common (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php7.2-json.
#Preparing to unpack .../28-php7.2-json_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-json (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php7.2-opcache.
#Preparing to unpack .../29-php7.2-opcache_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-opcache (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php7.2-readline.
#Preparing to unpack .../30-php7.2-readline_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-readline (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php7.2-cli.
#Preparing to unpack .../31-php7.2-cli_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-cli (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package libapache2-mod-php7.2.
#Preparing to unpack .../32-libapache2-mod-php7.2_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking libapache2-mod-php7.2 (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package libapache2-mod-php.
#Preparing to unpack .../33-libapache2-mod-php_2%3a7.2+69ubuntu1_all.deb ...
#Unpacking libapache2-mod-php (2:7.2+69ubuntu1) ...
#Selecting previously unselected package libarchive-cpio-perl.
#Preparing to unpack .../34-libarchive-cpio-perl_0.10-1_all.deb ...
#Unpacking libarchive-cpio-perl (0.10-1) ...
#Selecting previously unselected package libhtml-template-perl.
#Preparing to unpack .../35-libhtml-template-perl_2.97-1_all.deb ...
#Unpacking libhtml-template-perl (2.97-1) ...
#Selecting previously unselected package libltdl-dev:amd64.
#Preparing to unpack .../36-libltdl-dev_2.4.6-10_amd64.deb ...
#Unpacking libltdl-dev:amd64 (2.4.6-10) ...
#Selecting previously unselected package libsys-hostname-long-perl.
#Preparing to unpack .../37-libsys-hostname-long-perl_1.5-1_all.deb ...
#Unpacking libsys-hostname-long-perl (1.5-1) ...
#Selecting previously unselected package libmail-sendmail-perl.
#Preparing to unpack .../38-libmail-sendmail-perl_0.80-1_all.deb ...
#Unpacking libmail-sendmail-perl (0.80-1) ...
#Selecting previously unselected package libpcre16-3:amd64.
#Preparing to unpack .../39-libpcre16-3_2%3a8.39-12_amd64.deb ...
#Unpacking libpcre16-3:amd64 (2:8.39-12) ...
#Selecting previously unselected package libpcre32-3:amd64.
#Preparing to unpack .../40-libpcre32-3_2%3a8.39-12_amd64.deb ...
#Unpacking libpcre32-3:amd64 (2:8.39-12) ...
#Selecting previously unselected package libpcrecpp0v5:amd64.
#Preparing to unpack .../41-libpcrecpp0v5_2%3a8.39-12_amd64.deb ...
#Unpacking libpcrecpp0v5:amd64 (2:8.39-12) ...
#Selecting previously unselected package libpcre3-dev:amd64.
#Preparing to unpack .../42-libpcre3-dev_2%3a8.39-12_amd64.deb ...
#Unpacking libpcre3-dev:amd64 (2:8.39-12) ...
#Selecting previously unselected package libssl-dev:amd64.
#Preparing to unpack .../43-libssl-dev_1.1.1b-1ubuntu2.1_amd64.deb ...
#Unpacking libssl-dev:amd64 (1.1.1b-1ubuntu2.1) ...
#Selecting previously unselected package mysql-server.
#Preparing to unpack .../44-mysql-server_5.7.27-0ubuntu0.19.04.1_all.deb ...
#Unpacking mysql-server (5.7.27-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php7.2-curl.
#Preparing to unpack .../45-php7.2-curl_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-curl (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php-curl.
#Preparing to unpack .../46-php-curl_2%3a7.2+69ubuntu1_all.deb ...
#Unpacking php-curl (2:7.2+69ubuntu1) ...
#Selecting previously unselected package shtool.
#Preparing to unpack .../47-shtool_2.0.8-9_all.deb ...
#Unpacking shtool (2.0.8-9) ...
#Selecting previously unselected package php7.2-dev.
#Preparing to unpack .../48-php7.2-dev_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-dev (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php-dev.
#Preparing to unpack .../49-php-dev_2%3a7.2+69ubuntu1_all.deb ...
#Unpacking php-dev (2:7.2+69ubuntu1) ...
#Selecting previously unselected package php7.2-fpm.
#Preparing to unpack .../50-php7.2-fpm_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-fpm (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php-fpm.
#Preparing to unpack .../51-php-fpm_2%3a7.2+69ubuntu1_all.deb ...
#Unpacking php-fpm (2:7.2+69ubuntu1) ...
#Selecting previously unselected package php7.2-gd.
#Preparing to unpack .../52-php7.2-gd_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-gd (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php-gd.
#Preparing to unpack .../53-php-gd_2%3a7.2+69ubuntu1_all.deb ...
#Unpacking php-gd (2:7.2+69ubuntu1) ...
#Selecting previously unselected package php7.2-mbstring.
#Preparing to unpack .../54-php7.2-mbstring_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-mbstring (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php-mbstring.
#Preparing to unpack .../55-php-mbstring_2%3a7.2+69ubuntu1_all.deb ...
#Unpacking php-mbstring (2:7.2+69ubuntu1) ...
#Selecting previously unselected package php7.2-mysql.
#Preparing to unpack .../56-php7.2-mysql_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-mysql (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php-mysql.
#Preparing to unpack .../57-php-mysql_2%3a7.2+69ubuntu1_all.deb ...
#Unpacking php-mysql (2:7.2+69ubuntu1) ...
#Selecting previously unselected package php7.2-xml.
#Preparing to unpack .../58-php7.2-xml_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-xml (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php-xml.
#Preparing to unpack .../59-php-xml_2%3a7.2+69ubuntu1_all.deb ...
#Unpacking php-xml (2:7.2+69ubuntu1) ...
#Selecting previously unselected package php-pear.
#Preparing to unpack .../60-php-pear_1%3a1.10.6+submodules+notgz-1.1_all.deb ...
#Unpacking php-pear (1:1.10.6+submodules+notgz-1.1) ...
#Selecting previously unselected package libxmlrpc-epi0:amd64.
#Preparing to unpack .../61-libxmlrpc-epi0_0.54.2-1.2_amd64.deb ...
#Unpacking libxmlrpc-epi0:amd64 (0.54.2-1.2) ...
#Selecting previously unselected package php7.2-xmlrpc.
#Preparing to unpack .../62-php7.2-xmlrpc_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-xmlrpc (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php-xmlrpc.
#Preparing to unpack .../63-php-xmlrpc_2%3a7.2+69ubuntu1_all.deb ...
#Unpacking php-xmlrpc (2:7.2+69ubuntu1) ...
#Selecting previously unselected package php7.2-zip.
#Preparing to unpack .../64-php7.2-zip_7.2.19-0ubuntu0.19.04.1_amd64.deb ...
#Unpacking php7.2-zip (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package php-zip.
#Preparing to unpack .../65-php-zip_2%3a7.2+69ubuntu1_all.deb ...
#Unpacking php-zip (2:7.2+69ubuntu1) ...
#Selecting previously unselected package php7.2.
#Preparing to unpack .../66-php7.2_7.2.19-0ubuntu0.19.04.1_all.deb ...
#Unpacking php7.2 (7.2.19-0ubuntu0.19.04.1) ...
#Selecting previously unselected package pkg-php-tools.
#Preparing to unpack .../67-pkg-php-tools_1.37_all.deb ...
#Unpacking pkg-php-tools (1.37) ...
#Selecting previously unselected package vsftpd.
#Preparing to unpack .../68-vsftpd_3.0.3-12_amd64.deb ...
#Unpacking vsftpd (3.0.3-12) ...
#Setting up libpcrecpp0v5:amd64 (2:8.39-12) ...
#Setting up libfile-stripnondeterminism-perl (1.1.2-1) ...
#Setting up shtool (2.0.8-9) ...
#Setting up php-common (2:69ubuntu1) ...
#Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.
#Setting up libmecab2:amd64 (0.996-6) ...
#Setting up libpcre16-3:amd64 (2:8.39-12) ...
#Setting up po-debconf (1.0.21) ...
#Setting up libxmlrpc-epi0:amd64 (0.54.2-1.2) ...
#Setting up mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...
#Setting up lftp (4.8.4-2build1) ...
#Setting up libapr1:amd64 (1.6.5-1) ...
#Setting up libhtml-template-perl (2.97-1) ...
#Setting up autotools-dev (20180224.1) ...
#Setting up libsigsegv2:amd64 (2.12-2) ...
#Setting up libssl-dev:amd64 (1.1.1b-1ubuntu2.1) ...
#Setting up libpcre32-3:amd64 (2:8.39-12) ...
#Setting up autopoint (0.19.8.1-9) ...
#Setting up vsftpd (3.0.3-12) ...
#Created symlink /etc/systemd/system/multi-user.target.wants/vsftpd.service → /lib/systemd/system/vsftpd.service.
#[vsftpd.conf:1] Line references path below legacy directory /var/run/, updating /var/run/vsftpd/empty → /run/vsftpd/empty; please #update the tmpfiles.d/ drop-in file accordingly.
#Setting up libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...
#Setting up dwz (0.12-3) ...
#Setting up libarchive-cpio-perl (0.10-1) ...
#Setting up apache2-data (2.4.38-2ubuntu2) ...
#Setting up libsys-hostname-long-perl (1.5-1) ...
#Setting up libaprutil1:amd64 (1.6.1-3build1) ...
#Setting up php7.2-common (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/calendar.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/ctype.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/exif.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/fileinfo.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/ftp.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/gettext.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/iconv.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/pdo.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/phar.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/posix.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/shmop.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/sockets.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/sysvmsg.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/sysvsem.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/sysvshm.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/tokenizer.ini with new version
#Setting up php7.2-opcache (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/opcache.ini with new version
#Setting up php7.2-xmlrpc (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/xmlrpc.ini with new version
#Setting up php7.2-zip (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/zip.ini with new version
#Setting up libtool (2.4.6-10) ...
#Setting up libpcre3-dev:amd64 (2:8.39-12) ...
#Setting up php7.2-gd (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/gd.ini with new version
#Setting up mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...
#update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
#Renaming removed key_buffer and myisam-recover options (if present)
#Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service → /lib/systemd/system/mysql.service.
#Setting up m4 (1.4.18-2) ...
#Setting up php7.2-curl (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/curl.ini with new version
#Setting up libaprutil1-ldap:amd64 (1.6.1-3build1) ...
#Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...
#Setting up libmail-sendmail-perl (0.80-1) ...
#Setting up php7.2-json (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/json.ini with new version
#Setting up php7.2-mysql (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/mysqlnd.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/mysqli.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/pdo_mysql.ini with new version
#Setting up php-xmlrpc (2:7.2+69ubuntu1) ...
#Setting up php7.2-mbstring (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/mbstring.ini with new version
#Setting up autoconf (2.69-11) ...
#Setting up php-zip (2:7.2+69ubuntu1) ...
#Setting up php-gd (2:7.2+69ubuntu1) ...
#Setting up php7.2-xml (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/dom.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/simplexml.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/wddx.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/xml.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/xmlreader.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/xmlwriter.ini with new version
#
#Creating config file /etc/php/7.2/mods-available/xsl.ini with new version
#Setting up php7.2-readline (7.2.19-0ubuntu0.19.04.1) ...
#
#Creating config file /etc/php/7.2/mods-available/readline.ini with new version
#Setting up apache2-utils (2.4.38-2ubuntu2) ...
#Setting up automake (1:1.16.1-4ubuntu3) ...
#update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
#Setting up mysql-server (5.7.27-0ubuntu0.19.04.1) ...
#Setting up php-xml (2:7.2+69ubuntu1) ...
#Setting up php7.2-cli (7.2.19-0ubuntu0.19.04.1) ...
#update-alternatives: using /usr/bin/php7.2 to provide /usr/bin/php (php) in auto mode
#update-alternatives: using /usr/bin/phar7.2 to provide /usr/bin/phar (phar) in auto mode
#update-alternatives: using /usr/bin/phar.phar7.2 to provide /usr/bin/phar.phar (phar.phar) in auto mode
#
#Creating config file /etc/php/7.2/cli/php.ini with new version
#Setting up php-curl (2:7.2+69ubuntu1) ...
#Setting up php-pear (1:1.10.6+submodules+notgz-1.1) ...
#Setting up php-mysql (2:7.2+69ubuntu1) ...
#Setting up php7.2-fpm (7.2.19-0ubuntu0.19.04.1) ...
#Package apache2 is not configured yet. Will defer actions by package php7.2-fpm.
#
#Creating config file /etc/php/7.2/fpm/php.ini with new version
#NOTICE: Not enabling PHP 7.2 FPM by default.
#NOTICE: To enable PHP 7.2 FPM in Apache2 do:
#NOTICE: a2enmod proxy_fcgi setenvif
#NOTICE: a2enconf php7.2-fpm
#NOTICE: You are seeing this message because you have apache2 package installed.
#Created symlink /etc/systemd/system/multi-user.target.wants/php7.2-fpm.service → /lib/systemd/system/php7.2-fpm.service.
#Setting up apache2-bin (2.4.38-2ubuntu2) ...
#Setting up php-mbstring (2:7.2+69ubuntu1) ...
#Setting up libapache2-mod-php7.2 (7.2.19-0ubuntu0.19.04.1) ...
#Package apache2 is not configured yet. Will defer actions by package libapache2-mod-php7.2.
#
#Creating config file /etc/php/7.2/apache2/php.ini with new version
#No module matches 
#Setting up libltdl-dev:amd64 (2.4.6-10) ...
#Setting up php-fpm (2:7.2+69ubuntu1) ...
#Setting up libapache2-mod-php (2:7.2+69ubuntu1) ...
#Setting up php7.2-dev (7.2.19-0ubuntu0.19.04.1) ...
#update-alternatives: using /usr/bin/php-config7.2 to provide /usr/bin/php-config (php-config) in auto mode
#update-alternatives: using /usr/bin/phpize7.2 to provide /usr/bin/phpize (phpize) in auto mode
#Setting up php7.2 (7.2.19-0ubuntu0.19.04.1) ...
#Setting up apache2 (2.4.38-2ubuntu2) ...
#Enabling module mpm_event.
#Enabling module authz_core.
#Enabling module authz_host.
#Enabling module authn_core.
#Enabling module auth_basic.
#Enabling module access_compat.
#Enabling module authn_file.
#Enabling module authz_user.
#Enabling module alias.
#Enabling module dir.
#Enabling module autoindex.
#Enabling module env.
#Enabling module mime.
#Enabling module negotiation.
#Enabling module setenvif.
#Enabling module filter.
#Enabling module deflate.
#Enabling module status.
#Enabling module reqtimeout.
#Enabling conf charset.
#Enabling conf localized-error-pages.
#Enabling conf other-vhosts-access-log.
#Enabling conf security.
#Enabling conf serve-cgi-bin.
#Enabling site 000-default.
#info: Switch to mpm prefork for package libapache2-mod-php7.2
#Module mpm_event disabled.
#Enabling module mpm_prefork.
#info: Executing deferred 'a2enmod php7.2' for package libapache2-mod-php7.2
#Enabling module php7.2.
#Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
#Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/#apache-htcacheclean.service.
#Setting up php-dev (2:7.2+69ubuntu1) ...
#Setting up debhelper (12ubuntu1) ...
#Setting up dh-autoreconf (19) ...
#Setting up dh-strip-nondeterminism (1.1.2-1) ...
#Setting up pkg-php-tools (1.37) ...
#Processing triggers for mime-support (3.60ubuntu1) ...
#Processing triggers for hicolor-icon-theme (0.17-2) ...
#Processing triggers for libc-bin (2.29-0ubuntu2) ...
#Processing triggers for ufw (0.36-1ubuntu1) ...
#Processing triggers for systemd (240-6ubuntu5.2) ...
#Processing triggers for man-db (2.8.5-2) ...
#Processing triggers for install-info (6.5.0.dfsg.1-4build1) ...
root@username:/home/username# service apache2 restart
root@username:/home/username# sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
#Generating a RSA private key
#......................................................+++++
#...................................+++++
#writing new private key to '/etc/ssl/private/apache-selfsigned.key'
#-----
#You are about to be asked to enter information that will be incorporated
#into your certificate request.
#What you are about to enter is what is called a Distinguished Name or a DN.
#There are quite a few fields but you can leave some blank
#For some fields there will be a default value,
#If you enter '.', the field will be left blank.
#-----
#Country Name (2 letter code) [AU]:VN
#State or Province Name (full name) [Some-State]:Ha-Noi
#Locality Name (eg, city) []:MyDinh
#Organization Name (eg, company) [Internet Widgits Pty Ltd]:DEV
#Organizational Unit Name (eg, section) []:Skyhigh
#Common Name (e.g. server FQDN or YOUR name) []:SkyHigh
#Email Address []:manhavn@outlook.com
root@username:/home/username# openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
#Generating DH parameters, 2048 bit long safe prime, generator 2
#This is going to take a long time
#.................................................................................................................................................#.................................................................................................................................................#.............................................................................................................................................#+..............#+................................................................................................................................................#......................................................+........................................................#+.......................................................#+........................................................................................................................................#+................................................................................................................................................#......................................................................................+...+.....................................................#+................................................................................................................................................#................................................................................................................#+................................................................................................................................................#.................................................................................................................................................#............................#+..........................................................................................................................................+.....#+.............................+.................+..............................................................#+....................................................................................+..............................#+..............................+..........................................................#+................................................................................................................................................#.......................................................................................................+........................................#+..............................................................................................#+................................................................................................................................................#...................................#+............................................................................................................................................#+................................................................................................................................................#.................................................................................................................................................#.................................................................................................................................................#...................................................#+..........................................................................................................................#+...................................................................+........................+.........+...................................#+..................................................+..................+.................+..................................#+................................................................................................................................................#..+..........................................................................................#+..........................................................+.......+...............+.........................#+................................................................................+........#+...................................................................................................+....#+................................................................................................................................................#...+.................................................+..............................................+......................................#+............................................................+...........................................+...+................#+............................................................................................+.......+....................+..#+....................................................+.................................+................................+...........#+...................................................+.....................................................................#+................................................................................................................................................#.....................................................................................................................................#+.................#+................................................................................................................................................#.................................................................................................................................................#.................................................................................................................................................#................+.................................................#+.....................................................................................................................................#+...........+......................+................................+........................................#+................................................................................................................................................#.........................................++*++*++*++*
root@username:/home/username# nano /etc/apache2/conf-available/ssl-params.conf
    # from https://cipherli.st/
    # and https://raymii.org/s/tutorials/Strong_SSL_Security_On_Apache2.html

    SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
    SSLProtocol All -SSLv2 -SSLv3
    SSLHonorCipherOrder On
    # Disable preloading HSTS for now.  You can use the commented out header line that includes
    # the "preload" directive if you understand the implications.
    #Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"
    Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains"
    Header always set X-Frame-Options DENY
    Header always set X-Content-Type-Options nosniff
    # Requires Apache >= 2.4
    SSLCompression off 
    SSLSessionTickets Off
    SSLUseStapling on 
    SSLStaplingCache "shmcb:logs/stapling-cache(150000)"

    SSLOpenSSLConfCmd DHParameters "/etc/ssl/certs/dhparam.pem"
root@username:/home/username# cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/default-ssl.conf.bak
root@username:/home/username# nano /etc/apache2/sites-available/default-ssl.conf
<IfModule mod_ssl.c>
        <VirtualHost _default_:443>
                ServerAdmin localhost

                DocumentRoot /home/m/html

                ErrorLog ${APACHE_LOG_DIR}/error.log
                CustomLog ${APACHE_LOG_DIR}/access.log combined

                SSLEngine on

                SSLCertificateFile      /etc/ssl/certs/ssl-cert-snakeoil.pem
                SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

                <FilesMatch "\.(cgi|shtml|phtml|php)$">
                                SSLOptions +StdEnvVars
                </FilesMatch>
                <Directory /usr/lib/cgi-bin>
                                SSLOptions +StdEnvVars
                </Directory>

                # BrowserMatch "MSIE [2-6]" \
                #               nokeepalive ssl-unclean-shutdown \
                #               downgrade-1.0 force-response-1.0

        </VirtualHost>
</IfModule>
root@username:/home/username# nano /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
        . . .

        Redirect "/" "https://localhost/"

        . . .
</VirtualHost>
root@username:/home/username# a2enmod ssl
#Considering dependency setenvif for ssl:
#Module setenvif already enabled
#Considering dependency mime for ssl:
#Module mime already enabled
#Considering dependency socache_shmcb for ssl:
#Enabling module socache_shmcb.
#Enabling module ssl.
#See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
#To activate the new configuration, you need to run:
#  systemctl restart apache2
root@username:/home/username# a2enmod headers
#Enabling module headers.
#To activate the new configuration, you need to run:
#  systemctl restart apache2
root@username:/home/username# a2ensite default-ssl
#Enabling site default-ssl.
#To activate the new configuration, you need to run:
#  systemctl reload apache2
root@username:/home/username# a2enconf ssl-params
#Enabling conf ssl-params.
#To activate the new configuration, you need to run:
#  systemctl reload apache2
root@username:/home/username# apache2ctl configtest
#AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive #globally to suppress this message
#Syntax OK
root@username:/home/username# nano /etc/apache2/apache2.conf 
#...

<Directory /home/m/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

#...
root@username:/home/username# nano /etc/apache2/sites-available/000-default.conf 
#...

        ServerAdmin localhost
        DocumentRoot /home/m/html
        Redirect "/" "https://localhost/"

#...
root@username:/home/username# nano /etc/apache2/sites-available/default-ssl.conf
#...
                ServerAdmin localhost

                DocumentRoot /home/m/html
#...
root@username:/home/username# systemctl restart apache2
root@username:/home/username# echo "<?php phpinfo();?>" > /home/m/html/index.php
#PHP APACHE2 DONE
root@username:/home/username# mysql_secure_installation
#
#Securing the MySQL server deployment.
#
#Connecting to MySQL using a blank password.
#
#VALIDATE PASSWORD PLUGIN can be used to test passwords
#and improve security. It checks the strength of password
#and allows the users to set only those passwords which are
#secure enough. Would you like to setup VALIDATE PASSWORD plugin?
#
Press y|Y for Yes, any other key for No: n
#Please set the password for root here.
#
#New password: 
#
#Re-enter new password: 
#By default, a MySQL installation has an anonymous user,
#allowing anyone to log into MySQL without having to have
#a user account created for them. This is intended only for
#testing, and to make the installation go a bit smoother.
#You should remove them before moving into a production
#environment.
#
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
#Success.
#
#
#Normally, root should only be allowed to connect from
#'localhost'. This ensures that someone cannot guess at
#the root password from the network.
#
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n
#
# ... skipping.
#By default, MySQL comes with a database named 'test' that
#anyone can access. This is also intended only for testing,
#and should be removed before moving into a production
#environment.
#
#
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
# - Dropping test database...
#Success.
#
# - Removing privileges on test database...
#Success.
#
#Reloading the privilege tables will ensure that all changes
#made so far will take effect immediately.
#
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
#Success.
#
#All done! 
root@username:/home/username# service mysql restart
root@username:/home/username# mysql -u root -p
#Enter password: 
#Welcome to the MySQL monitor.  Commands end with ; or \g.
#Your MySQL connection id is 2
#Server version: 5.7.27-0ubuntu0.19.04.1 (Ubuntu)
#
#Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
#
#Oracle is a registered trademark of Oracle Corporation and/or its
#affiliates. Other names may be trademarks of their respective
#owners.
#
#Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
#
mysql> SELECT User, Host, authentication_string, plugin FROM mysql.user;
#+------------------+-----------+-------------------------------------------+-----------------------+
#| User             | Host      | authentication_string                     | plugin                |
#+------------------+-----------+-------------------------------------------+-----------------------+
#| root             | localhost |                                           | auth_socket           |
#| mysql.session    | localhost | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password |
#| mysql.sys        | localhost | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password |
#| debian-sys-maint | localhost | *34EF7CBA944F37F0A5F03FF0782E982C1CAB8A06 | mysql_native_password |
#+------------------+-----------+-------------------------------------------+-----------------------+
#4 rows in set (0.00 sec)
#
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '00000000' WITH GRANT OPTION;
#Query OK, 0 rows affected, 1 warning (0.00 sec)
#
mysql> SELECT User, Host, authentication_string, plugin FROM mysql.user;
#+------------------+-----------+-------------------------------------------+-----------------------+
#| User             | Host      | authentication_string                     | plugin                |
#+------------------+-----------+-------------------------------------------+-----------------------+
#| root             | localhost |                                           | auth_socket           |
#| mysql.session    | localhost | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password |
#| mysql.sys        | localhost | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password |
#| debian-sys-maint | localhost | *34EF7CBA944F37F0A5F03FF0782E982C1CAB8A06 | mysql_native_password |
#| root             | %         | *2DF3063C523DF16DEFB8A454F9DA045D92D509BA | mysql_native_password |
#+------------------+-----------+-------------------------------------------+-----------------------+
#5 rows in set (0.00 sec)
#
mysql> UPDATE mysql.user SET authentication_string=PASSWORD('00000000'), plugin='mysql_native_password' WHERE user='root' AND host='localhost' AND plugin='auth_socket';
#Query OK, 1 row affected, 1 warning (0.00 sec)
#Rows matched: 1  Changed: 1  Warnings: 1
#
mysql> SELECT User, Host, authentication_string, plugin FROM mysql.user;
#+------------------+-----------+-------------------------------------------+-----------------------+
#| User             | Host      | authentication_string                     | plugin                |
#+------------------+-----------+-------------------------------------------+-----------------------+
#| root             | localhost | *2DF3063C523DF16DEFB8A454F9DA045D92D509BA | mysql_native_password |
#| mysql.session    | localhost | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password |
#| mysql.sys        | localhost | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password |
#| debian-sys-maint | localhost | *34EF7CBA944F37F0A5F03FF0782E982C1CAB8A06 | mysql_native_password |
#| root             | %         | *2DF3063C523DF16DEFB8A454F9DA045D92D509BA | mysql_native_password |
#+------------------+-----------+-------------------------------------------+-----------------------+
#5 rows in set (0.00 sec)
#
mysql> exit
#Bye
root@username:/home/username# service mysql restart
#MYSQL-SERVER DONE
root@username:/home/username# nano /etc/vsftpd.conf
    listen=NO
    listen_ipv6=YES
    anonymous_enable=NO
    local_enable=YES
    write_enable=YES
    local_umask=022
    dirmessage_enable=YES
    use_localtime=YES
    xferlog_enable=YES
    connect_from_port_20=YES
    chroot_local_user=YES
    secure_chroot_dir=/var/run/vsftpd/empty
    pam_service_name=vsftpd
    rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    ssl_enable=NO
    pasv_enable=Yes
    pasv_min_port=10000
    pasv_max_port=10100
    allow_writeable_chroot=YES
root@username:/home/username# service vsftpd restart
root@username:/home/username# service vsftpd status
#● vsftpd.service - vsftpd FTP server
#   Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
#   Active: active (running) since Sat 2019-08-03 14:58:24 +07; 9s ago
#  Process: 23495 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
# Main PID: 23497 (vsftpd)
#    Tasks: 1 (limit: 4915)
#   Memory: 600.0K
#   CGroup: /system.slice/vsftpd.service
#           └─23497 /usr/sbin/vsftpd /etc/vsftpd.conf
#
#Thg 8 03 14:58:24 m systemd[1]: Starting vsftpd FTP server...
#Thg 8 03 14:58:24 m systemd[1]: Started vsftpd FTP server.
root@username:/home/username# lftp
lftp :~> open username:password@localhost:21
lftp username@localhost:~> ls
#drwxr-xr-x    2 1000     1000         4096 Aug 03 14:00 Desktop
#drwxr-xr-x    2 1000     1000         4096 Aug 03 12:17 Documents
#drwxr-xr-x    2 1000     1000         4096 Aug 03 14:04 Downloads
#drwxr-xr-x    2 1000     1000         4096 Aug 03 12:17 Music
#drwxr-xr-x    2 1000     1000         4096 Aug 03 12:17 Pictures
#drwxr-xr-x    2 1000     1000         4096 Aug 03 12:17 Videos
#drwxrwxr-x    2 1000     1000         4096 Aug 03 14:44 html
lftp username@localhost:/> exit
#Setup WORDPRESS
root@username:/home/username# wget https://wordpress.org/latest.tar.gz
#--2019-08-03 15:11:02--  https://wordpress.org/latest.tar.gz
#Resolving wordpress.org (wordpress.org)... 198.143.164.252
#Connecting to wordpress.org (wordpress.org)|198.143.164.252|:443... connected.
#HTTP request sent, awaiting response... 200 OK
#Length: 11200591 (11M) [application/octet-stream]
#Saving to: ‘latest.tar.gz’
#
#latest.tar.gz                                   100%[=======================================================================================================>]  10,68M   352KB/s    in 36s     
#
#2019-08-03 15:11:40 (301 KB/s) - ‘latest.tar.gz’ saved [11200591/11200591]
#
root@username:/home/username# tar xf latest.tar.gz 
root@username:/home/username# mv wordpress/* html/
root@username:/home/username# rm latest.tar.gz 
root@username:/home/username# rm -r wordpress/

root@username:/home/username# mysql -u root -p
#Enter password: 
#Welcome to the MySQL monitor.  Commands end with ; or \g.
#Your MySQL connection id is 3
#Server version: 5.7.27-0ubuntu0.19.04.1 (Ubuntu)
#
#Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
#
#Oracle is a registered trademark of Oracle Corporation and/or its
#affiliates. Other names may be trademarks of their respective
#owners.
#
#Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
#
mysql> CREATE DATABASE wordpress;
#Query OK, 1 row affected (0.00 sec)
#
mysql> exit
#Bye
root@username:/home/username# nano /home/m/html/wp-config.php
<?php
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://codex.wordpress.org/Editing_wp-config.php
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'wordpress' );

/** MySQL database username */
define( 'DB_USER', 'root' );

/** MySQL database password */
define( 'DB_PASSWORD', '00000000' );

/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

/** Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8mb4' );

/** The Database Collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );

/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define( 'AUTH_KEY',         '#_AB<veoh6sAaH]QZt0I7P] 4fU`M.?*DqS XhE]Hh%<>2/qSB8^Sh#)`K`E4t]>' );
define( 'SECURE_AUTH_KEY',  'n>h[e_i)o9oj+LohGMa36?~Zpr+F*f~0rH>X{UP%W#i<|u+%(e^V5*w6!O`V4$(o' );
define( 'LOGGED_IN_KEY',    '?/M*TBbH_wf.T<HTyyCYc_ko{]xg#}ak2R56D)|DVYyL&GkCR*S8E4DI~p4T=es!' );
define( 'NONCE_KEY',        'vy|*#-L-8CD2X_mu?M6~nZ]$BaN$Z|yMl@m>ZxEgL>G1L%_f*XDB`P3W%)W/3e7c' );
define( 'AUTH_SALT',        '2IrL@TSitoy#8K=<`hn0>|4YdXP1uyYU:(>xyi|YxzBbEm5***#ZNIzeu*2A(Gw(' );
define( 'SECURE_AUTH_SALT', 'i6442dV1%xb%lOEfOzs^w<sR`Kb@r?IX{Xz#QN02Q+!</2KBX|P39_blw?.}Suy/' );
define( 'LOGGED_IN_SALT',   'j[6Ksl~V[,YrH,Z0:*Wsu8dH x:)Q;2UBT[}Jz68iu!l70Q!aU6N%XyD`G.PsG!1' );
define( 'NONCE_SALT',       'Lk|9~VU*.kW1jFpxJ6`$aXcaAH*+lTZNaoojsi9@!x@;H[o`QI:*/f<`ORMi,S9F' );

/**#@-*/

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each
 * a unique prefix. Only numbers, letters, and underscores please!
 */
$table_prefix = 'wp_';

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 *
 * For information on other constants that can be used for debugging,
 * visit the Codex.
 *
 * @link https://codex.wordpress.org/Debugging_in_WordPress
 */
define( 'WP_DEBUG', false );

/* That's all, stop editing! Happy publishing. */

/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
	define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}

/** Sets up WordPress vars and included files. */
require_once( ABSPATH . 'wp-settings.php' );
0.0.1

6 years ago