chroot mount bind

mkdir -v -p /sftp/root/${USER}/home chown root.root /sftp/root/${USER} mount –bind //${DIR} /sftp/root/${USER}/home useradd -g tomcat -s /sbin/nologin ${USER} sshd_config Match Group tomcat AllowTcpForwarding no ForceCommand internal-sftp -u 0002 -d home ChrootDirectory /sftp/root/%u All folder must have permission as 777, so I […]

Tags: , , , ,

varnish for wordpress

/etc/yum.repos.d/varnish.repo [varnishcache_varnish41] name=varnishcache_varnish41 baseurl=$basearch repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey= sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 OK, ready then yum clean all yum install varnish Check the version: # /usr/sbin/varnishd -V varnishd (varnish-4.1.8 revision d266ac5c6) here is my varnish default configuration /etc/sysconfig/varnish NFILES=131072 MEMLOCK=2000 NPROCS=”unlimited” […]

Tags: ,

centos 7 disable useless services

This some of the tuning I do on a centos 7 install REMOVE USLESS NETWORK INTERFACE brctl delbr virbr0 systemctl get-default systemctl set-default DISABLE USELESS SERVICESON GUI INSTALLS: ON BASIC WEB INSTALLS: systemctl disable firewalld.service irqbalance.service abrtd.service polkit.service smartd.service […]

Tags: , , , , ,