Install WordPress on Ubuntu 20.xx

WordPress is an extremely popular open-source technology for making websites and blogs on the internet today. Used by 63% of all websites that use a content management system (CMS), WordPress sites represent 36% of all websites that are currently online.

AWS EC2 instance removed after end lab.

ssh -i sshkey.pem ubuntu@ec2-3-135-234-123.us-east-2.compute.amazonaws.com

---



---

ssh -i sshkey.pem ubuntu@ec2-3-135-234-123.us-east-2.compute.amazonaws.com

sudo su

ubuntu@ip-172-31-25-197:~$ sudo su

root@ip-172-31-25-197:/home/ubuntu#

apt update && sudo apt -y dist-upgrade

hostnamectl set-hostname visurati.it

cd /etc/netplan/

ls

cat 50-cloud-init.yaml

vi 50-cloud-init.yaml

---

# This file is generated from information provided by the datasource.  Changes

# to it will not persist across an instance reboot.  To disable cloud-init's

# network configuration capabilities, write a file

# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:

# network: {config: disabled}

network:

    ethernets:

        eth0:

            dhcp4: true

            dhcp6: true

            match:

                macaddress: 06:46:b4:fd:1c:fa

            set-name: eth0

    version: 2

---

netplan apply

reboot

---

ssh -i sshkey.pem ubuntu@ec2-3-135-234-123.us-east-2.compute.amazonaws.com

sudo su

apt install mysql-server

---

root@visurati:/home/ubuntu# apt install mysql-server

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

  libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perl libhtml-parser-perl libhtml-tagset-perl

  libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmecab2 libtimedate-perl liburi-perl mecab-ipadic

  mecab-ipadic-utf8 mecab-utils mysql-client-8.0 mysql-client-core-8.0 mysql-common mysql-server-8.0 mysql-server-core-8.0

Suggested packages:

  libdata-dump-perl libipc-sharedcache-perl libwww-perl mailx tinyca

The following NEW packages will be installed:

  libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perl libhtml-parser-perl libhtml-tagset-perl

  libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmecab2 libtimedate-perl liburi-perl mecab-ipadic

  mecab-ipadic-utf8 mecab-utils mysql-client-8.0 mysql-client-core-8.0 mysql-common mysql-server mysql-server-8.0 mysql-server-core-8.0

0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.

Need to get 30.9 MB of archives.

After this operation, 250 MB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Get:1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 mysql-common all 5.8+1.0.5ubuntu2 [7496 B]

Get:2 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 mysql-client-core-8.0 amd64 8.0.23-0ubuntu0.20.04.1 [4215 kB]

Get:3 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 mysql-client-8.0 amd64 8.0.23-0ubuntu0.20.04.1 [22.0 kB]

Get:4 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libevent-core-2.1-7 amd64 2.1.11-stable-1 [89.1 kB]

Get:5 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libevent-pthreads-2.1-7 amd64 2.1.11-stable-1 [7372 B]

Get:6 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libmecab2 amd64 0.996-10build1 [233 kB]

Get:7 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 mysql-server-core-8.0 amd64 8.0.23-0ubuntu0.20.04.1 [17.7 MB]

Get:8 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 mysql-server-8.0 amd64 8.0.23-0ubuntu0.20.04.1 [1275 kB]

Get:9 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libhtml-tagset-perl all 3.20-4 [12.5 kB]

Get:10 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 liburi-perl all 1.76-2 [77.5 kB]

Get:11 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libhtml-parser-perl amd64 3.72-5 [86.3 kB]

Get:12 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libcgi-pm-perl all 4.46-1 [186 kB]

Get:13 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libfcgi-perl amd64 0.79-1 [33.1 kB]

Get:14 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libcgi-fast-perl all 1:2.15-1 [10.5 kB]

Get:15 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libencode-locale-perl all 1.05-1 [12.3 kB]

Get:16 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libhtml-template-perl all 2.97-1 [59.0 kB]

Get:17 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libtimedate-perl all 2.3200-1 [34.0 kB]

Get:18 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libhttp-date-perl all 6.05-1 [9920 B]

Get:19 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libio-html-perl all 1.001-1 [14.9 kB]

Get:20 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 liblwp-mediatypes-perl all 6.04-1 [19.5 kB]

Get:21 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libhttp-message-perl all 6.22-1 [76.1 kB]

Get:22 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 mecab-utils amd64 0.996-10build1 [4912 B]

Get:23 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 mecab-ipadic all 2.7.0-20070801+main-2.1 [6714 kB]

Get:24 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 mecab-ipadic-utf8 all 2.7.0-20070801+main-2.1 [4380 B]

Get:25 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 mysql-server all 8.0.23-0ubuntu0.20.04.1 [9548 B]

Fetched 30.9 MB in 1s (55.1 MB/s)

Preconfiguring packages ...

Selecting previously unselected package mysql-common.

(Reading database ... 87992 files and directories currently installed.)

Preparing to unpack .../0-mysql-common_5.8+1.0.5ubuntu2_all.deb ...

Unpacking mysql-common (5.8+1.0.5ubuntu2) ...

Selecting previously unselected package mysql-client-core-8.0.

Preparing to unpack .../1-mysql-client-core-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb ...

Unpacking mysql-client-core-8.0 (8.0.23-0ubuntu0.20.04.1) ...

Selecting previously unselected package mysql-client-8.0.

Preparing to unpack .../2-mysql-client-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb ...

Unpacking mysql-client-8.0 (8.0.23-0ubuntu0.20.04.1) ...

Selecting previously unselected package libevent-core-2.1-7:amd64.

Preparing to unpack .../3-libevent-core-2.1-7_2.1.11-stable-1_amd64.deb ...

Unpacking libevent-core-2.1-7:amd64 (2.1.11-stable-1) ...

