configurate apache-caucho /etc/httpd/conf/httpd.conf LoadModule caucho_module modules/mod_caucho.so <Location /caucho-status> AuthType Basic AuthName "restricted area" AuthUserFile /home/domain/.htpasswd require valid-user SetHandler caucho-status </Location> <Location /servlet/*> SetHandler caucho-request </Location> NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain.com DocumentRoot /home/domain/public_html php_admin_value open_basedir /home/domain:/tmp php_admin_value include_path /home/domain LimitRequestLine 81900 <FilesMatch "^((?!\.php).)*$"> ResinConfigServer localhost 6800 CauchoConfigCacheDirectory /etc/httpd CauchoStatus yes </FilesMatch> […]
CentOS 7 : /resin-admin setup Hint
/etc/resin/resin.properties app.http : 8080 web.http : 8080 remote_admin_enable : true web_admin_enable : true web_admin_external : true admin_external : true admin_secure : true http://www.domain.com:8080/resin-admin/login.php Generate encrypted password by [Create Configuration FIle] /etc/resin/admin-users.xml <resin:AdminAuthenticator xmlns="http://caucho.com/ns/resin" […]
mac mdworker cpu cost disabled Hint
$ sudo mdutil -a -i off $ sudo mdutil -a -i on
Mac OS : cron Hint!
$ crontab -l $ crontab -e $ ps aux | grep cron
Mac OS X : Copy & Paste Clipboard Error Reset Hint
Kill pboard process
Remove All Tap-Windows Adapter V9 by OpenVPN
Step1. download OpenVPN https://openvpn.net/index.php/download/community-downloads.html Step2. install "TAP-Windows" only Step3. Go TAP-Windows Folder > cd C:\Program Files\TAP-Windows\bin Step4. Edit deltapall.bat by Notepad, if need be.. like below (it needs to set write access) ------------------------------------------------------------ pause "C:\Program Files\TAP-Windows\bin\tapinstall.exe" remove tap0901 pause "C:\Program Files\TAP-Windows\bin\tapinstall.exe" remove tapoas pause ------------------------------------------------------------ Step5. execute deltapall.bat
mac os x : brew cask install diffmerge Hint
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null $ brew cask install diffmerge $ /usr/local/bin/diffmerge
centos 7 : mariadb Too many open files Hint
[root@owl47 lib]# cat /var/run/mariadb/mariadb.pid 29249 [root@owl47 lib]# cat /proc/29249/limits Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited […]
mariadb : user log & logrotate Hint
# vi /etc/my.cnf [mysqld] general-log general-log-file=/var/log/mariadb/queries.log log-output=table,file [mysqld_safe] long_query_time = 3 #log=/var/log/mariadb/mysqld.log log-slow-queries=/var/log/mariadb/mysqld-slow.log log-error=/var/log/mariadb/mariadb.log [mysqladmin] password = XXXXXXX user = root # vi /etc/logrotate.d/mariadb /var/log/mariadb/mariadb.log { create 640 mysql mysql notifempty daily […]