Showing posts with label wordpress. Show all posts
Showing posts with label wordpress. Show all posts

Monday, 23 June 2025

Copy file dari PC server ke laptop dengan ssh

file root/nginx-sites-available-backup.tar.gz ada di PC server. saya aksesnya dengan ssh dari jauh dengan laptop saya. saya ingin file itu saya copy ke laptop saya 

 

  scp root@180.246.140.181:/root/nginx-sites-available-backup.tar.gz ~/Downloads/
root@180.246.140.181's password: 
nginx-sites-available-backup.tar.gz           100% 1924     6.8KB/s   00:00 

 

 

Wednesday, 5 October 2022

Install wordpress debian server

 angkah utama yang akan dilakukan saat meng-install WordPress di LEMP Stack Debian 10 di bawah ini:

  • Update Server
  • Install Packages
  • Install Firewall
  • Install Nginx Web Server
  • Install MariaDB Database Server
  • Install PHP 7.2
  • Configure PHP.ini
  • Create Database
  • Setting Virtual Host Nginx
  • Download WordPress
  • Testing

Kemudian simak penjelasan tentang cara instalasinya di bawah ini.

Update Server

Login sebagai root ke server dan perbarui versi server dengan perintah berikut:

$ apt-get update -y
$ reboot

 

Install Packages

Install beberapa packages yang dibutuhkan Debian 10.

 

# apt-get install wget nano perl zip unzip gnupg2 -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nano is already the newest version (3.2-3).
perl is already the newest version (5.28.1-6+deb10u1).
wget is already the newest version (1.20.1-1.1).
unzip is already the newest version (6.0-23+deb10u3).
unzip set to manually installed.
The following additional packages will be installed:
  dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client
  gpg-wks-server gpgconf gpgsm libassuan0 libksba8 libnpth0
  pinentry-curses
Suggested packages:
  pinentry-gnome3 tor parcimonie xloadimage scdaemon pinentry-doc