Selecting previously unselected package libevent-pthreads-2.1-7:amd64.

Preparing to unpack .../4-libevent-pthreads-2.1-7_2.1.11-stable-1_amd64.deb ...

Unpacking libevent-pthreads-2.1-7:amd64 (2.1.11-stable-1) ...

Selecting previously unselected package libmecab2:amd64.

Preparing to unpack .../5-libmecab2_0.996-10build1_amd64.deb ...

Unpacking libmecab2:amd64 (0.996-10build1) ...

Selecting previously unselected package mysql-server-core-8.0.

Preparing to unpack .../6-mysql-server-core-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb ...

Unpacking mysql-server-core-8.0 (8.0.23-0ubuntu0.20.04.1) ...

Setting up mysql-common (5.8+1.0.5ubuntu2) ...

update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode

Selecting previously unselected package mysql-server-8.0.

(Reading database ... 88210 files and directories currently installed.)

Preparing to unpack .../00-mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb ...

Unpacking mysql-server-8.0 (8.0.23-0ubuntu0.20.04.1) ...

Selecting previously unselected package libhtml-tagset-perl.

Preparing to unpack .../01-libhtml-tagset-perl_3.20-4_all.deb ...

Unpacking libhtml-tagset-perl (3.20-4) ...

Selecting previously unselected package liburi-perl.

Preparing to unpack .../02-liburi-perl_1.76-2_all.deb ...

Unpacking liburi-perl (1.76-2) ...

Selecting previously unselected package libhtml-parser-perl.

Preparing to unpack .../03-libhtml-parser-perl_3.72-5_amd64.deb ...

Unpacking libhtml-parser-perl (3.72-5) ...

Selecting previously unselected package libcgi-pm-perl.

Preparing to unpack .../04-libcgi-pm-perl_4.46-1_all.deb ...

Unpacking libcgi-pm-perl (4.46-1) ...

Selecting previously unselected package libfcgi-perl.

Preparing to unpack .../05-libfcgi-perl_0.79-1_amd64.deb ...

Unpacking libfcgi-perl (0.79-1) ...

Selecting previously unselected package libcgi-fast-perl.

Preparing to unpack .../06-libcgi-fast-perl_1%3a2.15-1_all.deb ...

Unpacking libcgi-fast-perl (1:2.15-1) ...

Selecting previously unselected package libencode-locale-perl.

Preparing to unpack .../07-libencode-locale-perl_1.05-1_all.deb ...

Unpacking libencode-locale-perl (1.05-1) ...

Selecting previously unselected package libhtml-template-perl.

Preparing to unpack .../08-libhtml-template-perl_2.97-1_all.deb ...

Unpacking libhtml-template-perl (2.97-1) ...

Selecting previously unselected package libtimedate-perl.

Preparing to unpack .../09-libtimedate-perl_2.3200-1_all.deb ...

Unpacking libtimedate-perl (2.3200-1) ...

Selecting previously unselected package libhttp-date-perl.

Preparing to unpack .../10-libhttp-date-perl_6.05-1_all.deb ...

Unpacking libhttp-date-perl (6.05-1) ...

Selecting previously unselected package libio-html-perl.

Preparing to unpack .../11-libio-html-perl_1.001-1_all.deb ...

Unpacking libio-html-perl (1.001-1) ...

Selecting previously unselected package liblwp-mediatypes-perl.

Preparing to unpack .../12-liblwp-mediatypes-perl_6.04-1_all.deb ...

Unpacking liblwp-mediatypes-perl (6.04-1) ...

Selecting previously unselected package libhttp-message-perl.

Preparing to unpack .../13-libhttp-message-perl_6.22-1_all.deb ...

Unpacking libhttp-message-perl (6.22-1) ...

Selecting previously unselected package mecab-utils.

Preparing to unpack .../14-mecab-utils_0.996-10build1_amd64.deb ...

Unpacking mecab-utils (0.996-10build1) ...

Selecting previously unselected package mecab-ipadic.

Preparing to unpack .../15-mecab-ipadic_2.7.0-20070801+main-2.1_all.deb ...

Unpacking mecab-ipadic (2.7.0-20070801+main-2.1) ...

Selecting previously unselected package mecab-ipadic-utf8.

Preparing to unpack .../16-mecab-ipadic-utf8_2.7.0-20070801+main-2.1_all.deb ...

Unpacking mecab-ipadic-utf8 (2.7.0-20070801+main-2.1) ...

Selecting previously unselected package mysql-server.

Preparing to unpack .../17-mysql-server_8.0.23-0ubuntu0.20.04.1_all.deb ...

Unpacking mysql-server (8.0.23-0ubuntu0.20.04.1) ...

Setting up libmecab2:amd64 (0.996-10build1) ...

Setting up mysql-client-core-8.0 (8.0.23-0ubuntu0.20.04.1) ...

Setting up libhtml-tagset-perl (3.20-4) ...

Setting up liblwp-mediatypes-perl (6.04-1) ...

Setting up libencode-locale-perl (1.05-1) ...

Setting up mecab-utils (0.996-10build1) ...

Setting up libevent-core-2.1-7:amd64 (2.1.11-stable-1) ...

Setting up libio-html-perl (1.001-1) ...

Setting up libtimedate-perl (2.3200-1) ...

Setting up mysql-client-8.0 (8.0.23-0ubuntu0.20.04.1) ...

Setting up libfcgi-perl (0.79-1) ...

Setting up liburi-perl (1.76-2) ...

Setting up libevent-pthreads-2.1-7:amd64 (2.1.11-stable-1) ...

Setting up libhttp-date-perl (6.05-1) ...

Setting up mecab-ipadic (2.7.0-20070801+main-2.1) ...

Compiling IPA dictionary for Mecab.  This takes long time...

