CentOS7 : /caucho-status setup with .htpasswd in VirtualHost, using pure php Hint

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>   […]

Read More

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"                     […]

Read More

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      

Read More

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     […]

Read More