The following NEW packages will be installed:
  dirmngr gnupg gnupg-l10n gnupg-utils gnupg2 gpg gpg-agent
  gpg-wks-client gpg-wks-server gpgconf gpgsm libassuan0 libksba8
  libnpth0 pinentry-curses zip
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 7716 kB of archives.
After this operation, 15.9 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 libassuan0 amd64 2.5.2-1 [49.4 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 gpgconf amd64 2.2.12-1+deb10u2 [510 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 libksba8 amd64 1.3.5-2 [99.7 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 libnpth0 amd64 1.6-1 [18.4 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 dirmngr amd64 2.2.12-1+deb10u2 [712 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 gnupg-l10n all 2.2.12-1+deb10u2 [1009 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 gnupg-utils amd64 2.2.12-1+deb10u2 [861 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 gpg amd64 2.2.12-1+deb10u2 [865 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 pinentry-curses amd64 1.1.0-2 [64.5 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 gpg-agent amd64 2.2.12-1+deb10u2 [617 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 gpg-wks-client amd64 2.2.12-1+deb10u2 [485 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 gpg-wks-server amd64 2.2.12-1+deb10u2 [478 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 gpgsm amd64 2.2.12-1+deb10u2 [604 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 gnupg all 2.2.12-1+deb10u2 [715 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 gnupg2 all 2.2.12-1+deb10u2 [393 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 zip amd64 3.0-11+b1 [234 kB]
Fetched 7716 kB in 1s (7366 kB/s)
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_ADDRESS = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package libassuan0:amd64.
(Reading database ... 39462 files and directories currently installed.)
Preparing to unpack .../00-libassuan0_2.5.2-1_amd64.deb ...
Unpacking libassuan0:amd64 (2.5.2-1) ...
Selecting previously unselected package gpgconf.
Preparing to unpack .../01-gpgconf_2.2.12-1+deb10u2_amd64.deb ...
Unpacking gpgconf (2.2.12-1+deb10u2) ...
Selecting previously unselected package libksba8:amd64.
Preparing to unpack .../02-libksba8_1.3.5-2_amd64.deb ...
Unpacking libksba8:amd64 (1.3.5-2) ...
Selecting previously unselected package libnpth0:amd64.
Preparing to unpack .../03-libnpth0_1.6-1_amd64.deb ...
Unpacking libnpth0:amd64 (1.6-1) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../04-dirmngr_2.2.12-1+deb10u2_amd64.deb ...
Unpacking dirmngr (2.2.12-1+deb10u2) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../05-gnupg-l10n_2.2.12-1+deb10u2_all.deb ...
Unpacking gnupg-l10n (2.2.12-1+deb10u2) ...
Selecting previously unselected package gnupg-utils.
Preparing to unpack .../06-gnupg-utils_2.2.12-1+deb10u2_amd64.deb ...
Unpacking gnupg-utils (2.2.12-1+deb10u2) ...
Selecting previously unselected package gpg.
Preparing to unpack .../07-gpg_2.2.12-1+deb10u2_amd64.deb ...
Unpacking gpg (2.2.12-1+deb10u2) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../08-pinentry-curses_1.1.0-2_amd64.deb ...
Unpacking pinentry-curses (1.1.0-2) ...
Selecting previously unselected package gpg-agent.
Preparing to unpack .../09-gpg-agent_2.2.12-1+deb10u2_amd64.deb ...
Unpacking gpg-agent (2.2.12-1+deb10u2) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../10-gpg-wks-client_2.2.12-1+deb10u2_amd64.deb ...
Unpacking gpg-wks-client (2.2.12-1+deb10u2) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../11-gpg-wks-server_2.2.12-1+deb10u2_amd64.deb ...
Unpacking gpg-wks-server (2.2.12-1+deb10u2) ...
Selecting previously unselected package gpgsm.
Preparing to unpack .../12-gpgsm_2.2.12-1+deb10u2_amd64.deb ...
Unpacking gpgsm (2.2.12-1+deb10u2) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../13-gnupg_2.2.12-1+deb10u2_all.deb ...
Unpacking gnupg (2.2.12-1+deb10u2) ...
Selecting previously unselected package gnupg2.
Preparing to unpack .../14-gnupg2_2.2.12-1+deb10u2_all.deb ...
Unpacking gnupg2 (2.2.12-1+deb10u2) ...
Selecting previously unselected package zip.
Preparing to unpack .../15-zip_3.0-11+b1_amd64.deb ...
Unpacking zip (3.0-11+b1) ...
Setting up libksba8:amd64 (1.3.5-2) ...
Setting up libnpth0:amd64 (1.6-1) ...
Setting up libassuan0:amd64 (2.5.2-1) ...
Setting up zip (3.0-11+b1) ...
Setting up gnupg-l10n (2.2.12-1+deb10u2) ...
Setting up gpgconf (2.2.12-1+deb10u2) ...
Setting up gpg (2.2.12-1+deb10u2) ...
Setting up gnupg-utils (2.2.12-1+deb10u2) ...
Setting up pinentry-curses (1.1.0-2) ...
Setting up gpg-agent (2.2.12-1+deb10u2) ...
Setting up gpgsm (2.2.12-1+deb10u2) ...
Setting up dirmngr (2.2.12-1+deb10u2) ...
Setting up gpg-wks-server (2.2.12-1+deb10u2) ...
Setting up gpg-wks-client (2.2.12-1+deb10u2) ...
Setting up gnupg (2.2.12-1+deb10u2) ...
Setting up gnupg2 (2.2.12-1+deb10u2) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+deb10u1) ...
 

 

Install Firewall

Sebelum memulai instalasi WordPress di Debian 10, kamu perlu meng-install firewall agar lebih aman. Gunakan perintah berikut untuk menginstal CSF (ConfigServer Security & Firewall) yang digunakan pada tutorial kali ini:

 

# cd /usr/src
root@websma2:/usr/src# wget https://download.configserver.com/csf.tgz
--2022-10-05 16:14:14--  https://download.configserver.com/csf.tgz
Resolving download.configserver.com (download.configserver.com)... 94.130.90.175
Connecting to download.configserver.com (download.configserver.com)|94.130.90.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2283647 (2.2M) [application/x-gzip]
Saving to: 'csf.tgz'

csf.tgz            100%[==============>]   2.18M  1.23MB/s    in 1.8s    

2022-10-05 16:14:18 (1.23 MB/s) - 'csf.tgz' saved [2283647/2283647]

root@websma2:/usr/src# tar -xzf csf.tgz
root@websma2:/usr/src# cd csf/
root@websma2:/usr/src/csf# sh install.sh

Selecting installer...

Running csf generic installer

Installing generic csf and lfd

Check we're running as root

mkdir: created directory '/etc/csf'
'install.txt' -> '/etc/csf/install.txt'
Checking Perl modules...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_ADDRESS = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Configuration modified for Debian/Ubuntu/Gentoo settings /etc/csf/csf.conf
Configuration modified for Debian/Ubuntu/Gentoo to use legacy iptables/ip6tables
...Perl modules OK

mkdir: cannot create directory '/etc/csf': File exists
mkdir: created directory '/var/lib/csf'
mkdir: created directory '/var/lib/csf/backup'
mkdir: created directory '/var/lib/csf/Geo'
mkdir: created directory '/var/lib/csf/ui'
mkdir: created directory '/var/lib/csf/stats'
mkdir: created directory '/var/lib/csf/lock'
mkdir: created directory '/var/lib/csf/webmin'
mkdir: created directory '/var/lib/csf/zone'
mkdir: created directory '/usr/local/csf'
mkdir: created directory '/usr/local/csf/bin'
mkdir: created directory '/usr/local/csf/lib'
mkdir: created directory '/usr/local/csf/tpl'
'csf.generic.conf' -> '/etc/csf/csf.conf'
'csf.generic.allow' -> '/etc/csf/csf.allow'
'csf.deny' -> '/etc/csf/./csf.deny'
'csf.redirect' -> '/etc/csf/./csf.redirect'
'csf.resellers' -> '/etc/csf/./csf.resellers'
'csf.dirwatch' -> '/etc/csf/./csf.dirwatch'
'csf.syslogs' -> '/etc/csf/./csf.syslogs'
'csf.logfiles' -> '/etc/csf/./csf.logfiles'
'csf.logignore' -> '/etc/csf/./csf.logignore'
'csf.blocklists' -> '/etc/csf/./csf.blocklists'
'csf.generic.ignore' -> '/etc/csf/csf.ignore'
'csf.generic.pignore' -> '/etc/csf/csf.pignore'
'csf.rignore' -> '/etc/csf/./csf.rignore'
'csf.fignore' -> '/etc/csf/./csf.fignore'
'csf.signore' -> '/etc/csf/./csf.signore'
'csf.suignore' -> '/etc/csf/./csf.suignore'
'csf.uidignore' -> '/etc/csf/./csf.uidignore'
'csf.mignore' -> '/etc/csf/./csf.mignore'
'csf.sips' -> '/etc/csf/./csf.sips'
'csf.dyndns' -> '/etc/csf/./csf.dyndns'
'csf.syslogusers' -> '/etc/csf/./csf.syslogusers'
'csf.smtpauth' -> '/etc/csf/./csf.smtpauth'
'csf.rblconf' -> '/etc/csf/./csf.rblconf'
'csf.cloudflare' -> '/etc/csf/./csf.cloudflare'
'alert.txt' -> '/usr/local/csf/tpl/./alert.txt'
'reselleralert.txt' -> '/usr/local/csf/tpl/./reselleralert.txt'
'logalert.txt' -> '/usr/local/csf/tpl/./logalert.txt'
'logfloodalert.txt' -> '/usr/local/csf/tpl/./logfloodalert.txt'
'syslogalert.txt' -> '/usr/local/csf/tpl/./syslogalert.txt'
'integrityalert.txt' -> '/usr/local/csf/tpl/./integrityalert.txt'
'exploitalert.txt' -> '/usr/local/csf/tpl/./exploitalert.txt'
'queuealert.txt' -> '/usr/local/csf/tpl/./queuealert.txt'
'modsecipdbalert.txt' -> '/usr/local/csf/tpl/./modsecipdbalert.txt'
'tracking.txt' -> '/usr/local/csf/tpl/./tracking.txt'
'connectiontracking.txt' -> '/usr/local/csf/tpl/./connectiontracking.txt'
'processtracking.txt' -> '/usr/local/csf/tpl/./processtracking.txt'
'accounttracking.txt' -> '/usr/local/csf/tpl/./accounttracking.txt'
'usertracking.txt' -> '/usr/local/csf/tpl/./usertracking.txt'
'sshalert.txt' -> '/usr/local/csf/tpl/./sshalert.txt'
'webminalert.txt' -> '/usr/local/csf/tpl/./webminalert.txt'
'sualert.txt' -> '/usr/local/csf/tpl/./sualert.txt'
'sudoalert.txt' -> '/usr/local/csf/tpl/./sudoalert.txt'
'consolealert.txt' -> '/usr/local/csf/tpl/./consolealert.txt'
'uialert.txt' -> '/usr/local/csf/tpl/./uialert.txt'
'cpanelalert.txt' -> '/usr/local/csf/tpl/./cpanelalert.txt'
'scriptalert.txt' -> '/usr/local/csf/tpl/./scriptalert.txt'
'relayalert.txt' -> '/usr/local/csf/tpl/./relayalert.txt'
'filealert.txt' -> '/usr/local/csf/tpl/./filealert.txt'
'watchalert.txt' -> '/usr/local/csf/tpl/./watchalert.txt'
'loadalert.txt' -> '/usr/local/csf/tpl/./loadalert.txt'
'resalert.txt' -> '/usr/local/csf/tpl/./resalert.txt'
'portscan.txt' -> '/usr/local/csf/tpl/./portscan.txt'
'uidscan.txt' -> '/usr/local/csf/tpl/./uidscan.txt'
'permblock.txt' -> '/usr/local/csf/tpl/./permblock.txt'
'netblock.txt' -> '/usr/local/csf/tpl/./netblock.txt'
'portknocking.txt' -> '/usr/local/csf/tpl/./portknocking.txt'
'forkbombalert.txt' -> '/usr/local/csf/tpl/./forkbombalert.txt'
'recaptcha.txt' -> '/usr/local/csf/tpl/./recaptcha.txt'
'apache.main.txt' -> '/usr/local/csf/tpl/./apache.main.txt'
'apache.http.txt' -> '/usr/local/csf/tpl/./apache.http.txt'
'apache.https.txt' -> '/usr/local/csf/tpl/./apache.https.txt'
'litespeed.main.txt' -> '/usr/local/csf/tpl/./litespeed.main.txt'
'litespeed.http.txt' -> '/usr/local/csf/tpl/./litespeed.http.txt'
'litespeed.https.txt' -> '/usr/local/csf/tpl/./litespeed.https.txt'
'x-arf.txt' -> '/usr/local/csf/tpl/./x-arf.txt'
'regex.custom.pm' -> '/usr/local/csf/bin/./regex.custom.pm'
'pt_deleted_action.pl' -> '/usr/local/csf/bin/./pt_deleted_action.pl'
'messenger' -> '/etc/csf/./messenger'
'messenger/en.php' -> '/etc/csf/./messenger/en.php'
'messenger/index.html' -> '/etc/csf/./messenger/index.html'
'messenger/index.php' -> '/etc/csf/./messenger/index.php'
'messenger/index.recaptcha.html' -> '/etc/csf/./messenger/index.recaptcha.html'
'messenger/index.recaptcha.php' -> '/etc/csf/./messenger/index.recaptcha.php'
'messenger/index.text' -> '/etc/csf/./messenger/index.text'
'ui' -> '/etc/csf/./ui'
'ui/images' -> '/etc/csf/./ui/images'
'ui/images/admin_icon.svg' -> '/etc/csf/./ui/images/admin_icon.svg'
'ui/images/bootstrap' -> '/etc/csf/./ui/images/bootstrap'
'ui/images/bootstrap/css' -> '/etc/csf/./ui/images/bootstrap/css'
'ui/images/bootstrap/css/bootstrap.min.css' -> '/etc/csf/./ui/images/bootstrap/css/bootstrap.min.css'
'ui/images/bootstrap/css/bootstrap.min.css.map' -> '/etc/csf/./ui/images/bootstrap/css/bootstrap.min.css.map'
'ui/images/bootstrap/fonts' -> '/etc/csf/./ui/images/bootstrap/fonts'
'ui/images/bootstrap/fonts/glyphicons-halflings-regular.eot' -> '/etc/csf/./ui/images/bootstrap/fonts/glyphicons-halflings-regular.eot'
'ui/images/bootstrap/fonts/glyphicons-halflings-regular.svg' -> '/etc/csf/./ui/images/bootstrap/fonts/glyphicons-halflings-regular.svg'
'ui/images/bootstrap/fonts/glyphicons-halflings-regular.ttf' -> '/etc/csf/./ui/images/bootstrap/fonts/glyphicons-halflings-regular.ttf'
'ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff' -> '/etc/csf/./ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff'
'ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff2' -> '/etc/csf/./ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff2'
'ui/images/bootstrap/js' -> '/etc/csf/./ui/images/bootstrap/js'
'ui/images/bootstrap/js/bootstrap.min.js' -> '/etc/csf/./ui/images/bootstrap/js/bootstrap.min.js'
'ui/images/bootstrap-chosen.css' -> '/etc/csf/./ui/images/bootstrap-chosen.css'
'ui/images/chosen.min.css' -> '/etc/csf/./ui/images/chosen.min.css'
'ui/images/chosen.min.js' -> '/etc/csf/./ui/images/chosen.min.js'
'ui/images/chosen-sprite@2x.png' -> '/etc/csf/./ui/images/chosen-sprite@2x.png'
'ui/images/chosen-sprite.png' -> '/etc/csf/./ui/images/chosen-sprite.png'
'ui/images/configserver.css' -> '/etc/csf/./ui/images/configserver.css'
'ui/images/csf-loader.gif' -> '/etc/csf/./ui/images/csf-loader.gif'
'ui/images/csf_small.png' -> '/etc/csf/./ui/images/csf_small.png'
'ui/images/csf.svg' -> '/etc/csf/./ui/images/csf.svg'
'ui/images/jquery.min.js' -> '/etc/csf/./ui/images/jquery.min.js'
'ui/images/LICENSE.txt' -> '/etc/csf/./ui/images/LICENSE.txt'
'ui/images/loader.gif' -> '/etc/csf/./ui/images/loader.gif'
'ui/images/reseller_icon.svg' -> '/etc/csf/./ui/images/reseller_icon.svg'
'ui/server.crt' -> '/etc/csf/./ui/server.crt'
'ui/server.key' -> '/etc/csf/./ui/server.key'
'ui/ui.allow' -> '/etc/csf/./ui/ui.allow'
'ui/ui.ban' -> '/etc/csf/./ui/ui.ban'
'csfcron.sh' -> '/etc/cron.d/csf-cron'
'lfdcron.sh' -> '/etc/cron.d/lfd-cron'
'csf.pl' -> '/usr/sbin/csf'
'lfd.pl' -> '/usr/sbin/lfd'
'/etc/csf/csf.pl' -> '/usr/sbin/csf'
'/etc/csf/lfd.pl' -> '/usr/sbin/lfd'
'/etc/csf/csftest.pl' -> '/usr/local/csf/bin/csftest.pl'
'/etc/csf/pt_deleted_action.pl' -> '/usr/local/csf/bin/pt_deleted_action.pl'
'/etc/csf/remove_apf_bfd.sh' -> '/usr/local/csf/bin/remove_apf_bfd.sh'
'/etc/csf/uninstall.sh' -> '/usr/local/csf/bin/uninstall.sh'
'/etc/csf/regex.custom.pm' -> '/usr/local/csf/bin/regex.custom.pm'
'/etc/csf/webmin' -> '/usr/local/csf/lib/webmin'
'/etc/csf/alerts' -> '/usr/local/csf/tpl'
chcon: invalid context: 'system_u:object_r:bin_t:s0': No such file or directory
chcon: invalid context: 'system_u:object_r:bin_t:s0': No such file or directory
mkdir: cannot create directory 'webmin/csf/images': File exists
mkdir: cannot create directory 'ui/images': File exists
mkdir: cannot create directory 'da/images': File exists
mkdir: cannot create directory 'interworx/images': File exists
'csf/LICENSE.txt' -> 'webmin/csf/images/LICENSE.txt'
'csf/admin_icon.svg' -> 'webmin/csf/images/admin_icon.svg'
'csf/bootstrap/css/bootstrap.min.css' -> 'webmin/csf/images/bootstrap/css/bootstrap.min.css'
'csf/bootstrap/css/bootstrap.min.css.map' -> 'webmin/csf/images/bootstrap/css/bootstrap.min.css.map'
'csf/bootstrap/fonts/glyphicons-halflings-regular.eot' -> 'webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.eot'
'csf/bootstrap/fonts/glyphicons-halflings-regular.svg' -> 'webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.svg'
'csf/bootstrap/fonts/glyphicons-halflings-regular.ttf' -> 'webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.ttf'
'csf/bootstrap/fonts/glyphicons-halflings-regular.woff' -> 'webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.woff'
'csf/bootstrap/fonts/glyphicons-halflings-regular.woff2' -> 'webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.woff2'
'csf/bootstrap/js/bootstrap.min.js' -> 'webmin/csf/images/bootstrap/js/bootstrap.min.js'
'csf/bootstrap-chosen.css' -> 'webmin/csf/images/bootstrap-chosen.css'
'csf/chosen-sprite.png' -> 'webmin/csf/images/chosen-sprite.png'
'csf/chosen-sprite@2x.png' -> 'webmin/csf/images/chosen-sprite@2x.png'
'csf/chosen.min.css' -> 'webmin/csf/images/chosen.min.css'
'csf/chosen.min.js' -> 'webmin/csf/images/chosen.min.js'
'csf/configserver.css' -> 'webmin/csf/images/configserver.css'
'csf/csf-loader.gif' -> 'webmin/csf/images/csf-loader.gif'
'csf/csf.svg' -> 'webmin/csf/images/csf.svg'
'csf/csf_small.png' -> 'webmin/csf/images/csf_small.png'
'csf/jquery.min.js' -> 'webmin/csf/images/jquery.min.js'
'csf/loader.gif' -> 'webmin/csf/images/loader.gif'
'csf/reseller_icon.svg' -> 'webmin/csf/images/reseller_icon.svg'
'csf/LICENSE.txt' -> 'ui/images/LICENSE.txt'
'csf/admin_icon.svg' -> 'ui/images/admin_icon.svg'
'csf/bootstrap/css/bootstrap.min.css' -> 'ui/images/bootstrap/css/bootstrap.min.css'
'csf/bootstrap/css/bootstrap.min.css.map' -> 'ui/images/bootstrap/css/bootstrap.min.css.map'
'csf/bootstrap/fonts/glyphicons-halflings-regular.eot' -> 'ui/images/bootstrap/fonts/glyphicons-halflings-regular.eot'
'csf/bootstrap/fonts/glyphicons-halflings-regular.svg' -> 'ui/images/bootstrap/fonts/glyphicons-halflings-regular.svg'
'csf/bootstrap/fonts/glyphicons-halflings-regular.ttf' -> 'ui/images/bootstrap/fonts/glyphicons-halflings-regular.ttf'
'csf/bootstrap/fonts/glyphicons-halflings-regular.woff' -> 'ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff'
'csf/bootstrap/fonts/glyphicons-halflings-regular.woff2' -> 'ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff2'
'csf/bootstrap/js/bootstrap.min.js' -> 'ui/images/bootstrap/js/bootstrap.min.js'
'csf/bootstrap-chosen.css' -> 'ui/images/bootstrap-chosen.css'
'csf/chosen-sprite.png' -> 'ui/images/chosen-sprite.png'
'csf/chosen-sprite@2x.png' -> 'ui/images/chosen-sprite@2x.png'
'csf/chosen.min.css' -> 'ui/images/chosen.min.css'
'csf/chosen.min.js' -> 'ui/images/chosen.min.js'
'csf/configserver.css' -> 'ui/images/configserver.css'
'csf/csf-loader.gif' -> 'ui/images/csf-loader.gif'
'csf/csf.svg' -> 'ui/images/csf.svg'
'csf/csf_small.png' -> 'ui/images/csf_small.png'
'csf/jquery.min.js' -> 'ui/images/jquery.min.js'
'csf/loader.gif' -> 'ui/images/loader.gif'
'csf/reseller_icon.svg' -> 'ui/images/reseller_icon.svg'
'csf/LICENSE.txt' -> 'da/images/LICENSE.txt'
'csf/admin_icon.svg' -> 'da/images/admin_icon.svg'
'csf/bootstrap/css/bootstrap.min.css' -> 'da/images/bootstrap/css/bootstrap.min.css'
'csf/bootstrap/css/bootstrap.min.css.map' -> 'da/images/bootstrap/css/bootstrap.min.css.map'
'csf/bootstrap/fonts/glyphicons-halflings-regular.eot' -> 'da/images/bootstrap/fonts/glyphicons-halflings-regular.eot'
'csf/bootstrap/fonts/glyphicons-halflings-regular.svg' -> 'da/images/bootstrap/fonts/glyphicons-halflings-regular.svg'
'csf/bootstrap/fonts/glyphicons-halflings-regular.ttf' -> 'da/images/bootstrap/fonts/glyphicons-halflings-regular.ttf'
'csf/bootstrap/fonts/glyphicons-halflings-regular.woff' -> 'da/images/bootstrap/fonts/glyphicons-halflings-regular.woff'
'csf/bootstrap/fonts/glyphicons-halflings-regular.woff2' -> 'da/images/bootstrap/fonts/glyphicons-halflings-regular.woff2'
'csf/bootstrap/js/bootstrap.min.js' -> 'da/images/bootstrap/js/bootstrap.min.js'
'csf/bootstrap-chosen.css' -> 'da/images/bootstrap-chosen.css'
'csf/chosen-sprite.png' -> 'da/images/chosen-sprite.png'
'csf/chosen-sprite@2x.png' -> 'da/images/chosen-sprite@2x.png'
'csf/chosen.min.css' -> 'da/images/chosen.min.css'
'csf/chosen.min.js' -> 'da/images/chosen.min.js'
'csf/configserver.css' -> 'da/images/configserver.css'
'csf/csf-loader.gif' -> 'da/images/csf-loader.gif'
'csf/csf.svg' -> 'da/images/csf.svg'
'csf/csf_small.png' -> 'da/images/csf_small.png'
'csf/jquery.min.js' -> 'da/images/jquery.min.js'
'csf/loader.gif' -> 'da/images/loader.gif'
'csf/reseller_icon.svg' -> 'da/images/reseller_icon.svg'
'csf/LICENSE.txt' -> 'interworx/images/LICENSE.txt'
'csf/admin_icon.svg' -> 'interworx/images/admin_icon.svg'
'csf/bootstrap/css/bootstrap.min.css' -> 'interworx/images/bootstrap/css/bootstrap.min.css'
'csf/bootstrap/css/bootstrap.min.css.map' -> 'interworx/images/bootstrap/css/bootstrap.min.css.map'
'csf/bootstrap/fonts/glyphicons-halflings-regular.eot' -> 'interworx/images/bootstrap/fonts/glyphicons-halflings-regular.eot'
'csf/bootstrap/fonts/glyphicons-halflings-regular.svg' -> 'interworx/images/bootstrap/fonts/glyphicons-halflings-regular.svg'
'csf/bootstrap/fonts/glyphicons-halflings-regular.ttf' -> 'interworx/images/bootstrap/fonts/glyphicons-halflings-regular.ttf'
'csf/bootstrap/fonts/glyphicons-halflings-regular.woff' -> 'interworx/images/bootstrap/fonts/glyphicons-halflings-regular.woff'
'csf/bootstrap/fonts/glyphicons-halflings-regular.woff2' -> 'interworx/images/bootstrap/fonts/glyphicons-halflings-regular.woff2'
'csf/bootstrap/js/bootstrap.min.js' -> 'interworx/images/bootstrap/js/bootstrap.min.js'
'csf/bootstrap-chosen.css' -> 'interworx/images/bootstrap-chosen.css'
'csf/chosen-sprite.png' -> 'interworx/images/chosen-sprite.png'
'csf/chosen-sprite@2x.png' -> 'interworx/images/chosen-sprite@2x.png'
'csf/chosen.min.css' -> 'interworx/images/chosen.min.css'
'csf/chosen.min.js' -> 'interworx/images/chosen.min.js'
'csf/configserver.css' -> 'interworx/images/configserver.css'
'csf/csf-loader.gif' -> 'interworx/images/csf-loader.gif'
'csf/csf.svg' -> 'interworx/images/csf.svg'
'csf/csf_small.png' -> 'interworx/images/csf_small.png'
'csf/jquery.min.js' -> 'interworx/images/jquery.min.js'
'csf/loader.gif' -> 'interworx/images/loader.gif'
'csf/reseller_icon.svg' -> 'interworx/images/reseller_icon.svg'
'messenger/en.php' -> '/etc/csf/messenger/en.php'
'messenger/index.php' -> '/etc/csf/messenger/index.php'
'messenger/index.recaptcha.php' -> '/etc/csf/messenger/index.recaptcha.php'
'uninstall.generic.sh' -> '/usr/local/csf/bin/uninstall.sh'
'csftest.pl' -> '/usr/local/csf/bin/csftest.pl'
'remove_apf_bfd.sh' -> '/usr/local/csf/bin/remove_apf_bfd.sh'
'readme.txt' -> '/etc/csf/readme.txt'
'sanity.txt' -> '/usr/local/csf/lib/sanity.txt'
'csf.rbls' -> '/usr/local/csf/lib/csf.rbls'
'restricted.txt' -> '/usr/local/csf/lib/restricted.txt'
'changelog.txt' -> '/etc/csf/changelog.txt'
'downloadservers' -> '/etc/csf/downloadservers'
'install.txt' -> '/etc/csf/install.txt'
'version.txt' -> '/etc/csf/version.txt'
'license.txt' -> '/etc/csf/license.txt'
'webmin' -> '/usr/local/csf/lib/webmin'
'webmin/csf' -> '/usr/local/csf/lib/webmin/csf'
'webmin/csf/images' -> '/usr/local/csf/lib/webmin/csf/images'
'webmin/csf/images/admin_icon.svg' -> '/usr/local/csf/lib/webmin/csf/images/admin_icon.svg'
'webmin/csf/images/bootstrap' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap'
'webmin/csf/images/bootstrap/css' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/css'
'webmin/csf/images/bootstrap/css/bootstrap.min.css' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/css/bootstrap.min.css'
'webmin/csf/images/bootstrap/css/bootstrap.min.css.map' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/css/bootstrap.min.css.map'
'webmin/csf/images/bootstrap/fonts' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/fonts'
'webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.eot' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.eot'
'webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.svg' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.svg'
'webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.ttf' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.ttf'
'webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.woff' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.woff'
'webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.woff2' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.woff2'
'webmin/csf/images/bootstrap/js' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/js'
'webmin/csf/images/bootstrap/js/bootstrap.min.js' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap/js/bootstrap.min.js'
'webmin/csf/images/bootstrap-chosen.css' -> '/usr/local/csf/lib/webmin/csf/images/bootstrap-chosen.css'
'webmin/csf/images/chosen.min.css' -> '/usr/local/csf/lib/webmin/csf/images/chosen.min.css'
'webmin/csf/images/chosen.min.js' -> '/usr/local/csf/lib/webmin/csf/images/chosen.min.js'
'webmin/csf/images/chosen-sprite@2x.png' -> '/usr/local/csf/lib/webmin/csf/images/chosen-sprite@2x.png'
'webmin/csf/images/chosen-sprite.png' -> '/usr/local/csf/lib/webmin/csf/images/chosen-sprite.png'
'webmin/csf/images/configserver.css' -> '/usr/local/csf/lib/webmin/csf/images/configserver.css'
'webmin/csf/images/csf-loader.gif' -> '/usr/local/csf/lib/webmin/csf/images/csf-loader.gif'
'webmin/csf/images/csf_small.png' -> '/usr/local/csf/lib/webmin/csf/images/csf_small.png'
'webmin/csf/images/csf.svg' -> '/usr/local/csf/lib/webmin/csf/images/csf.svg'
'webmin/csf/images/jquery.min.js' -> '/usr/local/csf/lib/webmin/csf/images/jquery.min.js'
'webmin/csf/images/LICENSE.txt' -> '/usr/local/csf/lib/webmin/csf/images/LICENSE.txt'
'webmin/csf/images/loader.gif' -> '/usr/local/csf/lib/webmin/csf/images/loader.gif'
'webmin/csf/images/reseller_icon.svg' -> '/usr/local/csf/lib/webmin/csf/images/reseller_icon.svg'
'webmin/csf/index.cgi' -> '/usr/local/csf/lib/webmin/csf/index.cgi'
'webmin/csf/module.info' -> '/usr/local/csf/lib/webmin/csf/module.info'
'ConfigServer' -> '/usr/local/csf/lib/ConfigServer'
'ConfigServer/AbuseIP.pm' -> '/usr/local/csf/lib/ConfigServer/AbuseIP.pm'
'ConfigServer/CheckIP.pm' -> '/usr/local/csf/lib/ConfigServer/CheckIP.pm'
'ConfigServer/CloudFlare.pm' -> '/usr/local/csf/lib/ConfigServer/CloudFlare.pm'
'ConfigServer/Config.pm' -> '/usr/local/csf/lib/ConfigServer/Config.pm'
'ConfigServer/cseUI.pm' -> '/usr/local/csf/lib/ConfigServer/cseUI.pm'
'ConfigServer/DisplayResellerUI.pm' -> '/usr/local/csf/lib/ConfigServer/DisplayResellerUI.pm'
'ConfigServer/DisplayUI.pm' -> '/usr/local/csf/lib/ConfigServer/DisplayUI.pm'
'ConfigServer/GetEthDev.pm' -> '/usr/local/csf/lib/ConfigServer/GetEthDev.pm'
'ConfigServer/GetIPs.pm' -> '/usr/local/csf/lib/ConfigServer/GetIPs.pm'
'ConfigServer/KillSSH.pm' -> '/usr/local/csf/lib/ConfigServer/KillSSH.pm'
'ConfigServer/Logger.pm' -> '/usr/local/csf/lib/ConfigServer/Logger.pm'
'ConfigServer/LookUpIP.pm' -> '/usr/local/csf/lib/ConfigServer/LookUpIP.pm'
'ConfigServer/Messenger.pm' -> '/usr/local/csf/lib/ConfigServer/Messenger.pm'
'ConfigServer/Ports.pm' -> '/usr/local/csf/lib/ConfigServer/Ports.pm'
'ConfigServer/RBLCheck.pm' -> '/usr/local/csf/lib/ConfigServer/RBLCheck.pm'
'ConfigServer/RBLLookup.pm' -> '/usr/local/csf/lib/ConfigServer/RBLLookup.pm'
'ConfigServer/RegexMain.pm' -> '/usr/local/csf/lib/ConfigServer/RegexMain.pm'
'ConfigServer/Sanity.pm' -> '/usr/local/csf/lib/ConfigServer/Sanity.pm'
'ConfigServer/Sendmail.pm' -> '/usr/local/csf/lib/ConfigServer/Sendmail.pm'
'ConfigServer/ServerCheck.pm' -> '/usr/local/csf/lib/ConfigServer/ServerCheck.pm'
'ConfigServer/ServerStats.pm' -> '/usr/local/csf/lib/ConfigServer/ServerStats.pm'
'ConfigServer/Service.pm' -> '/usr/local/csf/lib/ConfigServer/Service.pm'
'ConfigServer/Slurp.pm' -> '/usr/local/csf/lib/ConfigServer/Slurp.pm'
'ConfigServer/URLGet.pm' -> '/usr/local/csf/lib/ConfigServer/URLGet.pm'
'Net' -> '/usr/local/csf/lib/Net'
'Net/CIDR' -> '/usr/local/csf/lib/Net/CIDR'
'Net/CIDR/Lite.pm' -> '/usr/local/csf/lib/Net/CIDR/Lite.pm'
'Net/IP.pm' -> '/usr/local/csf/lib/Net/IP.pm'
cp: cannot stat 'Geo': No such file or directory
'Crypt' -> '/usr/local/csf/lib/Crypt'
'Crypt/Blowfish_PP.pm' -> '/usr/local/csf/lib/Crypt/Blowfish_PP.pm'
'Crypt/CBC.pm' -> '/usr/local/csf/lib/Crypt/CBC.pm'
'HTTP' -> '/usr/local/csf/lib/HTTP'
'HTTP/Tiny.pm' -> '/usr/local/csf/lib/HTTP/Tiny.pm'
'JSON' -> '/usr/local/csf/lib/JSON'
'JSON/Tiny.pm' -> '/usr/local/csf/lib/JSON/Tiny.pm'
'version/version' -> '/usr/local/csf/lib/version'
'version/version/regex.pm' -> '/usr/local/csf/lib/version/regex.pm'
'version/version/vpp.pm' -> '/usr/local/csf/lib/version/vpp.pm'
'version/version.pm' -> '/usr/local/csf/lib/version.pm'
'csf.div' -> '/usr/local/csf/lib/csf.div'
'csfajaxtail.js' -> '/usr/local/csf/lib/csfajaxtail.js'
'ui/images/admin_icon.svg' -> '/etc/csf/ui/./images/admin_icon.svg'
'ui/images/bootstrap/css/bootstrap.min.css' -> '/etc/csf/ui/./images/bootstrap/css/bootstrap.min.css'
'ui/images/bootstrap/css/bootstrap.min.css.map' -> '/etc/csf/ui/./images/bootstrap/css/bootstrap.min.css.map'
'ui/images/bootstrap/fonts/glyphicons-halflings-regular.eot' -> '/etc/csf/ui/./images/bootstrap/fonts/glyphicons-halflings-regular.eot'
'ui/images/bootstrap/fonts/glyphicons-halflings-regular.svg' -> '/etc/csf/ui/./images/bootstrap/fonts/glyphicons-halflings-regular.svg'
'ui/images/bootstrap/fonts/glyphicons-halflings-regular.ttf' -> '/etc/csf/ui/./images/bootstrap/fonts/glyphicons-halflings-regular.ttf'
'ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff' -> '/etc/csf/ui/./images/bootstrap/fonts/glyphicons-halflings-regular.woff'
'ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff2' -> '/etc/csf/ui/./images/bootstrap/fonts/glyphicons-halflings-regular.woff2'
'ui/images/bootstrap/js/bootstrap.min.js' -> '/etc/csf/ui/./images/bootstrap/js/bootstrap.min.js'
'ui/images/bootstrap-chosen.css' -> '/etc/csf/ui/./images/bootstrap-chosen.css'
'ui/images/chosen.min.css' -> '/etc/csf/ui/./images/chosen.min.css'
'ui/images/chosen.min.js' -> '/etc/csf/ui/./images/chosen.min.js'
'ui/images/chosen-sprite@2x.png' -> '/etc/csf/ui/./images/chosen-sprite@2x.png'
'ui/images/chosen-sprite.png' -> '/etc/csf/ui/./images/chosen-sprite.png'
'ui/images/configserver.css' -> '/etc/csf/ui/./images/configserver.css'
'ui/images/csf-loader.gif' -> '/etc/csf/ui/./images/csf-loader.gif'
'ui/images/csf_small.png' -> '/etc/csf/ui/./images/csf_small.png'
'ui/images/csf.svg' -> '/etc/csf/ui/./images/csf.svg'
'ui/images/jquery.min.js' -> '/etc/csf/ui/./images/jquery.min.js'
'ui/images/LICENSE.txt' -> '/etc/csf/ui/./images/LICENSE.txt'
'ui/images/loader.gif' -> '/etc/csf/ui/./images/loader.gif'
'ui/images/reseller_icon.svg' -> '/etc/csf/ui/./images/reseller_icon.svg'
'profiles' -> '/usr/local/csf/profiles'
'profiles/block_all_perm.conf' -> '/usr/local/csf/profiles/block_all_perm.conf'
'profiles/block_all_temp.conf' -> '/usr/local/csf/profiles/block_all_temp.conf'
'profiles/disable_alerts.conf' -> '/usr/local/csf/profiles/disable_alerts.conf'
'profiles/protection_high.conf' -> '/usr/local/csf/profiles/protection_high.conf'
'profiles/protection_low.conf' -> '/usr/local/csf/profiles/protection_low.conf'
'profiles/protection_medium.conf' -> '/usr/local/csf/profiles/protection_medium.conf'
'csf.conf' -> '/usr/local/csf/profiles/reset_to_defaults.conf'
'lfd.logrotate' -> '/etc/logrotate.d/lfd'
chcon: failed to get security context of '/etc/logrotate.d': No data available
'csf.1.txt' -> '/usr/local/man/man1/csf.1'
'csf.help' -> '/usr/local/csf/lib/csf.help'
chmod: cannot access '/var/log/lfd.log*': No such file or directory
mode of '/usr/local/csf/bin/csftest.pl' changed from 0600 (rw-------) to 0700 (rwx------)
mode of '/usr/local/csf/bin/pt_deleted_action.pl' changed from 0600 (rw-------) to 0700 (rwx------)
mode of '/usr/local/csf/bin/remove_apf_bfd.sh' changed from 0600 (rw-------) to 0700 (rwx------)
mode of '/usr/local/csf/bin/uninstall.sh' changed from 0600 (rw-------) to 0700 (rwx------)
mode of '/usr/local/csf/bin/regex.custom.pm' changed from 0600 (rw-------) to 0700 (rwx------)
mode of '/etc/csf/csf.pl' retained as 0700 (rwx------)
mode of '/etc/csf/csftest.pl' retained as 0700 (rwx------)
mode of '/etc/csf/lfd.pl' retained as 0700 (rwx------)
mode of '/etc/csf/pt_deleted_action.pl' retained as 0700 (rwx------)
chmod: cannot access '/etc/csf/*.cgi': No such file or directory
failed to change mode of '/etc/csf/*.cgi' from 0700 (rwx------) to 0700 (rwx------)
mode of '/etc/csf/remove_apf_bfd.sh' retained as 0700 (rwx------)
mode of '/etc/csf/uninstall.sh' retained as 0700 (rwx------)
chmod: cannot access '/etc/csf/*.php': No such file or directory
failed to change mode of '/etc/csf/*.php' from 0700 (rwx------) to 0700 (rwx------)
chmod: cannot access '/etc/csf/*.py': No such file or directory
failed to change mode of '/etc/csf/*.py' from 0700 (rwx------) to 0700 (rwx------)
mode of '/etc/csf/webmin/csf/index.cgi' changed from 0600 (rw-------) to 0700 (rwx------)
mode of '/etc/cron.d/lfd-cron' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of '/etc/cron.d/csf-cron' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
'csget.pl' -> '/etc/cron.daily/csget'
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_ADDRESS = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
mode of 'auto.generic.pl' changed from 0755 (rwxr-xr-x) to 0700 (rwx------)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_ADDRESS = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
'/etc/csf/csf.conf' -> '/var/lib/csf/backup/1664957686_pre_v14_17_upgrade'

*** IPV6 Enabled


*** IPV6_SPI set to 1


TCP ports currently listening for incoming connections:


UDP ports currently listening for incoming connections:


Note: The port details above are for information only, csf hasn't been auto-configured.

Don't forget to:
1. Configure the following options in the csf configuration to suite your server: TCP_*, UDP_*
2. Restart csf and lfd
3. Set TESTING to 0 once you're happy with the firewall, lfd will not run until you do so

Adding current SSH session IP address to the csf whitelist in csf.allow:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_ADDRESS = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
*WARNING* URLGET set to use LWP but perl module is not installed, fallback to using CURL/WGET
Adding 192.168.100.7 to csf.allow only while in TESTING mode (not iptables ACCEPT)
*WARNING* TESTING mode is enabled - do not forget to disable it in the configuration
'lfd.service' -> '/usr/lib/systemd/system/lfd.service'
'csf.service' -> '/usr/lib/systemd/system/csf.service'
chcon: invalid context: 'system_u:object_r:systemd_unit_file_t:s0': No such file or directory
chcon: invalid context: 'system_u:object_r:systemd_unit_file_t:s0': No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/csf.service → /lib/systemd/system/csf.service.
Created symlink /etc/systemd/system/multi-user.target.wants/lfd.service → /lib/systemd/system/lfd.service.
Failed to disable unit: Unit file firewalld.service does not exist.
Failed to stop firewalld.service: Unit firewalld.service not loaded.
Unit firewalld.service does not exist, proceeding anyway.
Created symlink /etc/systemd/system/firewalld.service → /dev/null.
'/etc/csf/csfwebmin.tgz' -> '/usr/local/csf/csfwebmin.tgz'

Installation Completed
 

 

Ada sedikit perbedaan instalasi pada Debian 10, ikuti perintah di bawah ini.

Install packages libwww:
 

 # apt-get install libwww-perl -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libauthen-sasl-perl libdata-dump-perl libencode-locale-perl
  libfile-listing-perl libfont-afm-perl libhtml-form-perl
  libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
  libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
  libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl
  libio-html-perl libio-socket-ssl-perl liblwp-mediatypes-perl
  liblwp-protocol-https-perl libmailtools-perl libnet-http-perl
  libnet-smtp-ssl-perl libnet-ssleay-perl libtimedate-perl
  libtry-tiny-perl liburi-perl libwww-robotrules-perl
  perl-openssl-defaults
Suggested packages:
  libdigest-hmac-perl libgssapi-perl libcrypt-ssleay-perl
  libauthen-ntlm-perl
The following NEW packages will be installed:
  libauthen-sasl-perl libdata-dump-perl libencode-locale-perl
  libfile-listing-perl libfont-afm-perl libhtml-form-perl
  libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
  libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
  libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl
  libio-html-perl libio-socket-ssl-perl liblwp-mediatypes-perl
  liblwp-protocol-https-perl libmailtools-perl libnet-http-perl
  libnet-smtp-ssl-perl libnet-ssleay-perl libtimedate-perl
  libtry-tiny-perl liburi-perl libwww-perl libwww-robotrules-perl
  perl-openssl-defaults
0 upgraded, 29 newly installed, 0 to remove and 0 not upgraded.
Need to get 1694 kB of archives.
After this operation, 4944 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 libauthen-sasl-perl all 2.1600-1 [50.8 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 libdata-dump-perl all 1.23-1 [29.5 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 libencode-locale-perl all 1.05-1 [13.7 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 libtimedate-perl all 2.3000-2+deb10u1 [38.1 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 libhttp-date-perl all 6.02-1 [10.7 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 libfile-listing-perl all 6.04-1 [10.3 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 libfont-afm-perl all 1.20-2 [13.6 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 libhtml-tagset-perl all 3.20-3 [12.7 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 liburi-perl all 1.76-1 [89.9 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 libhtml-parser-perl amd64 3.72-3+b3 [105 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 libio-html-perl all 1.001-1 [17.6 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 liblwp-mediatypes-perl all 6.02-1 [22.1 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 libhttp-message-perl all 6.18-1 [77.8 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 libhtml-form-perl all 6.03-1 [23.9 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 libhtml-tree-perl all 5.07-2 [213 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 libhtml-format-perl all 2.12-1 [43.5 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 libhttp-cookies-perl all 6.04-1 [17.8 kB]
Get:18 http://deb.debian.org/debian buster/main amd64 libhttp-negotiate-perl all 6.01-1 [12.8 kB]
Get:19 http://deb.debian.org/debian buster/main amd64 perl-openssl-defaults amd64 3 [6782 B]
Get:20 http://deb.debian.org/debian buster/main amd64 libnet-ssleay-perl amd64 1.85-2+deb10u1 [308 kB]
Get:21 http://deb.debian.org/debian buster/main amd64 libio-socket-ssl-perl all 2.060-3 [207 kB]
Get:22 http://deb.debian.org/debian buster/main amd64 libnet-http-perl all 6.18-1 [24.5 kB]
Get:23 http://deb.debian.org/debian buster/main amd64 libtry-tiny-perl all 0.30-1 [23.3 kB]
Get:24 http://deb.debian.org/debian buster/main amd64 libwww-robotrules-perl all 6.02-1 [12.9 kB]
Get:25 http://deb.debian.org/debian buster/main amd64 libwww-perl all 6.36-2 [188 kB]
Get:26 http://deb.debian.org/debian buster/main amd64 liblwp-protocol-https-perl all 6.07-2 [9242 B]
Get:27 http://deb.debian.org/debian buster/main amd64 libnet-smtp-ssl-perl all 1.04-1 [6184 B]
Get:28 http://deb.debian.org/debian buster/main amd64 libmailtools-perl all 2.18-1 [88.5 kB]
Get:29 http://security.debian.org/debian-security buster/updates/main amd64 libhttp-daemon-perl all 6.01-3+deb10u1 [17.1 kB]
Fetched 1694 kB in 6s (290 kB/s)                
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_ADDRESS = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package libauthen-sasl-perl.
(Reading database ... 39716 files and directories currently installed.)
Preparing to unpack .../00-libauthen-sasl-perl_2.1600-1_all.deb ...
Unpacking libauthen-sasl-perl (2.1600-1) ...
Selecting previously unselected package libdata-dump-perl.
Preparing to unpack .../01-libdata-dump-perl_1.23-1_all.deb ...
Unpacking libdata-dump-perl (1.23-1) ...
Selecting previously unselected package libencode-locale-perl.
Preparing to unpack .../02-libencode-locale-perl_1.05-1_all.deb ...
Unpacking libencode-locale-perl (1.05-1) ...
Selecting previously unselected package libtimedate-perl.
Preparing to unpack .../03-libtimedate-perl_2.3000-2+deb10u1_all.deb ...
Unpacking libtimedate-perl (2.3000-2+deb10u1) ...
Selecting previously unselected package libhttp-date-perl.
Preparing to unpack .../04-libhttp-date-perl_6.02-1_all.deb ...
Unpacking libhttp-date-perl (6.02-1) ...
Selecting previously unselected package libfile-listing-perl.
Preparing to unpack .../05-libfile-listing-perl_6.04-1_all.deb ...
Unpacking libfile-listing-perl (6.04-1) ...
Selecting previously unselected package libfont-afm-perl.
Preparing to unpack .../06-libfont-afm-perl_1.20-2_all.deb ...
Unpacking libfont-afm-perl (1.20-2) ...
Selecting previously unselected package libhtml-tagset-perl.
Preparing to unpack .../07-libhtml-tagset-perl_3.20-3_all.deb ...
Unpacking libhtml-tagset-perl (3.20-3) ...
Selecting previously unselected package liburi-perl.
Preparing to unpack .../08-liburi-perl_1.76-1_all.deb ...
Unpacking liburi-perl (1.76-1) ...
Selecting previously unselected package libhtml-parser-perl.
Preparing to unpack .../09-libhtml-parser-perl_3.72-3+b3_amd64.deb ...
Unpacking libhtml-parser-perl (3.72-3+b3) ...
Selecting previously unselected package libio-html-perl.
Preparing to unpack .../10-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 .../11-liblwp-mediatypes-perl_6.02-1_all.deb ...
Unpacking liblwp-mediatypes-perl (6.02-1) ...
Selecting previously unselected package libhttp-message-perl.
Preparing to unpack .../12-libhttp-message-perl_6.18-1_all.deb ...
Unpacking libhttp-message-perl (6.18-1) ...
Selecting previously unselected package libhtml-form-perl.
Preparing to unpack .../13-libhtml-form-perl_6.03-1_all.deb ...
Unpacking libhtml-form-perl (6.03-1) ...
Selecting previously unselected package libhtml-tree-perl.
Preparing to unpack .../14-libhtml-tree-perl_5.07-2_all.deb ...
Unpacking libhtml-tree-perl (5.07-2) ...
Selecting previously unselected package libhtml-format-perl.
Preparing to unpack .../15-libhtml-format-perl_2.12-1_all.deb ...
Unpacking libhtml-format-perl (2.12-1) ...
Selecting previously unselected package libhttp-cookies-perl.
Preparing to unpack .../16-libhttp-cookies-perl_6.04-1_all.deb ...
Unpacking libhttp-cookies-perl (6.04-1) ...
Selecting previously unselected package libhttp-daemon-perl.
Preparing to unpack .../17-libhttp-daemon-perl_6.01-3+deb10u1_all.deb ...
Unpacking libhttp-daemon-perl (6.01-3+deb10u1) ...
Selecting previously unselected package libhttp-negotiate-perl.
Preparing to unpack .../18-libhttp-negotiate-perl_6.01-1_all.deb ...
Unpacking libhttp-negotiate-perl (6.01-1) ...
Selecting previously unselected package perl-openssl-defaults:amd64.
Preparing to unpack .../19-perl-openssl-defaults_3_amd64.deb ...
Unpacking perl-openssl-defaults:amd64 (3) ...
Selecting previously unselected package libnet-ssleay-perl.
Preparing to unpack .../20-libnet-ssleay-perl_1.85-2+deb10u1_amd64.deb ...
Unpacking libnet-ssleay-perl (1.85-2+deb10u1) ...
Selecting previously unselected package libio-socket-ssl-perl.
Preparing to unpack .../21-libio-socket-ssl-perl_2.060-3_all.deb ...
Unpacking libio-socket-ssl-perl (2.060-3) ...
Selecting previously unselected package libnet-http-perl.
Preparing to unpack .../22-libnet-http-perl_6.18-1_all.deb ...
Unpacking libnet-http-perl (6.18-1) ...
Selecting previously unselected package libtry-tiny-perl.
Preparing to unpack .../23-libtry-tiny-perl_0.30-1_all.deb ...
Unpacking libtry-tiny-perl (0.30-1) ...
Selecting previously unselected package libwww-robotrules-perl.
Preparing to unpack .../24-libwww-robotrules-perl_6.02-1_all.deb ...
Unpacking libwww-robotrules-perl (6.02-1) ...
Selecting previously unselected package libwww-perl.
Preparing to unpack .../25-libwww-perl_6.36-2_all.deb ...
Unpacking libwww-perl (6.36-2) ...
Selecting previously unselected package liblwp-protocol-https-perl.
Preparing to unpack .../26-liblwp-protocol-https-perl_6.07-2_all.deb ...
Unpacking liblwp-protocol-https-perl (6.07-2) ...
Selecting previously unselected package libnet-smtp-ssl-perl.
Preparing to unpack .../27-libnet-smtp-ssl-perl_1.04-1_all.deb ...
Unpacking libnet-smtp-ssl-perl (1.04-1) ...
Selecting previously unselected package libmailtools-perl.
Preparing to unpack .../28-libmailtools-perl_2.18-1_all.deb ...
Unpacking libmailtools-perl (2.18-1) ...
Setting up libfont-afm-perl (1.20-2) ...
Setting up libhtml-tagset-perl (3.20-3) ...
Setting up libauthen-sasl-perl (2.1600-1) ...
Setting up liblwp-mediatypes-perl (6.02-1) ...
Setting up libtry-tiny-perl (0.30-1) ...
Setting up perl-openssl-defaults:amd64 (3) ...
Setting up libencode-locale-perl (1.05-1) ...
Setting up libdata-dump-perl (1.23-1) ...
Setting up libio-html-perl (1.001-1) ...
Setting up libtimedate-perl (2.3000-2+deb10u1) ...
Setting up liburi-perl (1.76-1) ...
Setting up libnet-ssleay-perl (1.85-2+deb10u1) ...
Setting up libhttp-date-perl (6.02-1) ...
Setting up libfile-listing-perl (6.04-1) ...
Setting up libnet-http-perl (6.18-1) ...
Setting up libwww-robotrules-perl (6.02-1) ...
Setting up libhtml-parser-perl (3.72-3+b3) ...
Setting up libio-socket-ssl-perl (2.060-3) ...
Setting up libhttp-message-perl (6.18-1) ...
Setting up libhtml-form-perl (6.03-1) ...
Setting up libhttp-negotiate-perl (6.01-1) ...
Setting up libhttp-cookies-perl (6.04-1) ...
Setting up libhtml-tree-perl (5.07-2) ...
Setting up libhtml-format-perl (2.12-1) ...
Setting up libnet-smtp-ssl-perl (1.04-1) ...
Setting up libmailtools-perl (2.18-1) ...
Setting up libhttp-daemon-perl (6.01-3+deb10u1) ...
Setting up liblwp-protocol-https-perl (6.07-2) ...
Setting up libwww-perl (6.36-2) ...
Processing triggers for man-db (2.8.5-2) ...


# perl /usr/local/csf/bin/csftest.pl
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_ADDRESS = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_TIME = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Testing ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...OK
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing xt_connlimit...OK
Testing ipt_owner/xt_owner...OK
Testing iptable_nat/ipt_REDIRECT...OK
Testing iptable_nat/ipt_DNAT...OK

RESULT: csf should function on this server



Nonaktifkan firewalld dengan:

$ systemctl stop firewalld
$ systemctl disable firewalld
 
# systemctl stop firewalld
root@websma2:~# systemctl disable firewalld
Unit /etc/systemd/system/firewalld.service is masked, ignoring.
 
 
 

Ubah “make TESTING=’1’ menjadi 0” di konfigurasi CSF.

$ nano /etc/csf/csf.conf

 

 

Restart dan tes CSF:

$ systemctl restart {csf,lfd} $ systemctl enable {csf,lfd} $ systemctl is-active {csf,lfd}

 

Kemudian restart CSF agar dapat me-reload hasil konfigurasi yang sudah diperbarui.

$ csf -r 




Monday, 13 December 2021

Install Let’s Encrypt SSL di Debian Server Wordpres

 root@debianweb:~# apt install certbot python3-certbot-nginx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python-pyicu python3-acme python3-asn1crypto python3-certbot python3-cffi-backend python3-configargparse python3-configobj python3-cryptography
  python3-distutils python3-future python3-josepy python3-lib2to3 python3-mock python3-openssl python3-parsedatetime python3-pbr python3-pyparsing
  python3-requests-toolbelt python3-rfc3339 python3-setuptools python3-tz python3-zope.component python3-zope.event python3-zope.hookable
  python3-zope.interface
Suggested packages:
  python3-certbot-apache python-certbot-doc python-acme-doc python-certbot-nginx-doc python-configobj-doc python-cryptography-doc
  python3-cryptography-vectors python-future-doc python-mock-doc python-openssl-doc python3-openssl-dbg python-pyparsing-doc python-setuptools-doc
The following NEW packages will be installed:
  certbot python-pyicu python3-acme python3-asn1crypto python3-certbot python3-certbot-nginx python3-cffi-backend python3-configargparse
  python3-configobj python3-cryptography python3-distutils python3-future python3-josepy python3-lib2to3 python3-mock python3-openssl
  python3-parsedatetime python3-pbr python3-pyparsing python3-requests-toolbelt python3-rfc3339 python3-setuptools python3-tz python3-zope.component
  python3-zope.event python3-zope.hookable python3-zope.interface
0 upgraded, 27 newly installed, 0 to remove and 9 not upgraded.
Need to get 2454 kB of archives.
After this operation, 12.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian buster/main amd64 python3-asn1crypto all 0.24.0-1 [78.2 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 python3-cffi-backend amd64 1.12.2-1 [79.7 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 python3-cryptography amd64 2.6.1-3+deb10u2 [219 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 python3-openssl all 19.0.0-1 [52.1 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 python3-josepy all 1.1.0-2 [27.7 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 python3-lib2to3 all 3.7.3-1 [76.7 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 python3-distutils all 3.7.3-1 [142 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 python3-setuptools all 40.8.0-1 [306 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 python3-pbr all 4.2.0-5 [56.5 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 python3-mock all 2.0.0-4 [60.3 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 python3-requests-toolbelt all 0.8.0-1 [38.2 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 python3-tz all 2019.1-1 [27.1 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 python3-rfc3339 all 1.1-1 [6644 B]
Get:14 http://deb.debian.org/debian buster/main amd64 python3-acme all 0.31.0-2 [50.5 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 python3-configargparse all 0.13.0-1 [22.5 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 python3-configobj all 5.0.6-3 [35.7 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 python3-future all 0.16.0-1 [346 kB]
Get:18 http://deb.debian.org/debian buster/main amd64 python3-parsedatetime all 2.4-2 [39.7 kB]
Get:19 http://deb.debian.org/debian buster/main amd64 python3-zope.hookable amd64 4.0.4-4+b4 [10.6 kB]
Get:20 http://deb.debian.org/debian buster/main amd64 python3-zope.interface amd64 4.3.2-1+b2 [90.1 kB]
Get:21 http://deb.debian.org/debian buster/main amd64 python3-zope.event all 4.2.0-1 [8412 B]
Get:22 http://deb.debian.org/debian buster/main amd64 python3-zope.component all 4.3.0-1 [43.0 kB]
Get:23 http://deb.debian.org/debian buster/main amd64 python3-certbot all 0.31.0-1+deb10u1 [226 kB]
Get:24 http://deb.debian.org/debian buster/main amd64 certbot all 0.31.0-1+deb10u1 [38.8 kB]
Get:25 http://deb.debian.org/debian buster/main amd64 python-pyicu amd64 2.2-2 [234 kB]
Get:26 http://deb.debian.org/debian buster/main amd64 python3-pyparsing all 2.2.0+dfsg1-2 [89.6 kB]
Get:27 http://deb.debian.org/debian buster/main amd64 python3-certbot-nginx all 0.31.0-1 [50.0 kB]
Fetched 2454 kB in 0s (4984 kB/s)                 
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_ADDRESS = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package python3-asn1crypto.
(Reading database ... 127778 files and directories currently installed.)
Preparing to unpack .../00-python3-asn1crypto_0.24.0-1_all.deb ...
Unpacking python3-asn1crypto (0.24.0-1) ...
Selecting previously unselected package python3-cffi-backend.
Preparing to unpack .../01-python3-cffi-backend_1.12.2-1_amd64.deb ...
Unpacking python3-cffi-backend (1.12.2-1) ...
Selecting previously unselected package python3-cryptography.
Preparing to unpack .../02-python3-cryptography_2.6.1-3+deb10u2_amd64.deb ...
Unpacking python3-cryptography (2.6.1-3+deb10u2) ...
Selecting previously unselected package python3-openssl.
Preparing to unpack .../03-python3-openssl_19.0.0-1_all.deb ...
Unpacking python3-openssl (19.0.0-1) ...
Selecting previously unselected package python3-josepy.
Preparing to unpack .../04-python3-josepy_1.1.0-2_all.deb ...
Unpacking python3-josepy (1.1.0-2) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../05-python3-lib2to3_3.7.3-1_all.deb ...
Unpacking python3-lib2to3 (3.7.3-1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../06-python3-distutils_3.7.3-1_all.deb ...
Unpacking python3-distutils (3.7.3-1) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../07-python3-setuptools_40.8.0-1_all.deb ...
Unpacking python3-setuptools (40.8.0-1) ...
Selecting previously unselected package python3-pbr.
Preparing to unpack .../08-python3-pbr_4.2.0-5_all.deb ...
Unpacking python3-pbr (4.2.0-5) ...
Selecting previously unselected package python3-mock.
Preparing to unpack .../09-python3-mock_2.0.0-4_all.deb ...
Unpacking python3-mock (2.0.0-4) ...
Selecting previously unselected package python3-requests-toolbelt.
Preparing to unpack .../10-python3-requests-toolbelt_0.8.0-1_all.deb ...
Unpacking python3-requests-toolbelt (0.8.0-1) ...
Selecting previously unselected package python3-tz.
Preparing to unpack .../11-python3-tz_2019.1-1_all.deb ...
Unpacking python3-tz (2019.1-1) ...
Selecting previously unselected package python3-rfc3339.
Preparing to unpack .../12-python3-rfc3339_1.1-1_all.deb ...
Unpacking python3-rfc3339 (1.1-1) ...
Selecting previously unselected package python3-acme.
Preparing to unpack .../13-python3-acme_0.31.0-2_all.deb ...
Unpacking python3-acme (0.31.0-2) ...
Selecting previously unselected package python3-configargparse.
Preparing to unpack .../14-python3-configargparse_0.13.0-1_all.deb ...
Unpacking python3-configargparse (0.13.0-1) ...
Selecting previously unselected package python3-configobj.
Preparing to unpack .../15-python3-configobj_5.0.6-3_all.deb ...
Unpacking python3-configobj (5.0.6-3) ...
Selecting previously unselected package python3-future.
Preparing to unpack .../16-python3-future_0.16.0-1_all.deb ...
Unpacking python3-future (0.16.0-1) ...
Selecting previously unselected package python3-parsedatetime.
Preparing to unpack .../17-python3-parsedatetime_2.4-2_all.deb ...
Unpacking python3-parsedatetime (2.4-2) ...
Selecting previously unselected package python3-zope.hookable.
Preparing to unpack .../18-python3-zope.hookable_4.0.4-4+b4_amd64.deb ...
Unpacking python3-zope.hookable (4.0.4-4+b4) ...
Selecting previously unselected package python3-zope.interface.
Preparing to unpack .../19-python3-zope.interface_4.3.2-1+b2_amd64.deb ...
Unpacking python3-zope.interface (4.3.2-1+b2) ...
Selecting previously unselected package python3-zope.event.
Preparing to unpack .../20-python3-zope.event_4.2.0-1_all.deb ...
Unpacking python3-zope.event (4.2.0-1) ...
Selecting previously unselected package python3-zope.component.
Preparing to unpack .../21-python3-zope.component_4.3.0-1_all.deb ...
Unpacking python3-zope.component (4.3.0-1) ...
Selecting previously unselected package python3-certbot.
Preparing to unpack .../22-python3-certbot_0.31.0-1+deb10u1_all.deb ...
Unpacking python3-certbot (0.31.0-1+deb10u1) ...
Selecting previously unselected package certbot.
Preparing to unpack .../23-certbot_0.31.0-1+deb10u1_all.deb ...
Unpacking certbot (0.31.0-1+deb10u1) ...
Selecting previously unselected package python-pyicu.
Preparing to unpack .../24-python-pyicu_2.2-2_amd64.deb ...
Unpacking python-pyicu (2.2-2) ...
Selecting previously unselected package python3-pyparsing.
Preparing to unpack .../25-python3-pyparsing_2.2.0+dfsg1-2_all.deb ...
Unpacking python3-pyparsing (2.2.0+dfsg1-2) ...
Selecting previously unselected package python3-certbot-nginx.
Preparing to unpack .../26-python3-certbot-nginx_0.31.0-1_all.deb ...
Unpacking python3-certbot-nginx (0.31.0-1) ...
Setting up python3-configargparse (0.13.0-1) ...
Setting up python3-requests-toolbelt (0.8.0-1) ...
Setting up python3-zope.event (4.2.0-1) ...
Setting up python3-zope.interface (4.3.2-1+b2) ...
Setting up python-pyicu (2.2-2) ...
Setting up python3-tz (2019.1-1) ...
Setting up python3-zope.hookable (4.0.4-4+b4) ...
Setting up python3-configobj (5.0.6-3) ...
Setting up python3-pyparsing (2.2.0+dfsg1-2) ...
Setting up python3-rfc3339 (1.1-1) ...
Setting up python3-lib2to3 (3.7.3-1) ...
Setting up python3-asn1crypto (0.24.0-1) ...
Setting up python3-cffi-backend (1.12.2-1) ...
Setting up python3-distutils (3.7.3-1) ...
Setting up python3-setuptools (40.8.0-1) ...
Setting up python3-pbr (4.2.0-5) ...
update-alternatives: using /usr/bin/python3-pbr to provide /usr/bin/pbr (pbr) in auto mode
Setting up python3-zope.component (4.3.0-1) ...
Setting up python3-mock (2.0.0-4) ...
Setting up python3-cryptography (2.6.1-3+deb10u2) ...
Setting up python3-future (0.16.0-1) ...
update-alternatives: using /usr/bin/python3-futurize to provide /usr/bin/futurize (futurize) in auto mode
update-alternatives: using /usr/bin/python3-pasteurize to provide /usr/bin/pasteurize (pasteurize) in auto mode
Setting up python3-parsedatetime (2.4-2) ...
Setting up python3-openssl (19.0.0-1) ...
Setting up python3-josepy (1.1.0-2) ...
Setting up python3-acme (0.31.0-2) ...
Setting up python3-certbot (0.31.0-1+deb10u1) ...
Setting up certbot (0.31.0-1+deb10u1) ...
Created symlink /etc/systemd/system/timers.target.wants/certbot.timer → /lib/systemd/system/certbot.timer.
Setting up python3-certbot-nginx (0.31.0-1) ...
Processing triggers for man-db (2.8.5-2) ...


root@debianweb:~# certbot --nginx -d sman2kandangan.sch.id -d www.sman2kandangan.sch.id
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): noor.ridhwan@ymail.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 at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: a

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing 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
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for sman2kandangan.sch.id
http-01 challenge for www.sman2kandangan.sch.id
Using default addresses 80 and [::]:80 ipv6only=on for authentication.
Using default addresses 80 and [::]:80 ipv6only=on for authentication.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. www.sman2kandangan.sch.id (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.sman2kandangan.sch.id/.well-known/acme-challenge/o28tO8a-QcDZvCZcKjsW-d8E0RfvcqKHm2-1vvdbyYA [103.153.3.98]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: www.sman2kandangan.sch.id
   Type:   unauthorized
   Detail: Invalid response from
   http://www.sman2kandangan.sch.id/.well-known/acme-challenge/o28tO8a-QcDZvCZcKjsW-d8E0RfvcqKHm2-1vvdbyYA
   [103.153.3.98]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
   2.0//EN\">\n<html><head>\n<title>404 Not
   Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.


root@debianweb:~# certbot --nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx

Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: web.sman2kandangan.sch.id
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for web.sman2kandangan.sch.id
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. web.sman2kandangan.sch.id (http-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for web.sman2kandangan.sch.id - check that a DNS record exists for this domain

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: web.sman2kandangan.sch.id
   Type:   None
   Detail: DNS problem: NXDOMAIN looking up A for
   web.sman2kandangan.sch.id - check that a DNS record exists for this
   domain

Saturday, 11 December 2021

install thema dengan upload file zip debian server wordpress

 root@debian:~# hostnamectl
   Static hostname: debian
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 78340d2bebe24f18a3a13cab1dd88ed2
           Boot ID: f172071f2da047898a11484a3609ae27
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.0-18-amd64
      Architecture: x86-64
root@debian:~# hostnamectl set-hostname debianweb
root@debian:~# hostnamectl
   Static hostname: debianweb
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 78340d2bebe24f18a3a13cab1dd88ed2
           Boot ID: f172071f2da047898a11484a3609ae27
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.0-18-amd64
      Architecture: x86-64
root@debian:~# chown -R www-data:www-data /var/www/html/wordpress/
chown: cannot access '/var/www/html/wordpress/': No such file or directory
root@debian:~# chown -R www-data:www-data /var/www/html/
root@debian:~# chmod 755 -R /var/www/html/


install proftpd debian server wordpress

 root@debian:~# apt-get install proftpd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'proftpd-basic' instead of 'proftpd'
The following additional packages will be installed:
  libhiredis0.14 libmemcached11 libmemcachedutil2 proftpd-doc
Suggested packages:
  openbsd-inetd | inet-superserver proftpd-mod-ldap proftpd-mod-mysql
  proftpd-mod-odbc proftpd-mod-pgsql proftpd-mod-sqlite
  proftpd-mod-geoip proftpd-mod-snmp
The following NEW packages will be installed:
  libhiredis0.14 libmemcached11 libmemcachedutil2 proftpd-basic
  proftpd-doc
0 upgraded, 5 newly installed, 0 to remove and 9 not upgraded.
Need to get 4498 kB of archives.
After this operation, 9616 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian buster/main amd64 libhiredis0.14 amd64 0.14.0-3 [33.8 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 libmemcached11 amd64 1.0.18-4.2 [94.5 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 libmemcachedutil2 amd64 1.0.18-4.2 [22.3 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 proftpd-basic amd64 1.3.6-4+deb10u6 [2652 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 proftpd-doc all 1.3.6-4+deb10u6 [1696 kB]
Fetched 4498 kB in 0s (9244 kB/s)       
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_ADDRESS = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package libhiredis0.14:amd64.
(Reading database ... 127469 files and directories currently installed.)
Preparing to unpack .../libhiredis0.14_0.14.0-3_amd64.deb ...
Unpacking libhiredis0.14:amd64 (0.14.0-3) ...
Selecting previously unselected package libmemcached11:amd64.
Preparing to unpack .../libmemcached11_1.0.18-4.2_amd64.deb ...
Unpacking libmemcached11:amd64 (1.0.18-4.2) ...
Selecting previously unselected package libmemcachedutil2:amd64.
Preparing to unpack .../libmemcachedutil2_1.0.18-4.2_amd64.deb ...
Unpacking libmemcachedutil2:amd64 (1.0.18-4.2) ...
Selecting previously unselected package proftpd-basic.
Preparing to unpack .../proftpd-basic_1.3.6-4+deb10u6_amd64.deb ...
Unpacking proftpd-basic (1.3.6-4+deb10u6) ...
Selecting previously unselected package proftpd-doc.
Preparing to unpack .../proftpd-doc_1.3.6-4+deb10u6_all.deb ...
Unpacking proftpd-doc (1.3.6-4+deb10u6) ...
Setting up proftpd-doc (1.3.6-4+deb10u6) ...
Setting up libmemcached11:amd64 (1.0.18-4.2) ...
Setting up libhiredis0.14:amd64 (0.14.0-3) ...
Setting up libmemcachedutil2:amd64 (1.0.18-4.2) ...
Setting up proftpd-basic (1.3.6-4+deb10u6) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Adding system user `proftpd' (UID 118) ...
Adding new user `proftpd' (UID 118) with group `nogroup' ...
Not creating home directory `/run/proftpd'.
Adding system user `ftp' (UID 119) ...
Adding new user `ftp' (UID 119) with group `nogroup' ...
Creating home directory `/srv/ftp' ...
'/usr/share/proftpd/templates/welcome.msg' -> '/srv/ftp/welcome.msg.proftpd-new'
Processing triggers for systemd (241-7~deb10u8) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...

Friday, 10 December 2021

Download WordPress Debian Serer

 Setelah server berhasil terkonfigurasi, langkah selanjutnya adalah unduh file WordPress ke direktori /tmp kemudian pindahkan ke direktori yang sudah diatur sebagai document root di virtual host domain. (kalau di saya di PC server)


root@debian:~# cd /tmp
root@debian:/tmp# curl -LO https://wordpress.org/latest.tar.gz
-bash: curl: command not found
root@debian:/tmp# wget -c https://wordpress.org/latest.tar.gz
--2021-12-10 09:42:24--  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: 15085301 (14M) [application/octet-stream]
Saving to: 'latest.tar.gz'

latest.tar.gz      100%[==============>]  14.39M  5.19MB/s    in 2.8s    

2021-12-10 09:42:28 (5.19 MB/s) - 'latest.tar.gz' saved [15085301/15085301]

root@debian:/tmp# tar -xzf latest.tar.gz
root@debian:/tmp# cp -a /tmp/wordpress/. /var/www/html/
root@debian:/tmp# cp /var/www/html/wp-config-sample.php /var/www/html/wp-config.php


root@debian:~# apt install curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  curl
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 265 kB of archives.
After this operation, 411 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 curl amd64 7.64.0-4+deb10u2 [265 kB]
Fetched 265 kB in 0s (585 kB/s)
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_ADDRESS = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package curl.
(Reading database ... 127461 files and directories currently installed.)
Preparing to unpack .../curl_7.64.0-4+deb10u2_amd64.deb ...
Unpacking curl (7.64.0-4+deb10u2) ...
Setting up curl (7.64.0-4+deb10u2) ...
Processing triggers for man-db (2.8.5-2) ...


Grab WordPress Secret Key Generator dengan:

$ curl -s https://api.wordpress.org/secret-key/1.1/salt/

 

Maka akan keluar output seperti di bawah ini.

define('AUTH_KEY',         '2j5F@hR;--,4SN^q+sK0U<`BQ3x(gyx>A})8`sB)t-vXBx}rl/(Y,7aN&|3oUZ|3');
define('SECURE_AUTH_KEY',  'y|;lz4I>7T6-|AckUy2Gpbx.j9mv,6R~`-t,MCBAoWxegJ t9l|*|Ht+:>D736t-');
define('LOGGED_IN_KEY',    '~LmVf`(.Yu)<yR0^+{DJvgDXlUU)Yu;DQ<do@>H&z2dZoCF-fG*|he6C&y+D+q+F');
define('NONCE_KEY',        'HEKq-Cgzo071a;G_,7NJ}+6I/z;Znc$w}1$mIilWvc!A.]N&=df8G^.yxmHw}(M9');
define('AUTH_SALT',        'd7=T|-:T^xM|8l:qSUoN.;h1v_h[Hb@o?#O-mq-}-G=&2^YN$Dk1~Y^p&pb!jt~s');
define('SECURE_AUTH_SALT', '!OhWQ{J,||b0T4JFfEbxp+SmyTmeD(P&.)i6L%T#,V#~b^jQ$hH:&S#&x)sqfJ`[');
define('LOGGED_IN_SALT',   'N`D+t@+4w|<_&-E_>z%,79C.~CAHWcE#e+JX:sJ-S+jOuq7fB3~!{q<:;$6-RA[C');
define('NONCE_SALT',       '8FK[G1%R~eP+q+<[/k/6H?HWYt:ooDsFT7@1CD+%fXVnX7cE2AB!)/k-Zk!Z|BQ3');

 

Simpan secret key tersebut ke Notepad karena nantinya akan disalin dan tempel (copypaste) ke wp-config.php.

 

root@debian:~# nano /var/www/html/wp-config.php
 

 

 nano /var/www/html/wp-config.php
/** The name of the database for WordPress */

 

Ubah konfigurasi database-nya:

define( 'DB_NAME', 'wp' );

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


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

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

 

Kemudian tempelkan hasil salinan kode key di atas pada “key”. Jika sudah, simpan dan keluar.

 

 

akses http://192.168.100.9/wp-admin/

 

Install PHP 7.2 Debian Server Wordpress

 

Di artikel ini, kami menggunakan PHP 7.2, ikuti instruksi di bawah ini untuk menjalankan instalasinya.

Import dan tambahkan repositori SURY.

 

root@debian:~# wget https://packages.sury.org/php/apt.gpg
--2021-12-10 08:48:24--  https://packages.sury.org/php/apt.gpg
Resolving packages.sury.org (packages.sury.org)... 172.67.182.150, 104.21.18.148, 2606:4700:3030::ac43:b696, ...
Connecting to packages.sury.org (packages.sury.org)|172.67.182.150|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1769 (1.7K) [application/octet-stream]
Saving to: 'apt.gpg'

apt.gpg            100%[==============>]   1.73K  --.-KB/s    in 0s      

2021-12-10 08:48:24 (7.08 MB/s) - 'apt.gpg' saved [1769/1769]

root@debian:~# apt-key add apt.gpg
OK
root@debian:~# echo "deb https://packages.sury.org/php/
> echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list^C
root@debian:~# echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list
-bash: sudo: command not found
 

ralat jadi ini (tanpa sudo)

root@debian:~# echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" |  tee /etc/apt/sources.list.d/php7.list
deb https://packages.sury.org/php/ buster main
 

Update repositori indeks:

$ apt-get update -y 
 
root@debian:~# apt-get update -y 
Get:1 https://packages.sury.org/php buster InRelease [6837 B]
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster InRelease
Hit:4 http://deb.debian.org/debian buster-updates InRelease
Get:5 https://packages.sury.org/php buster/main amd64 Packages [350 kB]
Fetched 357 kB in 2s (170 kB/s)
Reading package lists... Done
 
 

Kemudian install PHP dengan:

root@debian:~# apt-get install php7.2 php7.2-fpm php7.2-mysql php-common php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline php7.2-mbstring php7.2-xml php7.2-gd php7.2-curl -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libpcre3
Suggested packages:
php-pear
The following NEW packages will be installed:
php-common php7.2 php7.2-cli php7.2-common php7.2-curl php7.2-fpm
php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache
php7.2-readline php7.2-xml
The following packages will be upgraded:
libpcre3
1 upgraded, 13 newly installed, 0 to remove and 9 not upgraded.
Need to get 4860 kB of archives.
After this operation, 20.3 MB of additional disk space will be used.
Get:1 https://packages.sury.org/php buster/main amd64 libpcre3 amd64 2:8.44-2+0~20210301.9+debian10~1.gbpa278ad [344 kB]
Get:2 https://packages.sury.org/php buster/main amd64 php-common all 2:85+0~20211110.38+debian10~1.gbp73ad3b [16.4 kB]
Get:3 https://packages.sury.org/php buster/main amd64 php7.2-common amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [569 kB]
Get:4 https://packages.sury.org/php buster/main amd64 php7.2-json amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [19.0 kB]
Get:5 https://packages.sury.org/php buster/main amd64 php7.2-opcache amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [167 kB]
Get:6 https://packages.sury.org/php buster/main amd64 php7.2-readline amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [12.3 kB]
Get:7 https://packages.sury.org/php buster/main amd64 php7.2-cli amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [1448 kB]
Get:8 https://packages.sury.org/php buster/main amd64 php7.2-fpm amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [1454 kB]
Get:9 https://packages.sury.org/php buster/main amd64 php7.2 all 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [56.4 kB]
Get:10 https://packages.sury.org/php buster/main amd64 php7.2-curl amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [29.7 kB]
Get:11 https://packages.sury.org/php buster/main amd64 php7.2-gd amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [27.9 kB]
Get:12 https://packages.sury.org/php buster/main amd64 php7.2-mbstring amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [486 kB]
Get:13 https://packages.sury.org/php buster/main amd64 php7.2-mysql amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [120 kB]
Get:14 https://packages.sury.org/php buster/main amd64 php7.2-xml amd64 7.2.34-28+0~20211119.67+debian10~1.gbpf24e81 [111 kB]
Fetched 4860 kB in 22s (218 kB/s)
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
apt-listchanges: Reading changelogs...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_TIME = "id_ID.UTF-8",
LC_MONETARY = "id_ID.UTF-8",
LC_ADDRESS = "id_ID.UTF-8",
LC_TELEPHONE = "id_ID.UTF-8",
LC_NAME = "id_ID.UTF-8",
LC_MEASUREMENT = "id_ID.UTF-8",
LC_IDENTIFICATION = "id_ID.UTF-8",
LC_NUMERIC = "id_ID.UTF-8",
LC_PAPER = "id_ID.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 127249 files and directories currently installed.)
Preparing to unpack .../libpcre3_2%3a8.44-2+0~20210301.9+debian10~1.gbpa278ad_amd64.deb ...
Unpacking libpcre3:amd64 (2:8.44-2+0~20210301.9+debian10~1.gbpa278ad) over (2:8.39-12) ...
Setting up libpcre3:amd64 (2:8.44-2+0~20210301.9+debian10~1.gbpa278ad) ...
Selecting previously unselected package php-common.
(Reading database ... 127249 files and directories currently installed.)
Preparing to unpack .../00-php-common_2%3a85+0~20211110.38+debian10~1.gbp73ad3b_all.deb ...
Unpacking php-common (2:85+0~20211110.38+debian10~1.gbp73ad3b) ...
Selecting previously unselected package php7.2-common.
Preparing to unpack .../01-php7.2-common_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-common (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2-json.
Preparing to unpack .../02-php7.2-json_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-json (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2-opcache.
Preparing to unpack .../03-php7.2-opcache_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-opcache (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2-readline.
Preparing to unpack .../04-php7.2-readline_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-readline (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2-cli.
Preparing to unpack .../05-php7.2-cli_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-cli (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2-fpm.
Preparing to unpack .../06-php7.2-fpm_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-fpm (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2.
Preparing to unpack .../07-php7.2_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_all.deb ...
Unpacking php7.2 (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2-curl.
Preparing to unpack .../08-php7.2-curl_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-curl (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2-gd.
Preparing to unpack .../09-php7.2-gd_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-gd (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2-mbstring.
Preparing to unpack .../10-php7.2-mbstring_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-mbstring (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2-mysql.
Preparing to unpack .../11-php7.2-mysql_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-mysql (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Selecting previously unselected package php7.2-xml.
Preparing to unpack .../12-php7.2-xml_7.2.34-28+0~20211119.67+debian10~1.gbpf24e81_amd64.deb ...
Unpacking php7.2-xml (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Setting up php-common (2:85+0~20211110.38+debian10~1.gbp73ad3b) ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.
Setting up php7.2-common (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/calendar.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/ctype.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/exif.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/fileinfo.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/ftp.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/gettext.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/iconv.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/pdo.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/phar.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/posix.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/shmop.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/sockets.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/sysvmsg.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/sysvsem.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/sysvshm.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/tokenizer.ini with new version
Setting up php7.2-opcache (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/opcache.ini with new version
Setting up php7.2-gd (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/gd.ini with new version
Setting up php7.2-curl (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/curl.ini with new version
Setting up php7.2-json (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/json.ini with new version
Setting up php7.2-mysql (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/mysqlnd.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/mysqli.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/pdo_mysql.ini with new version
Setting up php7.2-mbstring (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/mbstring.ini with new version
Setting up php7.2-xml (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/dom.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/simplexml.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/wddx.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/xml.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/xmlreader.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/xmlwriter.ini with new version
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/xsl.ini with new version
Setting up php7.2-readline (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/mods-available/readline.ini with new version
Setting up php7.2-cli (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
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
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/cli/php.ini with new version
Setting up php7.2-fpm (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php/7.2/fpm/php.ini with new version
Created symlink /etc/systemd/system/multi-user.target.wants/php7.2-fpm.service → /lib/systemd/system/php7.2-fpm.service.
Setting up php7.2 (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Processing triggers for systemd (241-7~deb10u8) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for php7.2-cli (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
Processing triggers for php7.2-fpm (7.2.34-28+0~20211119.67+debian10~1.gbpf24e81) ...
 
 

Start dan enable PHP 7.2-FPM on-boot:

 
 root@debian:~# systemctl enable php7.2-fpm
Synchronizing state of php7.2-fpm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable php7.2-fpm
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_TIME = "id_ID.UTF-8",
LC_MONETARY = "id_ID.UTF-8",
LC_ADDRESS = "id_ID.UTF-8",
LC_TELEPHONE = "id_ID.UTF-8",
LC_NAME = "id_ID.UTF-8",
LC_MEASUREMENT = "id_ID.UTF-8",
LC_IDENTIFICATION = "id_ID.UTF-8",
LC_NUMERIC = "id_ID.UTF-8",
LC_PAPER = "id_ID.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_TIME = "id_ID.UTF-8",
LC_MONETARY = "id_ID.UTF-8",
LC_ADDRESS = "id_ID.UTF-8",
LC_TELEPHONE = "id_ID.UTF-8",
LC_NAME = "id_ID.UTF-8",
LC_MEASUREMENT = "id_ID.UTF-8",
LC_IDENTIFICATION = "id_ID.UTF-8",
LC_NUMERIC = "id_ID.UTF-8",
LC_PAPER = "id_ID.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
root@debian:~# systemctl start php7.2-fpm

Cek status php7.2-fpm, apakah sudah aktif atau belum:

root@debian:~# systemctl status php7.2-fpm
● php7.2-fpm.service - The PHP 7.2 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.2-fpm.service; enabled; vendor
Active: active (running) since Fri 2021-12-10 08:56:00 WITA; 1min 24s a
Docs: man:php-fpm7.2(8)
Main PID: 15416 (php-fpm7.2)
Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0
Tasks: 3 (limit: 4529)
Memory: 14.2M
CGroup: /system.slice/php7.2-fpm.service
├─15416 php-fpm: master process (/etc/php/7.2/fpm/php-fpm.conf)
├─15417 php-fpm: pool www
└─15418 php-fpm: pool www

Dec 10 08:56:00 debian systemd[1]: Starting The PHP 7.2 FastCGI Process Ma
Dec 10 08:56:00 debian systemd[1]: Started The PHP 7.2 FastCGI Process Man
lines 1-15/15 (END)

 

Configure PHP.ini

Buka file php.ini dan PHP-FPM configuration. Ubah config sesuai di bawah ini.

Buka file php.ini dan PHP-FPM configuration. Ubah config sesuai di bawah ini.

$ nano /etc/php/7.2/fpm/php.ini

;cgi.fix_pathinfo=1 menjadi cgi.fix_pathinfo=0

 

$ nano /etc/php/7.2/cli/php.ini

;cgi.fix_pathinfo=1 menjadi cgi.fix_pathinfo=0

 

Kemudian simpan dan keluar.

 

Create Database

Agar dapat meng-install WordPress, kamu perlu membuat database dan user database-nya terlebih dulu.

root@debian:~# mysql -u root -p
Enter password:     (masukkan password root mysql)
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 57
Server version: 10.3.31-MariaDB-0+deb10u1 Debian 10

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 

MariaDB [(none)]> CREATE DATABASE wp DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
Query OK, 1 row affected (0.002 sec)

MariaDB [(none)]> GRANT ALL ON wp.* TO 'wpuser'@'localhost' IDENTIFIED BY 'p4ssw0rd123';
Query OK, 0 rows affected (0.002 sec)

MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.002 sec)
 MariaDB [(none)]> EXIT;
BYE


Konfigurasi Virtual Host Nginx

Atur virtual host Nginx hingga dapat menghubungkan domain ke server. Caranya, buat file sesuai dengan nama domain kamu, di sini kami menggunakan sman2kandangan.sch.id

nano /etc/nginx/sites-enabled/sman2kandangan
 
isinya:
 server {
listen 80;
listen [::]:80;
server_name 192.168.100.9;
root /var/www/html/;
index index.php index.html index.htm index.nginx-debian.html;

location / {
try_files $uri $uri/ /index.php;
}

location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include snippets/fastcgi-php.conf;
}

# A long browser cache lifetime can speed up repeat visits to your page
location ~* \.(jpg|jpeg|gif|png|webp|svg|woff|woff2|ttf|css|js|ico|xml)$
access_log off;
log_not_found off;
expires 360d;
}

# disable access to hidden files
location ~ /\.ht {
access_log off;
log_not_found off;
deny all;
}
}

 Arahkan hasil config tersebut ke sites-available.

 $ ln -s /etc/nginx/sites-enabled/sman2kandangan /etc/nginx/sites-available/sman2kandangan
 

 Cek konfigurasi yang sudah dilakukan, apakah ada syntax error atau tidak:

  

 root@debian:~# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful


Reload dan restart Nginx:

 root@debian:~# systemctl reload nginx
root@debian:~# systemctl restart nginx