reading /usr/share/mecab/dic/ipadic/unk.def ... 40

emitting double-array: 100% |###########################################|

/usr/share/mecab/dic/ipadic/model.def is not found. skipped.

reading /usr/share/mecab/dic/ipadic/Interjection.csv ... 252

reading /usr/share/mecab/dic/ipadic/Verb.csv ... 130750

reading /usr/share/mecab/dic/ipadic/Noun.verbal.csv ... 12146

reading /usr/share/mecab/dic/ipadic/Auxil.csv ... 199

reading /usr/share/mecab/dic/ipadic/Noun.adjv.csv ... 3328

reading /usr/share/mecab/dic/ipadic/Suffix.csv ... 1393

reading /usr/share/mecab/dic/ipadic/Noun.org.csv ... 16668

reading /usr/share/mecab/dic/ipadic/Adverb.csv ... 3032

reading /usr/share/mecab/dic/ipadic/Noun.number.csv ... 42

reading /usr/share/mecab/dic/ipadic/Filler.csv ... 19

reading /usr/share/mecab/dic/ipadic/Adj.csv ... 27210

reading /usr/share/mecab/dic/ipadic/Noun.csv ... 60477

reading /usr/share/mecab/dic/ipadic/Noun.demonst.csv ... 120

reading /usr/share/mecab/dic/ipadic/Postp.csv ... 146

reading /usr/share/mecab/dic/ipadic/Prefix.csv ... 221

reading /usr/share/mecab/dic/ipadic/Noun.adverbal.csv ... 795

reading /usr/share/mecab/dic/ipadic/Symbol.csv ... 208

reading /usr/share/mecab/dic/ipadic/Noun.others.csv ... 151

reading /usr/share/mecab/dic/ipadic/Noun.proper.csv ... 27328

reading /usr/share/mecab/dic/ipadic/Noun.nai.csv ... 42

reading /usr/share/mecab/dic/ipadic/Adnominal.csv ... 135

reading /usr/share/mecab/dic/ipadic/Postp-col.csv ... 91

reading /usr/share/mecab/dic/ipadic/Conjunction.csv ... 171

reading /usr/share/mecab/dic/ipadic/Noun.name.csv ... 34202

reading /usr/share/mecab/dic/ipadic/Noun.place.csv ... 72999

reading /usr/share/mecab/dic/ipadic/Others.csv ... 2

emitting double-array: 100% |###########################################|

reading /usr/share/mecab/dic/ipadic/matrix.def ... 1316x1316

emitting matrix      : 100% |###########################################|


done!

update-alternatives: using /var/lib/mecab/dic/ipadic to provide /var/lib/mecab/dic/debian (mecab-dictionary) in auto mode

Setting up mysql-server-core-8.0 (8.0.23-0ubuntu0.20.04.1) ...

Setting up mecab-ipadic-utf8 (2.7.0-20070801+main-2.1) ...

Compiling IPA dictionary for Mecab.  This takes long time...

reading /usr/share/mecab/dic/ipadic/unk.def ... 40

emitting double-array: 100% |###########################################|

/usr/share/mecab/dic/ipadic/model.def is not found. skipped.

reading /usr/share/mecab/dic/ipadic/Interjection.csv ... 252

reading /usr/share/mecab/dic/ipadic/Verb.csv ... 130750

reading /usr/share/mecab/dic/ipadic/Noun.verbal.csv ... 12146

reading /usr/share/mecab/dic/ipadic/Auxil.csv ... 199

reading /usr/share/mecab/dic/ipadic/Noun.adjv.csv ... 3328

reading /usr/share/mecab/dic/ipadic/Suffix.csv ... 1393

reading /usr/share/mecab/dic/ipadic/Noun.org.csv ... 16668

reading /usr/share/mecab/dic/ipadic/Adverb.csv ... 3032

reading /usr/share/mecab/dic/ipadic/Noun.number.csv ... 42

reading /usr/share/mecab/dic/ipadic/Filler.csv ... 19

reading /usr/share/mecab/dic/ipadic/Adj.csv ... 27210

reading /usr/share/mecab/dic/ipadic/Noun.csv ... 60477

reading /usr/share/mecab/dic/ipadic/Noun.demonst.csv ... 120

reading /usr/share/mecab/dic/ipadic/Postp.csv ... 146

reading /usr/share/mecab/dic/ipadic/Prefix.csv ... 221

reading /usr/share/mecab/dic/ipadic/Noun.adverbal.csv ... 795

reading /usr/share/mecab/dic/ipadic/Symbol.csv ... 208

reading /usr/share/mecab/dic/ipadic/Noun.others.csv ... 151

reading /usr/share/mecab/dic/ipadic/Noun.proper.csv ... 27328

reading /usr/share/mecab/dic/ipadic/Noun.nai.csv ... 42

reading /usr/share/mecab/dic/ipadic/Adnominal.csv ... 135

reading /usr/share/mecab/dic/ipadic/Postp-col.csv ... 91

reading /usr/share/mecab/dic/ipadic/Conjunction.csv ... 171

reading /usr/share/mecab/dic/ipadic/Noun.name.csv ... 34202

reading /usr/share/mecab/dic/ipadic/Noun.place.csv ... 72999

reading /usr/share/mecab/dic/ipadic/Others.csv ... 2

emitting double-array: 100% |###########################################|

reading /usr/share/mecab/dic/ipadic/matrix.def ... 1316x1316

emitting matrix      : 100% |###########################################|


done!

update-alternatives: using /var/lib/mecab/dic/ipadic-utf8 to provide /var/lib/mecab/dic/debian (mecab-dictionary) in auto mode

Setting up libhtml-parser-perl (3.72-5) ...

Setting up libhttp-message-perl (6.22-1) ...

