root@ubuntu-s-2vcpu-2gb-nyc3-01:/home/userlabs# cd ~
root@ubuntu-s-2vcpu-2gb-nyc3-01:~#
root@ubuntu-s-2vcpu-2gb-nyc3-01:~# hostnamectl set-hostname wachidlabs
root@ubuntu-s-2vcpu-2gb-nyc3-01:~# exit
exit
userlabs@ubuntu-s-2vcpu-2gb-nyc3-01:~$ sudo su
root@wachidlabs:/home/userlabs# cd ~
root@wachidlabs:~#
root@wachidlabs:~#
root@wachidlabs:~# cat /etc/*ease
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
root@wachidlabs:~#
root@wachidlabs:~# apt update && sudo apt upgrade -y
Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:2 http://mirrors.digitalocean.com/ubuntu noble InRelease
Get:3 http://mirrors.digitalocean.com/ubuntu noble-updates InRelease [126 kB]
Hit:4 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Hit:5 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Get:6 http://mirrors.digitalocean.com/ubuntu noble-backports InRelease [126 kB]
Get:7 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [7136 B]
Get:8 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [51.9 kB]
Get:9 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [212 B]
Get:10 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [208 B]
Get:11 http://mirrors.digitalocean.com/ubuntu noble-updates/main amd64 Components [132 kB]
Get:12 http://mirrors.digitalocean.com/ubuntu noble-updates/universe amd64 Components [309 kB]
Get:13 http://mirrors.digitalocean.com/ubuntu noble-updates/restricted amd64 Components [212 B]
Get:14 http://mirrors.digitalocean.com/ubuntu noble-updates/multiverse amd64 Components [940 B]
Get:15 http://mirrors.digitalocean.com/ubuntu noble-backports/main amd64 Components [208 B]
Get:16 http://mirrors.digitalocean.com/ubuntu noble-backports/universe amd64 Components [11.7 kB]
Get:17 http://mirrors.digitalocean.com/ubuntu noble-backports/restricted amd64 Components [212 B]
Get:18 http://mirrors.digitalocean.com/ubuntu noble-backports/multiverse amd64 Components [212 B]
Fetched 893 kB in 7s (126 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
python3-distupgrade ubuntu-release-upgrader-core
The following packages will be upgraded:
libopeniscsiusr open-iscsi
2 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 376 kB of archives.
After this operation, 3072 B of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/ubuntu noble-updates/main amd64 libopeniscsiusr amd64 2.1.9-3ubuntu5.2 [49.2 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu noble-updates/main amd64 open-iscsi amd64 2.1.9-3ubuntu5.2 [327 kB]
Fetched 376 kB in 0s (6060 kB/s)
Preconfiguring packages ...
(Reading database ... 106351 files and directories currently installed.)
Preparing to unpack .../libopeniscsiusr_2.1.9-3ubuntu5.2_amd64.deb ...
Unpacking libopeniscsiusr (2.1.9-3ubuntu5.2) over (2.1.9-3ubuntu5.1) ...
Preparing to unpack .../open-iscsi_2.1.9-3ubuntu5.2_amd64.deb ...
Unpacking open-iscsi (2.1.9-3ubuntu5.2) over (2.1.9-3ubuntu5.1) ...
Setting up libopeniscsiusr (2.1.9-3ubuntu5.2) ...
Setting up open-iscsi (2.1.9-3ubuntu5.2) ...
Installing new version of config file /etc/iscsi/iscsid.conf ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for initramfs-tools (0.142ubuntu25.4) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-49-generic
Scanning processes...
Scanning candidates...
Scanning linux images...
Pending kernel upgrade!
Running kernel version:
6.8.0-36-generic
Diagnostics:
The currently running kernel version is not the expected kernel version 6.8.0-49-generic.
Restarting the system to load the new kernel will not be handled automatically, so you should consider
rebooting.
Restarting services...
Service restarts being deferred:
/etc/needrestart/restart.d/dbus.service
systemctl restart [email protected]
systemctl restart [email protected]
systemctl restart systemd-logind.service
systemctl restart unattended-upgrades.service
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@wachidlabs:~#
root@wachidlabs:~# apt install -y software-properties-common lsb-release ca-certificates apt-transport-https
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
software-properties-common is already the newest version (0.99.49.1).
software-properties-common set to manually installed.
lsb-release is already the newest version (12.0-2).
lsb-release set to manually installed.
ca-certificates is already the newest version (20240203).
apt-transport-https is already the newest version (2.7.14build2).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@wachidlabs:~#
root@wachidlabs:~# add-apt-repository ppa:ondrej/php -y
PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/ondrej/php/ubuntu/
Suites: noble
Components: main
'
Description:
Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Only Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided.
Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa
You can get more information about the packages at https://deb.sury.org
BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting
CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline
or ppa:ondrej/nginx
PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/
WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:
# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Adding repository.
Hit:1 http://mirrors.digitalocean.com/ubuntu noble InRelease
Hit:2 http://mirrors.digitalocean.com/ubuntu noble-updates InRelease
Hit:3 http://mirrors.digitalocean.com/ubuntu noble-backports InRelease
Hit:4 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Hit:5 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Hit:6 http://security.ubuntu.com/ubuntu noble-security InRelease
Get:7 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease [24.4 kB]
Get:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 Packages [126 kB]
Get:9 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main Translation-en [39.0 kB]
Fetched 189 kB in 1s (146 kB/s)
Reading package lists... Done
root@wachidlabs:~#
root@wachidlabs:~#
root@wachidlabs:~# apt update
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://mirrors.digitalocean.com/ubuntu noble InRelease
Hit:3 http://mirrors.digitalocean.com/ubuntu noble-updates InRelease
Hit:4 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Hit:5 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Hit:6 http://mirrors.digitalocean.com/ubuntu noble-backports InRelease
Hit:7 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@wachidlabs:~#
root@wachidlabs:~#
root@wachidlabs:~# apt install -y php8.3 php8.3-cli php8.3-fpm php8.3-mysql php8.3-sqlite3 php8.3-pgsql php8.3-curl php8.3-mbstring php8.3-tokenizer php8.3-xml php8.3-bcmath php8.3-json php8.3-zip php8.3-intl php8.3-opcache php8.3-readline php8.3-soap php8.3-gd php8.3-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'php8.3-common' instead of 'php8.3-tokenizer'
Package php8.3-json is a virtual package provided by:
php8.3-phpdbg 8.3.14-3+ubuntu24.04.1+deb.sury.org+1
php8.3-fpm 8.3.14-3+ubuntu24.04.1+deb.sury.org+1
php8.3-cli 8.3.14-3+ubuntu24.04.1+deb.sury.org+1
php8.3-cgi 8.3.14-3+ubuntu24.04.1+deb.sury.org+1
libphp8.3-embed 8.3.14-3+ubuntu24.04.1+deb.sury.org+1
libapache2-mod-php8.3 8.3.14-3+ubuntu24.04.1+deb.sury.org+1
You should explicitly select one to install.
E: Package 'php8.3-json' has no installation candidate
root@wachidlabs:~#
root@wachidlabs:~# apt install -y php8.3 php8.3-cli php8.3-fpm php8.3-mysql php8.3-sqlite3 php8.3-pgsql php8.3-curl php8.3-mbstring php8.3-tokenizer php8.3-xml php8.3-bcmath php8.3-zip php8.3-intl php8.3-opcache php8.3-readline php8.3-soap php8.3-gd php8.3-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'php8.3-common' instead of 'php8.3-tokenizer'
The following additional packages will be installed:
debsuryorg-archive-keyring libpq5 libzip4t64 php-common
Suggested packages:
php-pear
The following NEW packages will be installed:
debsuryorg-archive-keyring libpq5 libzip4t64 php-common php8.3 php8.3-bcmath php8.3-cli php8.3-common
php8.3-curl php8.3-fpm php8.3-gd php8.3-intl php8.3-mbstring php8.3-mysql php8.3-opcache php8.3-pgsql
php8.3-readline php8.3-soap php8.3-sqlite3 php8.3-xml php8.3-zip
0 upgraded, 21 newly installed, 0 to remove and 3 not upgraded.
Need to get 6512 kB of archives.
After this operation, 27.3 MB of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/ubuntu noble-updates/main amd64 libpq5 amd64 16.6-0ubuntu0.24.04.1 [141 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu noble/universe amd64 libzip4t64 amd64 1.7.3-1.1ubuntu2 [53.6 kB]
Get:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 debsuryorg-archive-keyring all 2024.02.05+ubuntu24.04.1+deb.sury.org+1 [4332 B]
Get:4 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php-common all 2:95+ubuntu24.04.1+deb.sury.org+1 [13.2 kB]
Get:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-common amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [759 kB]
Get:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-opcache amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [373 kB]
Get:7 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-readline amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [13.4 kB]
Get:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-cli amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [1918 kB]
Get:9 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-fpm amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [1926 kB]
Get:10 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3 all 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [35.9 kB]
Get:11 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-bcmath amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [16.6 kB]
Get:12 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-curl amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [40.4 kB]
Get:13 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-gd amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [31.4 kB]
Get:14 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-intl amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [157 kB]
Get:15 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-mbstring amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [513 kB]
Get:16 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-mysql amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [127 kB]
Get:17 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-pgsql amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [62.1 kB]
Get:18 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-soap amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [135 kB]
Get:19 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-sqlite3 amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [34.2 kB]
Get:20 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-xml amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [127 kB]
Get:21 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 php8.3-zip amd64 8.3.14-3+ubuntu24.04.1+deb.sury.org+1 [29.5 kB]
Fetched 6512 kB in 2s (3403 kB/s)
Selecting previously unselected package debsuryorg-archive-keyring.
(Reading database ... 106351 files and directories currently installed.)
Preparing to unpack .../00-debsuryorg-archive-keyring_2024.02.05+ubuntu24.04.1+deb.sury.org+1_all.deb ...
Unpacking debsuryorg-archive-keyring (2024.02.05+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package libpq5:amd64.
Preparing to unpack .../01-libpq5_16.6-0ubuntu0.24.04.1_amd64.deb ...
Unpacking libpq5:amd64 (16.6-0ubuntu0.24.04.1) ...
Selecting previously unselected package libzip4t64:amd64.
Preparing to unpack .../02-libzip4t64_1.7.3-1.1ubuntu2_amd64.deb ...
Unpacking libzip4t64:amd64 (1.7.3-1.1ubuntu2) ...
Selecting previously unselected package php-common.
Preparing to unpack .../03-php-common_2%3a95+ubuntu24.04.1+deb.sury.org+1_all.deb ...
Unpacking php-common (2:95+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-common.
Preparing to unpack .../04-php8.3-common_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-common (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-opcache.
Preparing to unpack .../05-php8.3-opcache_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-opcache (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-readline.
Preparing to unpack .../06-php8.3-readline_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-readline (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-cli.
Preparing to unpack .../07-php8.3-cli_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-cli (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-fpm.
Preparing to unpack .../08-php8.3-fpm_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-fpm (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3.
Preparing to unpack .../09-php8.3_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_all.deb ...
Unpacking php8.3 (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-bcmath.
Preparing to unpack .../10-php8.3-bcmath_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-bcmath (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-curl.
Preparing to unpack .../11-php8.3-curl_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-curl (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-gd.
Preparing to unpack .../12-php8.3-gd_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-gd (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-intl.
Preparing to unpack .../13-php8.3-intl_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-intl (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-mbstring.
Preparing to unpack .../14-php8.3-mbstring_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-mbstring (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-mysql.
Preparing to unpack .../15-php8.3-mysql_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-mysql (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-pgsql.
Preparing to unpack .../16-php8.3-pgsql_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-pgsql (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-soap.
Preparing to unpack .../17-php8.3-soap_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-soap (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-sqlite3.
Preparing to unpack .../18-php8.3-sqlite3_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-sqlite3 (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-xml.
Preparing to unpack .../19-php8.3-xml_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-xml (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-zip.
Preparing to unpack .../20-php8.3-zip_8.3.14-3+ubuntu24.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-zip (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Setting up libpq5:amd64 (16.6-0ubuntu0.24.04.1) ...
Setting up libzip4t64:amd64 (1.7.3-1.1ubuntu2) ...
Setting up debsuryorg-archive-keyring (2024.02.05+ubuntu24.04.1+deb.sury.org+1) ...
Setting up php-common (2:95+ubuntu24.04.1+deb.sury.org+1) ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /usr/lib/systemd/system/phpsessionclean.timer.
Setting up php8.3-common (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/calendar.ini with new version
Creating config file /etc/php/8.3/mods-available/ctype.ini with new version
Creating config file /etc/php/8.3/mods-available/exif.ini with new version
Creating config file /etc/php/8.3/mods-available/fileinfo.ini with new version
Creating config file /etc/php/8.3/mods-available/ffi.ini with new version
Creating config file /etc/php/8.3/mods-available/ftp.ini with new version
Creating config file /etc/php/8.3/mods-available/gettext.ini with new version
Creating config file /etc/php/8.3/mods-available/iconv.ini with new version
Creating config file /etc/php/8.3/mods-available/pdo.ini with new version
Creating config file /etc/php/8.3/mods-available/phar.ini with new version
Creating config file /etc/php/8.3/mods-available/posix.ini with new version
Creating config file /etc/php/8.3/mods-available/shmop.ini with new version
Creating config file /etc/php/8.3/mods-available/sockets.ini with new version
Creating config file /etc/php/8.3/mods-available/sysvmsg.ini with new version
Creating config file /etc/php/8.3/mods-available/sysvsem.ini with new version
Creating config file /etc/php/8.3/mods-available/sysvshm.ini with new version
Creating config file /etc/php/8.3/mods-available/tokenizer.ini with new version
Setting up php8.3-zip (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/zip.ini with new version
Setting up php8.3-mysql (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/mysqlnd.ini with new version
Creating config file /etc/php/8.3/mods-available/mysqli.ini with new version
Creating config file /etc/php/8.3/mods-available/pdo_mysql.ini with new version
Setting up php8.3-sqlite3 (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/sqlite3.ini with new version
Creating config file /etc/php/8.3/mods-available/pdo_sqlite.ini with new version
Setting up php8.3-mbstring (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/mbstring.ini with new version
Setting up php8.3-readline (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/readline.ini with new version
Setting up php8.3-soap (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/soap.ini with new version
Setting up php8.3-bcmath (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/bcmath.ini with new version
Setting up php8.3-xml (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/dom.ini with new version
Creating config file /etc/php/8.3/mods-available/simplexml.ini with new version
Creating config file /etc/php/8.3/mods-available/xml.ini with new version
Creating config file /etc/php/8.3/mods-available/xmlreader.ini with new version
Creating config file /etc/php/8.3/mods-available/xmlwriter.ini with new version
Creating config file /etc/php/8.3/mods-available/xsl.ini with new version
Setting up php8.3-opcache (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/opcache.ini with new version
Setting up php8.3-gd (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/gd.ini with new version
Setting up php8.3-curl (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/curl.ini with new version
Setting up php8.3-pgsql (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/pgsql.ini with new version
Creating config file /etc/php/8.3/mods-available/pdo_pgsql.ini with new version
Setting up php8.3-intl (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/mods-available/intl.ini with new version
Setting up php8.3-cli (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
update-alternatives: using /usr/bin/php8.3 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar8.3 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar8.3 to provide /usr/bin/phar.phar (phar.phar) in auto mode
Creating config file /etc/php/8.3/cli/php.ini with new version
Setting up php8.3-fpm (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.3/fpm/php.ini with new version
Created symlink /etc/systemd/system/multi-user.target.wants/php8.3-fpm.service → /usr/lib/systemd/system/php8.3-fpm.service.
Setting up php8.3 (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for php8.3-cli (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Processing triggers for php8.3-fpm (8.3.14-3+ubuntu24.04.1+deb.sury.org+1) ...
Scanning processes...
Scanning candidates...
Scanning linux images...
Pending kernel upgrade!
Running kernel version:
6.8.0-36-generic
Diagnostics:
The currently running kernel version is not the expected kernel version 6.8.0-49-generic.
Restarting the system to load the new kernel will not be handled automatically, so you should consider
rebooting.
Restarting services...
Service restarts being deferred:
/etc/needrestart/restart.d/dbus.service
systemctl restart [email protected]
systemctl restart [email protected]
systemctl restart systemd-logind.service
systemctl restart unattended-upgrades.service
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@wachidlabs:~#
root@wachidlabs:~# php -v
PHP 8.3.14 (cli) (built: Nov 25 2024 18:07:43) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.14, Copyright (c) Zend Technologies
with Zend OPcache v8.3.14, Copyright (c), by Zend Technologies
root@wachidlabs:~#
root@wachidlabs:~# php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
random
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
root@wachidlabs:~#
root@wachidlabs:~# systemctl status apache2
Unit apache2.service could not be found.
root@wachidlabs:~#
root@wachidlabs:~# apt install apache2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1t64 libaprutil1-dbd-sqlite3 libaprutil1-ldap libaprutil1t64
liblua5.4-0 ssl-cert
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils libapr1t64 libaprutil1-dbd-sqlite3 libaprutil1-ldap
libaprutil1t64 liblua5.4-0 ssl-cert
0 upgraded, 10 newly installed, 0 to remove and 3 not upgraded.
Need to get 2084 kB of archives.
After this operation, 8094 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.digitalocean.com/ubuntu noble-updates/main amd64 libapr1t64 amd64 1.7.2-3.1ubuntu0.1 [108 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu noble/main amd64 libaprutil1t64 amd64 1.6.3-1.1ubuntu7 [91.9 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu noble/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.3-1.1ubuntu7 [11.2 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu noble/main amd64 libaprutil1-ldap amd64 1.6.3-1.1ubuntu7 [9116 B]
Get:5 http://mirrors.digitalocean.com/ubuntu noble/main amd64 liblua5.4-0 amd64 5.4.6-3build2 [166 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu noble-updates/main amd64 apache2-bin amd64 2.4.58-1ubuntu8.5 [1329 kB]
Get:7 http://mirrors.digitalocean.com/ubuntu noble-updates/main amd64 apache2-data all 2.4.58-1ubuntu8.5 [163 kB]
Get:8 http://mirrors.digitalocean.com/ubuntu noble-updates/main amd64 apache2-utils amd64 2.4.58-1ubuntu8.5 [97.1 kB]
Get:9 http://mirrors.digitalocean.com/ubuntu noble-updates/main amd64 apache2 amd64 2.4.58-1ubuntu8.5 [90.2 kB]
Get:10 http://mirrors.digitalocean.com/ubuntu noble/main amd64 ssl-cert all 1.1.2ubuntu1 [17.8 kB]
Fetched 2084 kB in 0s (4237 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libapr1t64:amd64.
(Reading database ... 106633 files and directories currently installed.)
Preparing to unpack .../0-libapr1t64_1.7.2-3.1ubuntu0.1_amd64.deb ...
Unpacking libapr1t64:amd64 (1.7.2-3.1ubuntu0.1) ...
Selecting previously unselected package libaprutil1t64:amd64.
Preparing to unpack .../1-libaprutil1t64_1.6.3-1.1ubuntu7_amd64.deb ...
Unpacking libaprutil1t64:amd64 (1.6.3-1.1ubuntu7) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../2-libaprutil1-dbd-sqlite3_1.6.3-1.1ubuntu7_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.3-1.1ubuntu7) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../3-libaprutil1-ldap_1.6.3-1.1ubuntu7_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.6.3-1.1ubuntu7) ...
Selecting previously unselected package liblua5.4-0:amd64.
Preparing to unpack .../4-liblua5.4-0_5.4.6-3build2_amd64.deb ...
Unpacking liblua5.4-0:amd64 (5.4.6-3build2) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../5-apache2-bin_2.4.58-1ubuntu8.5_amd64.deb ...
Unpacking apache2-bin (2.4.58-1ubuntu8.5) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../6-apache2-data_2.4.58-1ubuntu8.5_all.deb ...
Unpacking apache2-data (2.4.58-1ubuntu8.5) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../7-apache2-utils_2.4.58-1ubuntu8.5_amd64.deb ...
Unpacking apache2-utils (2.4.58-1ubuntu8.5) ...
Selecting previously unselected package apache2.
Preparing to unpack .../8-apache2_2.4.58-1ubuntu8.5_amd64.deb ...
Unpacking apache2 (2.4.58-1ubuntu8.5) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../9-ssl-cert_1.1.2ubuntu1_all.deb ...
Unpacking ssl-cert (1.1.2ubuntu1) ...
Setting up ssl-cert (1.1.2ubuntu1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/ssl-cert.service → /usr/lib/systemd/system/ssl-cert.service.
Setting up libapr1t64:amd64 (1.7.2-3.1ubuntu0.1) ...
Setting up liblua5.4-0:amd64 (5.4.6-3build2) ...
Setting up apache2-data (2.4.58-1ubuntu8.5) ...
Setting up libaprutil1t64:amd64 (1.6.3-1.1ubuntu7) ...
Setting up libaprutil1-ldap:amd64 (1.6.3-1.1ubuntu7) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.3-1.1ubuntu7) ...
Setting up apache2-utils (2.4.58-1ubuntu8.5) ...
Setting up apache2-bin (2.4.58-1ubuntu8.5) ...
Setting up apache2 (2.4.58-1ubuntu8.5) ...
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 → /usr/lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /usr/lib/systemd/system/apache-htcacheclean.service.
Processing triggers for ufw (0.36.2-6) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Scanning processes...
Scanning candidates...
Scanning linux images...
Pending kernel upgrade!
Running kernel version:
6.8.0-36-generic
Diagnostics:
The currently running kernel version is not the expected kernel version 6.8.0-49-generic.
Restarting the system to load the new kernel will not be handled automatically, so you should consider
rebooting.
Restarting services...
Service restarts being deferred:
/etc/needrestart/restart.d/dbus.service
systemctl restart [email protected]
systemctl restart [email protected]
systemctl restart systemd-logind.service
systemctl restart unattended-upgrades.service
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@wachidlabs:~#
root@wachidlabs:~# echo "<?php phpinfo();" | sudo tee /var/www/html/aidiva-php-info.php > /dev/null
root@wachidlabs:~#
root@wachidlabs:~# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15916 100 15916 0 0 269k 0 --:--:-- --:--:-- --:--:-- 272k
=> Downloading nvm from git to '/root/.nvm'
=> Cloning into '/root/.nvm'...
remote: Enumerating objects: 380, done.
remote: Counting objects: 100% (380/380), done.
remote: Compressing objects: 100% (323/323), done.
remote: Total 380 (delta 43), reused 178 (delta 29), pack-reused 0 (from 0)
Receiving objects: 100% (380/380), 382.75 KiB | 3.75 MiB/s, done.
Resolving deltas: 100% (43/43), done.
* (HEAD detached at FETCH_HEAD)
master
=> Compressing and cleaning up git repository
=> Appending nvm source string to /root/.bashrc
=> Appending bash_completion source string to /root/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
root@wachidlabs:~#
root@wachidlabs:~# ls -l
total 0
root@wachidlabs:~#
root@wachidlabs:~# source ~/.bashrc
root@wachidlabs:~#
root@wachidlabs:~# nvm install 20
Downloading and installing node v20.18.1...
Downloading https://nodejs.org/dist/v20.18.1/node-v20.18.1-linux-x64.tar.xz...
######################################################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v20.18.1 (npm v10.8.2)
Creating default alias: default -> 20 (-> v20.18.1)
root@wachidlabs:~#
root@wachidlabs:~# nvm use 20
Now using node v20.18.1 (npm v10.8.2)
root@wachidlabs:~#
root@wachidlabs:~# nvm alias default 20
default -> 20 (-> v20.18.1)
root@wachidlabs:~#
root@wachidlabs:~# npm install -g pm2
added 137 packages in 11s
13 packages are looking for funding
run `npm fund` for details
npm notice
npm notice New minor version of npm available! 10.8.2 -> 10.9.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.2
npm notice To update run: npm install -g [email protected]
npm notice
root@wachidlabs:~#
root@wachidlabs:~# pm2 startup systemd
-------------
__/\\\\\\\\\\\\\____/\\\\____________/\\\\____/\\\\\\\\\_____
_\/\\\/////////\\\_\/\\\\\\________/\\\\\\__/\\\///////\\\___
_\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\_\///______\//\\\__
_\/\\\\\\\\\\\\\/__\/\\\\///\\\/\\\/_\/\\\___________/\\\/___
_\/\\\/////////____\/\\\__\///\\\/___\/\\\________/\\\//_____
_\/\\\_____________\/\\\____\///_____\/\\\_____/\\\//________
_\/\\\_____________\/\\\_____________\/\\\___/\\\/___________
_\/\\\_____________\/\\\_____________\/\\\__/\\\\\\\\\\\\\\\_
_\///______________\///______________\///__\///////////////__
Runtime Edition
PM2 is a Production Process Manager for Node.js applications
with a built-in Load Balancer.
Start and Daemonize any application:
$ pm2 start app.js
Load Balance 4 instances of api.js:
$ pm2 start api.js -i 4
Monitor in production:
$ pm2 monitor
Make pm2 auto-boot at server restart:
$ pm2 startup
To go further checkout:
http://pm2.io/
-------------
[PM2] Init System found: systemd
Platform systemd
Template
[Unit]
Description=PM2 process manager
Documentation=https://pm2.keymetrics.io/
After=network.target
[Service]
Type=forking
User=root
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
Environment=PATH=/root/.nvm/versions/node/v20.18.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
Environment=PM2_HOME=/root/.pm2
PIDFile=/root/.pm2/pm2.pid
Restart=on-failure
ExecStart=/root/.nvm/versions/node/v20.18.1/lib/node_modules/pm2/bin/pm2 resurrect
ExecReload=/root/.nvm/versions/node/v20.18.1/lib/node_modules/pm2/bin/pm2 reload all
ExecStop=/root/.nvm/versions/node/v20.18.1/lib/node_modules/pm2/bin/pm2 kill
[Install]
WantedBy=multi-user.target
Target path
/etc/systemd/system/pm2-root.service
Command list
[ 'systemctl enable pm2-root' ]
[PM2] Writing init configuration in /etc/systemd/system/pm2-root.service
[PM2] Making script booting at startup...
[PM2] [-] Executing: systemctl enable pm2-root...
Created symlink /etc/systemd/system/multi-user.target.wants/pm2-root.service → /etc/systemd/system/pm2-root.service.
[PM2] [v] Command successfully executed.
+---------------------------------------+
[PM2] Freeze a process list on reboot via:
$ pm2 save
[PM2] Remove init script via:
$ pm2 unstartup systemd
root@wachidlabs:~#
root@wachidlabs:~#
root@wachidlabs:~#