postfix check
/usr/sbin/postconf: fatal: file /etc/postfix/master.cf: line 17: bad field count
Problem solved by using correct spacing in master.cf
smtp inet n - n - - smtpd -o content_filter=domrz_filters
postfix check
/usr/sbin/postconf: fatal: file /etc/postfix/master.cf: line 17: bad field count
Problem solved by using correct spacing in master.cf
smtp inet n - n - - smtpd -o content_filter=domrz_filters
If you get such Ispconfig internal error on login page’
yum install php-xml
service httpd restart
freshclam
systemctl start clamd@amavisd
amavisd -u amavis -c /etc/amavisd/amavisd.conf debug
Mar 19 14:22:06.415 ftp2.xxx.lt /usr/sbin/amavisd[9728]: logging initialized, log level 0, syslog: amavis.mail
Mar 19 14:22:06.415 ftp2.xxx.lt /usr/sbin/amavisd[9728]: sd_notify (no socket): STATUS=Config files have been read, modules loaded.
Mar 19 14:22:06.415 ftp2.xxx.lt /usr/sbin/amavisd[9728]: starting. /usr/sbin/amavisd at ftp2.xxx.lt amavisd-new-2.11.1 (20181009), Unicode aware, LANG="C"
Mar 19 14:22:06.415 ftp2.xxx.lt /usr/sbin/amavisd[9728]: perl=5.016003, user=amavis, EUID: 994 (994); group=, EGID: 991 (991)
ERROR: MISSING REQUIRED ADDITIONAL MODULES:
DBD::mysql
Fix:
yum install "perl(DBD::mysql)"
Connecting to license.directadmin.com|185.42.221.168|:443… connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.
Error downloading the license file from relay server as well.
echo 1 > /root/.insecure_download
[Sat Mar 7 10:53:36 EET 2020] url=’https://acme-v01.api.letsencrypt.org/acme/reg/24591046′
[Sat Mar 7 10:53:36 EET 2020] payload='{“resource”: “reg”, “agreement”: “https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf”}’
[Sat Mar 7 10:53:36 EET 2020] POST
[Sat Mar 7 10:53:36 EET 2020] url=’https://acme-v01.api.letsencrypt.org/acme/reg/24591046′
[Sat Mar 7 10:53:36 EET 2020] _CURL=’curl -L –silent –dump-header /var/lib/acme/.acme.sh/http.header ‘
[Sat Mar 7 10:53:37 EET 2020] _ret=’0′
[Sat Mar 7 10:53:37 EET 2020] code=’400’
[Sat Mar 7 10:53:37 EET 2020] Update account error.
[Sat Mar 7 10:53:37 EET 2020] _on_issue_err
[Sat Mar 7 10:53:37 EET 2020] Please check log file for more details: /var/lib/acme/.acme.sh/acme.sh.log
./acme.sh/acme.sh --upgrade
[Sat Mar 7 11:01:11 EET 2020] Installing from online archive.
[Sat Mar 7 11:01:11 EET 2020] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
[Sat Mar 7 11:01:13 EET 2020] Extracting master.tar.gz
[Sat Mar 7 11:01:13 EET 2020] Installing to /var/lib/acme/.acme.sh
[Sat Mar 7 11:01:13 EET 2020] Installed to /var/lib/acme/.acme.sh/acme.sh
[Sat Mar 7 11:01:13 EET 2020] Installing alias to ‘/var/lib/acme/.bashrc’
[Sat Mar 7 11:01:13 EET 2020] OK, Close and reopen your terminal to start using acme.sh
[Sat Mar 7 11:01:13 EET 2020] Good, bash is found, so change the shebang to use bash as preferred.
[Sat Mar 7 11:01:13 EET 2020] OK
[Sat Mar 7 11:01:13 EET 2020] Install success!
[Sat Mar 7 11:01:13 EET 2020] Upgrade success!
If WordPress website simply stuck on upgrade, you should manually remove .maintenance file in your website root directory.
0 0 * * * sleep `shuf -i 1-86400 -n 1`; mktemp
Run:
echo '0 0 * * * sleep `shuf -i 1-86400 -n 1`; mktemp' | sudo tee -a /var/spool/cron/$USER
expr $RANDOM % 14400 | tee >(xargs sleep)
vit 14357 0.0 0.0 215528 708 pts/8 S 14:21 0:00 xargs sleep
vit 14358 0.0 0.0 215220 704 pts/8 S 14:21 0:00 sleep 157
expr $RANDOM % 14400 | tee /dev/tty | xargs sleep
ps -eo state,pid,cmd | awk '/^D/ { print "proccess: " $3 ; system("cat /proc/"$2"/io") }'
proccess: [md1_raid10]
rchar: 0
wchar: 0
syscr: 0
syscw: 0
read_bytes: 0
write_bytes: 0
cancelled_write_bytes: 0
proccess :/opt/cpanel/ea-php56/root/usr/bin/php-cgi
rchar: 334932
wchar: 3941
syscr: 177
syscw: 26
read_bytes: 4096
write_bytes: 8192
cancelled_write_bytes: 4096
docker 2>&1 | grep -- -D
-D, --debug Enable debug mode
docker build -t myimage:latest -f- . <<EOF FROM centos CMD mkdir /app WORKDIR /app RUN echo "file contents" > file.txt EOF Sending build context to Docker daemon 16.43kB Step 1/4 : FROM centos ---> 470671670cac Step 2/4 : CMD mkdir /app ---> Using cache ---> cf9be82aca00 Step 3/4 : WORKDIR /app ---> Using cache ---> 24baea1f7712 Step 4/4 : RUN echo "file contents" > file.txt ---> Using cache ---> 61db761dc411 Successfully built 61db761dc411 Successfully tagged myimage:latest docker run --name ttt -ti -d --privileged=true myimage "/sbin/init" docker exec -it ttt cat '/app/file.txt' file contents
CTRL+p CTRL+q
Use privileged if have problems with systemd inside docker:
docker run --name centos01.server -ti -d --privileged=true centos "/sbin/init"