Setting up mysql-server-8.0 (8.0.23-0ubuntu0.20.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)

mysqld will log errors to /var/log/mysql/error.log

mysqld is running as pid 1325

Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service → /lib/systemd/system/mysql.service.

Setting up libcgi-pm-perl (4.46-1) ...

Setting up libhtml-template-perl (2.97-1) ...

Setting up mysql-server (8.0.23-0ubuntu0.20.04.1) ...

Setting up libcgi-fast-perl (1:2.15-1) ...

Processing triggers for systemd (245.4-4ubuntu3.6) ...

Processing triggers for man-db (2.9.1-1) ...

Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

root@visurati:/home/ubuntu#

---

systemctl status mysql

---

root@visurati:/home/ubuntu# systemctl status mysql

● mysql.service - MySQL Community Server

     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)

     Active: active (running) since Tue 2021-04-20 20:33:18 UTC; 1min 23s ago

   Main PID: 1556 (mysqld)

     Status: "Server is operational"

      Tasks: 37 (limit: 1160)

     Memory: 331.4M

     CGroup: /system.slice/mysql.service

             └─1556 /usr/sbin/mysqld


Apr 20 20:33:17 visurati.it systemd[1]: Starting MySQL Community Server...

Apr 20 20:33:18 visurati.it systemd[1]: Started MySQL Community Server.

root@visurati:/home/ubuntu#

---

mysql_secure_installation

---

root@visurati:/home/ubuntu# mysql_secure_installation


Securing the MySQL server deployment.


Connecting to MySQL using a blank password.


VALIDATE PASSWORD COMPONENT 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 component?


Press y|Y for Yes, any other key for No: No

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) : Y

Success.


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@visurati:/home/ubuntu#

---

mysql -u root -p

---

root@visurati:/home/ubuntu# mysql -u root -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 13

Server version: 8.0.23-0ubuntu0.20.04.1 (Ubuntu)


Copyright (c) 2000, 2021, Oracle and/or its affiliates.


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 vis DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

CREATE USER 'visuser'@'%' IDENTIFIED WITH mysql_native_password BY '******';

GRANT ALL ON vis.* TO 'visuser'@'%';

FLUSH PRIVILEGES;

EXIT;

---

apt install php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip

apt-get install php-mysql

service mysql restart

service mysql status

---

root@visurati:/home/ubuntu# apt install php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libonig5 libtiff5 libwebp6 libxmlrpc-epi0 libxpm4 libzip5 php-common

  php7.4-common php7.4-curl php7.4-gd php7.4-intl php7.4-mbstring php7.4-soap php7.4-xml php7.4-xmlrpc php7.4-zip

Suggested packages:

  libgd-tools

The following NEW packages will be installed:

  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libonig5 libtiff5 libwebp6 libxmlrpc-epi0 libxpm4 libzip5 php-common

  php-curl php-gd php-intl php-mbstring php-soap php-xml php-xmlrpc php-zip php7.4-common php7.4-curl php7.4-gd php7.4-intl php7.4-mbstring php7.4-soap php7.4-xml

  php7.4-xmlrpc php7.4-zip

0 upgraded, 31 newly installed, 0 to remove and 0 not upgraded.

Need to get 3884 kB of archives.

After this operation, 17.2 MB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Get:1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 fonts-dejavu-core all 2.37-1 [1041 kB]

Get:2 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 fontconfig-config all 2.13.1-2ubuntu3 [28.8 kB]

Get:3 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libfontconfig1 amd64 2.13.1-2ubuntu3 [114 kB]

Get:4 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 libjpeg-turbo8 amd64 2.0.3-0ubuntu1.20.04.1 [117 kB]

Get:5 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libjpeg8 amd64 8c-2ubuntu8 [2194 B]

Get:6 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libjbig0 amd64 2.1-3.1build1 [26.7 kB]

Get:7 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libwebp6 amd64 0.6.1-2 [185 kB]

Get:8 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 libtiff5 amd64 4.1.0+git191117-2ubuntu0.20.04.1 [162 kB]

Get:9 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libxpm4 amd64 1:3.5.12-1 [34.0 kB]

Get:10 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libgd3 amd64 2.2.5-5.2ubuntu2 [118 kB]

Get:11 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libonig5 amd64 6.9.4-1 [142 kB]

Get:12 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libzip5 amd64 1.5.1-0ubuntu1 [46.7 kB]

Get:13 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 php-common all 2:75 [11.9 kB]

Get:14 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-common amd64 7.4.3-4ubuntu2.4 [979 kB]

Get:15 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-curl amd64 7.4.3-4ubuntu2.4 [31.0 kB]

Get:16 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 php-curl all 2:7.4+75 [2000 B]

Get:17 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-gd amd64 7.4.3-4ubuntu2.4 [28.0 kB]

Get:18 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 php-gd all 2:7.4+75 [2000 B]

Get:19 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-intl amd64 7.4.3-4ubuntu2.4 [126 kB]

Get:20 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 php-intl all 2:7.4+75 [2012 B]

Get:21 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-mbstring amd64 7.4.3-4ubuntu2.4 [397 kB]

Get:22 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 php-mbstring all 2:7.4+75 [2012 B]

Get:23 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-soap amd64 7.4.3-4ubuntu2.4 [115 kB]

Get:24 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 php-soap all 2:7.4+75 [2004 B]

Get:25 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-xml amd64 7.4.3-4ubuntu2.4 [97.6 kB]

Get:26 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 php-xml all 2:7.4+75 [2028 B]

Get:27 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libxmlrpc-epi0 amd64 0.54.2-1.2 [30.5 kB]

Get:28 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-xmlrpc amd64 7.4.3-4ubuntu2.4 [13.0 kB]

Get:29 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 php-xmlrpc all 2:7.4+75 [2008 B]

