Skip to main content

Posts

Showing posts from August, 2019

Note on custom build legacy php, apache CentOS

https://stackoverflow.com/questions/979453/how-can-i-use-aliased-commands-with-xargs/979504 find -name \*bar\* | xargs bash -ic gi foo It seem use bash function is easier. I remember that I've create some function like this before, it look like this: #DIRECTORY=$1 FILETYPE = $1 KEYWORD = $2 find . -name "*.FILETYPE" | xargs grep -rni KEYWORD $1 ... https://serverfault.com/questions/421161/how-to-configure-vsftpd-to-work-with-passive-mode https://www.yanxurui.cc/posts/server/2017-03-21-NGINX-as-a-file-server/ https://serverfault.com/questions/807074/enable-password-login-for-sftp-while-keeping-authentication-by-ssh-keys ... PasswordAuthentication no ... Match user drupalsftp     PasswordAuthentication yes PasswordAuthentication no ... Match user drupalsftp address 10.1.2.3/32     PasswordAuthentication yes     # also since we want only sftp     ForceCommand internal-sftp Err Traceback (most ...