Author Archive

nginx selinux php-fpm error Permission denied

[crit] 24496#24496: *2747 connect() to failed (13: Permission denied) while connecting to upstream, client: , server: , request: “GET /test.php HTTP/1.1”, upstream: “fastcgi://”

[error] 24496#24496: *2731 open() index.html failed (13: Permission denied), client: , server: request: “GET /index.html HTTP/1.1”, host:


centos 7 inerface config

ip link add link enp9s4f0 name enp9s4f0.100 type vlan id 100
ip link set dev enp9s4f0.100 up
ip addr add dev enp9s4f0.100
ip route add default via

ip a

Monitoring Process and User

##Display Statistics of Users Connect Time

# ac

##Display Statistics of Users Day-wise

# ac -d

##Display Time Totals for each User

# ac -p

##Display Individual User Time

# ac tecmint

##Display Day-Wise Logn Time of User

# ac -d tecmint


FreeBSD run problem after upgrade

FreeBSD upgrade from 7.4->8.1 or 8.1->8.2
Freebds freeze on boot.

Boot on single user mode and ADD to /boot/device.hints


FFserver, which has been removed :(

APIchanges: FFserver, which has been removed from FFmpeg 🙁

multimedia/ffmpeg: update to 4.0

– FFSERVER support was removed upstream
– libressl now uses libtls backend instead of patching openssl one

postgress dump restore

pg_dumpall > db.out
psql -f db.out postgres

centos virualmin nginx php-fpm

cd /opt
git clone
tar -zcf virtualmin-nginx-fpm.tar.gz virtualmin-nginx-fpm

Webmin menu >> Mebmin module >> Install Module >> From local file >> enter /opt/virtualmin-nginx-fpm.tar.gz >> click ‘Install Module’.

ERROR 1577 (HY000): Cannot proceed because system tables used by Event Scheduler were found damaged at server start

#mysql_upgrade -u [username] -p
#mysqlcheck -u [username] -p --all-databases --check-upgrade --auto-repair
#systemctl restart mysqld

mysql> show events;
Empty set (0.00 sec)

Replase date format in file name

Mass replase date format in filename

From filename_012017.txt to filename_12017.txt

ls | sed -e 'h;s/_0/_/;x;G;s/^\(.*\)\n\(.*\)$/\ln -s \1 \2/' | sh

fail2ban openfire

#vim filter.d/openfire.conf

before = common.conf


failregex = ^ WARN.*org.jivesoftware.admin.LoginLimitManager – Failed admin console login attempt by admin from $

ignoreregex =

datepattern = ^%%Y.%%m.%%d %%H:%%M:%%S

vim jail.conf

enabled = true
filter = openfire
action = iptables-allports[]
logpath = /opt/openfire/logs/all.log