Get:30 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-zip amd64 7.4.3-4ubuntu2.4 [21.5 kB]

Get:31 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 php-zip all 2:7.4+75 [1996 B]

Fetched 3884 kB in 0s (24.7 MB/s)

Extracting templates from packages: 100%

Selecting previously unselected package fonts-dejavu-core.

(Reading database ... 88580 files and directories currently installed.)

Preparing to unpack .../00-fonts-dejavu-core_2.37-1_all.deb ...

Unpacking fonts-dejavu-core (2.37-1) ...

Selecting previously unselected package fontconfig-config.

Preparing to unpack .../01-fontconfig-config_2.13.1-2ubuntu3_all.deb ...

Unpacking fontconfig-config (2.13.1-2ubuntu3) ...

Selecting previously unselected package libfontconfig1:amd64.

Preparing to unpack .../02-libfontconfig1_2.13.1-2ubuntu3_amd64.deb ...

Unpacking libfontconfig1:amd64 (2.13.1-2ubuntu3) ...

Selecting previously unselected package libjpeg-turbo8:amd64.

Preparing to unpack .../03-libjpeg-turbo8_2.0.3-0ubuntu1.20.04.1_amd64.deb ...

Unpacking libjpeg-turbo8:amd64 (2.0.3-0ubuntu1.20.04.1) ...

Selecting previously unselected package libjpeg8:amd64.

Preparing to unpack .../04-libjpeg8_8c-2ubuntu8_amd64.deb ...

Unpacking libjpeg8:amd64 (8c-2ubuntu8) ...

Selecting previously unselected package libjbig0:amd64.

Preparing to unpack .../05-libjbig0_2.1-3.1build1_amd64.deb ...

Unpacking libjbig0:amd64 (2.1-3.1build1) ...

Selecting previously unselected package libwebp6:amd64.

Preparing to unpack .../06-libwebp6_0.6.1-2_amd64.deb ...

Unpacking libwebp6:amd64 (0.6.1-2) ...

Selecting previously unselected package libtiff5:amd64.

Preparing to unpack .../07-libtiff5_4.1.0+git191117-2ubuntu0.20.04.1_amd64.deb ...

Unpacking libtiff5:amd64 (4.1.0+git191117-2ubuntu0.20.04.1) ...

Selecting previously unselected package libxpm4:amd64.

Preparing to unpack .../08-libxpm4_1%3a3.5.12-1_amd64.deb ...

Unpacking libxpm4:amd64 (1:3.5.12-1) ...

Selecting previously unselected package libgd3:amd64.

Preparing to unpack .../09-libgd3_2.2.5-5.2ubuntu2_amd64.deb ...

Unpacking libgd3:amd64 (2.2.5-5.2ubuntu2) ...

Selecting previously unselected package libonig5:amd64.

Preparing to unpack .../10-libonig5_6.9.4-1_amd64.deb ...

Unpacking libonig5:amd64 (6.9.4-1) ...

Selecting previously unselected package libzip5:amd64.

Preparing to unpack .../11-libzip5_1.5.1-0ubuntu1_amd64.deb ...

Unpacking libzip5:amd64 (1.5.1-0ubuntu1) ...

Selecting previously unselected package php-common.

Preparing to unpack .../12-php-common_2%3a75_all.deb ...

Unpacking php-common (2:75) ...

Selecting previously unselected package php7.4-common.

Preparing to unpack .../13-php7.4-common_7.4.3-4ubuntu2.4_amd64.deb ...

Unpacking php7.4-common (7.4.3-4ubuntu2.4) ...

Selecting previously unselected package php7.4-curl.

Preparing to unpack .../14-php7.4-curl_7.4.3-4ubuntu2.4_amd64.deb ...

Unpacking php7.4-curl (7.4.3-4ubuntu2.4) ...

Selecting previously unselected package php-curl.

Preparing to unpack .../15-php-curl_2%3a7.4+75_all.deb ...

Unpacking php-curl (2:7.4+75) ...

Selecting previously unselected package php7.4-gd.

Preparing to unpack .../16-php7.4-gd_7.4.3-4ubuntu2.4_amd64.deb ...

Unpacking php7.4-gd (7.4.3-4ubuntu2.4) ...

Selecting previously unselected package php-gd.

Preparing to unpack .../17-php-gd_2%3a7.4+75_all.deb ...

Unpacking php-gd (2:7.4+75) ...

Selecting previously unselected package php7.4-intl.

Preparing to unpack .../18-php7.4-intl_7.4.3-4ubuntu2.4_amd64.deb ...

Unpacking php7.4-intl (7.4.3-4ubuntu2.4) ...

Selecting previously unselected package php-intl.

Preparing to unpack .../19-php-intl_2%3a7.4+75_all.deb ...

Unpacking php-intl (2:7.4+75) ...

Selecting previously unselected package php7.4-mbstring.

Preparing to unpack .../20-php7.4-mbstring_7.4.3-4ubuntu2.4_amd64.deb ...

Unpacking php7.4-mbstring (7.4.3-4ubuntu2.4) ...

Selecting previously unselected package php-mbstring.

Preparing to unpack .../21-php-mbstring_2%3a7.4+75_all.deb ...

Unpacking php-mbstring (2:7.4+75) ...

Selecting previously unselected package php7.4-soap.

Preparing to unpack .../22-php7.4-soap_7.4.3-4ubuntu2.4_amd64.deb ...

Unpacking php7.4-soap (7.4.3-4ubuntu2.4) ...

Selecting previously unselected package php-soap.

Preparing to unpack .../23-php-soap_2%3a7.4+75_all.deb ...

Unpacking php-soap (2:7.4+75) ...

Selecting previously unselected package php7.4-xml.

Preparing to unpack .../24-php7.4-xml_7.4.3-4ubuntu2.4_amd64.deb ...

Unpacking php7.4-xml (7.4.3-4ubuntu2.4) ...

Selecting previously unselected package php-xml.

Preparing to unpack .../25-php-xml_2%3a7.4+75_all.deb ...

Unpacking php-xml (2:7.4+75) ...

Selecting previously unselected package libxmlrpc-epi0:amd64.

Preparing to unpack .../26-libxmlrpc-epi0_0.54.2-1.2_amd64.deb ...

Unpacking libxmlrpc-epi0:amd64 (0.54.2-1.2) ...

Selecting previously unselected package php7.4-xmlrpc.

Preparing to unpack .../27-php7.4-xmlrpc_7.4.3-4ubuntu2.4_amd64.deb ...

Unpacking php7.4-xmlrpc (7.4.3-4ubuntu2.4) ...

Selecting previously unselected package php-xmlrpc.

Preparing to unpack .../28-php-xmlrpc_2%3a7.4+75_all.deb ...

Unpacking php-xmlrpc (2:7.4+75) ...

Selecting previously unselected package php7.4-zip.

Preparing to unpack .../29-php7.4-zip_7.4.3-4ubuntu2.4_amd64.deb ...

Unpacking php7.4-zip (7.4.3-4ubuntu2.4) ...

Selecting previously unselected package php-zip.

Preparing to unpack .../30-php-zip_2%3a7.4+75_all.deb ...

Unpacking php-zip (2:7.4+75) ...

Setting up php-common (2:75) ...

Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.

Setting up php7.4-common (7.4.3-4ubuntu2.4) ...


Creating config file /etc/php/7.4/mods-available/calendar.ini with new version


Creating config file /etc/php/7.4/mods-available/ctype.ini with new version


Creating config file /etc/php/7.4/mods-available/exif.ini with new version


Creating config file /etc/php/7.4/mods-available/fileinfo.ini with new version


Creating config file /etc/php/7.4/mods-available/ffi.ini with new version


Creating config file /etc/php/7.4/mods-available/ftp.ini with new version


Creating config file /etc/php/7.4/mods-available/gettext.ini with new version


Creating config file /etc/php/7.4/mods-available/iconv.ini with new version


Creating config file /etc/php/7.4/mods-available/pdo.ini with new version


Creating config file /etc/php/7.4/mods-available/phar.ini with new version


Creating config file /etc/php/7.4/mods-available/posix.ini with new version


Creating config file /etc/php/7.4/mods-available/shmop.ini with new version


Creating config file /etc/php/7.4/mods-available/sockets.ini with new version


Creating config file /etc/php/7.4/mods-available/sysvmsg.ini with new version


Creating config file /etc/php/7.4/mods-available/sysvsem.ini with new version


Creating config file /etc/php/7.4/mods-available/sysvshm.ini with new version


Creating config file /etc/php/7.4/mods-available/tokenizer.ini with new version

Setting up libxpm4:amd64 (1:3.5.12-1) ...

Setting up php7.4-curl (7.4.3-4ubuntu2.4) ...


Creating config file /etc/php/7.4/mods-available/curl.ini with new version

Setting up libzip5:amd64 (1.5.1-0ubuntu1) ...

Setting up libxmlrpc-epi0:amd64 (0.54.2-1.2) ...

Setting up libjbig0:amd64 (2.1-3.1build1) ...

Setting up php7.4-intl (7.4.3-4ubuntu2.4) ...


Creating config file /etc/php/7.4/mods-available/intl.ini with new version

Setting up php-intl (2:7.4+75) ...

Setting up php7.4-zip (7.4.3-4ubuntu2.4) ...


Creating config file /etc/php/7.4/mods-available/zip.ini with new version

Setting up libwebp6:amd64 (0.6.1-2) ...

Setting up fonts-dejavu-core (2.37-1) ...

Setting up libjpeg-turbo8:amd64 (2.0.3-0ubuntu1.20.04.1) ...

Setting up php-zip (2:7.4+75) ...

Setting up php7.4-soap (7.4.3-4ubuntu2.4) ...


Creating config file /etc/php/7.4/mods-available/soap.ini with new version

Setting up libonig5:amd64 (6.9.4-1) ...

Setting up libjpeg8:amd64 (8c-2ubuntu8) ...

Setting up php-curl (2:7.4+75) ...

Setting up php7.4-xml (7.4.3-4ubuntu2.4) ...


Creating config file /etc/php/7.4/mods-available/dom.ini with new version


Creating config file /etc/php/7.4/mods-available/simplexml.ini with new version


Creating config file /etc/php/7.4/mods-available/xml.ini with new version


Creating config file /etc/php/7.4/mods-available/xmlreader.ini with new version


Creating config file /etc/php/7.4/mods-available/xmlwriter.ini with new version


Creating config file /etc/php/7.4/mods-available/xsl.ini with new version

Setting up php7.4-xmlrpc (7.4.3-4ubuntu2.4) ...


Creating config file /etc/php/7.4/mods-available/xmlrpc.ini with new version

Setting up fontconfig-config (2.13.1-2ubuntu3) ...

Setting up php7.4-mbstring (7.4.3-4ubuntu2.4) ...


Creating config file /etc/php/7.4/mods-available/mbstring.ini with new version

Setting up php-soap (2:7.4+75) ...

Setting up php-mbstring (2:7.4+75) ...

Setting up php-xmlrpc (2:7.4+75) ...

Setting up libtiff5:amd64 (4.1.0+git191117-2ubuntu0.20.04.1) ...

Setting up libfontconfig1:amd64 (2.13.1-2ubuntu3) ...

Setting up php-xml (2:7.4+75) ...

Setting up libgd3:amd64 (2.2.5-5.2ubuntu2) ...

Setting up php7.4-gd (7.4.3-4ubuntu2.4) ...


Creating config file /etc/php/7.4/mods-available/gd.ini with new version

Setting up php-gd (2:7.4+75) ...

Processing triggers for man-db (2.9.1-1) ...

Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

root@visurati:/home/ubuntu#

apt install php7.4-cli

apt-get install libapache2-mod-php7.4

---

apt install apache2

---

root@visurati:/home/ubuntu# apt install apache2

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libjansson4 liblua5.2-0 ssl-cert

Suggested packages:

  apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser openssl-blacklist

The following NEW packages will be installed:

  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libjansson4 liblua5.2-0 ssl-cert

0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.

Need to get 1865 kB of archives.

After this operation, 8080 kB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Get:1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libapr1 amd64 1.6.5-1ubuntu1 [91.4 kB]

Get:2 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1 amd64 1.6.1-4ubuntu2 [84.7 kB]

Get:3 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-4ubuntu2 [10.5 kB]

Get:4 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1-ldap amd64 1.6.1-4ubuntu2 [8736 B]

Get:5 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libjansson4 amd64 2.12-1build1 [28.9 kB]

Get:6 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 liblua5.2-0 amd64 5.2.4-1.1build3 [106 kB]

Get:7 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-bin amd64 2.4.41-4ubuntu3.1 [1180 kB]

Get:8 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-data all 2.4.41-4ubuntu3.1 [158 kB]

Get:9 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-utils amd64 2.4.41-4ubuntu3.1 [83.8 kB]

Get:10 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2 amd64 2.4.41-4ubuntu3.1 [95.5 kB]

Get:11 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 ssl-cert all 1.0.39 [17.0 kB]

Fetched 1865 kB in 0s (28.2 MB/s)

Preconfiguring packages ...

Selecting previously unselected package libapr1:amd64.

(Reading database ... 88926 files and directories currently installed.)

Preparing to unpack .../00-libapr1_1.6.5-1ubuntu1_amd64.deb ...

Unpacking libapr1:amd64 (1.6.5-1ubuntu1) ...

Selecting previously unselected package libaprutil1:amd64.

Preparing to unpack .../01-libaprutil1_1.6.1-4ubuntu2_amd64.deb ...

Unpacking libaprutil1:amd64 (1.6.1-4ubuntu2) ...

Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.

Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.6.1-4ubuntu2_amd64.deb ...

Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-4ubuntu2) ...

Selecting previously unselected package libaprutil1-ldap:amd64.

Preparing to unpack .../03-libaprutil1-ldap_1.6.1-4ubuntu2_amd64.deb ...

Unpacking libaprutil1-ldap:amd64 (1.6.1-4ubuntu2) ...

Selecting previously unselected package libjansson4:amd64.

Preparing to unpack .../04-libjansson4_2.12-1build1_amd64.deb ...

Unpacking libjansson4:amd64 (2.12-1build1) ...

Selecting previously unselected package liblua5.2-0:amd64.

Preparing to unpack .../05-liblua5.2-0_5.2.4-1.1build3_amd64.deb ...

Unpacking liblua5.2-0:amd64 (5.2.4-1.1build3) ...

Selecting previously unselected package apache2-bin.

Preparing to unpack .../06-apache2-bin_2.4.41-4ubuntu3.1_amd64.deb ...

Unpacking apache2-bin (2.4.41-4ubuntu3.1) ...

Selecting previously unselected package apache2-data.

Preparing to unpack .../07-apache2-data_2.4.41-4ubuntu3.1_all.deb ...

Unpacking apache2-data (2.4.41-4ubuntu3.1) ...

Selecting previously unselected package apache2-utils.

Preparing to unpack .../08-apache2-utils_2.4.41-4ubuntu3.1_amd64.deb ...

Unpacking apache2-utils (2.4.41-4ubuntu3.1) ...

Selecting previously unselected package apache2.

Preparing to unpack .../09-apache2_2.4.41-4ubuntu3.1_amd64.deb ...

Unpacking apache2 (2.4.41-4ubuntu3.1) ...

Selecting previously unselected package ssl-cert.

Preparing to unpack .../10-ssl-cert_1.0.39_all.deb ...

Unpacking ssl-cert (1.0.39) ...

Setting up libapr1:amd64 (1.6.5-1ubuntu1) ...

Setting up libjansson4:amd64 (2.12-1build1) ...

Setting up ssl-cert (1.0.39) ...

Setting up liblua5.2-0:amd64 (5.2.4-1.1build3) ...

Setting up apache2-data (2.4.41-4ubuntu3.1) ...

Setting up libaprutil1:amd64 (1.6.1-4ubuntu2) ...

Setting up libaprutil1-ldap:amd64 (1.6.1-4ubuntu2) ...

Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-4ubuntu2) ...

Setting up apache2-utils (2.4.41-4ubuntu3.1) ...

Setting up apache2-bin (2.4.41-4ubuntu3.1) ...

Setting up apache2 (2.4.41-4ubuntu3.1) ...

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.

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.

Processing triggers for ufw (0.36-6) ...

Processing triggers for systemd (245.4-4ubuntu3.6) ...

Processing triggers for man-db (2.9.1-1) ...

Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

root@visurati:/home/ubuntu#

---

ufw app list

---

root@visurati:/home/ubuntu# ufw app list

Available applications:

  Apache

  Apache Full

  Apache Secure

  OpenSSH

root@visurati:/home/ubuntu#

---

ufw default allow outgoing

ufw default deny incoming

ufw allow 'Apache'

ufw allow 'ssh'

ufw allow 'https'

ufw enable

ufw status

---

root@visurati:/home/ubuntu# ufw status

Status: active


To                         Action      From

--                         ------      ----

Apache                     ALLOW       Anywhere

22/tcp                     ALLOW       Anywhere

443/tcp                    ALLOW       Anywhere

Apache (v6)                ALLOW       Anywhere (v6)

22/tcp (v6)                ALLOW       Anywhere (v6)

443/tcp (v6)               ALLOW       Anywhere (v6)


root@visurati:/home/ubuntu#

---

a2enmod rewrite

a2enmod headers

a2enmod env

a2enmod dir

a2enmod mime

a2enmod php7.4

a2enmod ssl

apache2ctl configtest

service apache2 restart

service apache2 status

---

root@visurati:/home/ubuntu# systemctl status apache2

● apache2.service - The Apache HTTP Server

     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)

     Active: active (running) since Tue 2021-04-20 20:55:01 UTC; 9min ago

       Docs: https://httpd.apache.org/docs/2.4/

   Main PID: 6605 (apache2)

      Tasks: 55 (limit: 1160)

     Memory: 5.4M

     CGroup: /system.slice/apache2.service

             ├─6605 /usr/sbin/apache2 -k start

             ├─6607 /usr/sbin/apache2 -k start

             └─6608 /usr/sbin/apache2 -k start


Apr 20 20:55:01 visurati.it systemd[1]: Starting The Apache HTTP Server...

Apr 20 20:55:01 visurati.it systemd[1]: Started The Apache HTTP Server.

root@visurati:/home/ubuntu# systemctl restart apache2

root@visurati:/home/ubuntu# systemctl status apache2

● apache2.service - The Apache HTTP Server

     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)

     Active: active (running) since Tue 2021-04-20 21:05:56 UTC; 15s ago

       Docs: https://httpd.apache.org/docs/2.4/

    Process: 7356 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)

   Main PID: 7372 (apache2)

      Tasks: 55 (limit: 1160)

     Memory: 5.1M

     CGroup: /system.slice/apache2.service

             ├─7372 /usr/sbin/apache2 -k start

             ├─7373 /usr/sbin/apache2 -k start

             └─7374 /usr/sbin/apache2 -k start


Apr 20 21:05:56 visurati.it systemd[1]: Starting The Apache HTTP Server...

Apr 20 21:05:56 visurati.it systemd[1]: Started The Apache HTTP Server.

root@visurati:/home/ubuntu#

---

cd /etc/apache2/sites-available/

ls

cd /tmp

curl -O https://wordpress.org/latest.tar.gz

---

root@visurati:/tmp# curl -O https://wordpress.org/latest.tar.gz

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 15.0M  100 15.0M    0     0  15.7M      0 --:--:-- --:--:-- --:--:-- 15.7M

root@visurati:/tmp#

---

cd /tmp/

tar xzvf latest.tar.gz

cp -R /tmp/wordpress/* /var/www/html/

chown -R www-data:www-data /var/www/html

chmod -R 755 /var/www/html

service apache2 restart

cd /var/www/html/

cp wp-config-sample.php wp-config.php

vi wp-config.php

..............define( 'DB_NAME', 'vis' );

..............define( 'DB_USER', 'visuser' );

..............define( 'DB_PASSWORD', '***************' );

..............wq

---

snap install --classic certbot

---

root@visurati:/var/www/html# service apache2 restart

root@visurati:/var/www/html# snap install --classic certbot

certbot 1.14.0 from Certbot Project (certbot-eff✓) installed

root@visurati:/var/www/html#

---

certbot --apache

---

root@visurati:/var/www/html# certbot --apache

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Plugins selected: Authenticator apache, Installer apache

Enter email address (used for urgent renewal and security notices)

 (Enter 'c' to cancel): errichiellov@gmail.com


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Please read the Terms of Service at

https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must

agree in order to register with the ACME server. Do you agree?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(Y)es/(N)o: Y


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Would you be willing, once your first certificate is successfully issued, to

share your email address with the Electronic Frontier Foundation, a founding

partner of the Let's Encrypt project and the non-profit organization that

develops Certbot? We'd like to send you email about our work encrypting the web,

EFF news, campaigns, and ways to support digital freedom.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(Y)es/(N)o: Y

Account registered.

No names were found in your configuration files. Please enter in your domain

name(s) (comma and/or space separated)  (Enter 'c' to cancel): www.visurati.it

Requesting a certificate for www.visurati.it

Performing the following challenges:

http-01 challenge for www.visurati.it

Waiting for verification...

Cleaning up challenges

Created an SSL vhost at /etc/apache2/sites-available/000-default-le-ssl.conf

Deploying Certificate to VirtualHost /etc/apache2/sites-available/000-default-le-ssl.conf

Enabling available site: /etc/apache2/sites-available/000-default-le-ssl.conf

Redirecting vhost in /etc/apache2/sites-enabled/000-default.conf to ssl vhost in /etc/apache2/sites-available/000-default-le-ssl.conf


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Congratulations! You have successfully enabled https://www.visurati.it

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Subscribe to the EFF mailing list (email: errichiellov@gmail.com).


IMPORTANT NOTES:

 - Congratulations! Your certificate and chain have been saved at:

   /etc/letsencrypt/live/www.visurati.it/fullchain.pem

   Your key file has been saved at:

   /etc/letsencrypt/live/www.visurati.it/privkey.pem

   Your certificate will expire on 2021-07-19. To obtain a new or

   tweaked version of this certificate in the future, simply run

   certbot again with the "certonly" option. To non-interactively

   renew *all* of your certificates, run "certbot renew"

 - If you like Certbot, please consider supporting our work by:


   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate

   Donating to EFF:                    https://eff.org/donate-le


root@visurati:/var/www/html#

---

https://www.visurati.it/wp-admin/install.php


Download TXT file:

Commenti

Post popolari in questo blog

Ubuntu Server 20.xx | Abilitare SSH-RSA con PuTTy | Video

Setup Ubuntu 20 & Kubernetes Microk8s IpV4