disable_functions = proc_open,phpinfo,show_source,system,shell_exec,passthru,exec,popen
mysql disallow remote login
bind-address=127.0.0.1
windows install zabbix agent
https://www.zabbix.com/download_agents/
c:\zabbix\zabbix_agentd.exe -c c:\zabbix\zabbix_agentd.conf -i
tor browser fedora
dnf install -y torbrowser-launcher
Tor Browser Launcher
By Micah Lee, licensed under MIT
version 0.3.2
https://github.com/micahflee/torbrowser-launcher
Creating GnuPG homedir /home/user/.local/share/torbrowser/gnupg_homedir
Downloading Tor Browser for the first time.
Downloading https://aus1.torproject.org/torbrowser/update_3/release/Linux_x86_64-gcc3/x/en-US
Latest version: 10.0
Downloading https://dist.torproject.org/torbrowser/10.0/tor-browser-linux64-10.0_en-US.tar.xz.asc
Downloading https://dist.torproject.org/torbrowser/10.0/tor-browser-linux64-10.0_en-US.tar.xz
Verifying Signature
Extracting tor-browser-linux64-10.0_en-US.tar.xz
Running /home/user/.local/share/torbrowser/tbb/x86_64
directadmin back old theme
Reseller Level -> enhanced
mysql delete old binlog data
PURGE BINARY LOGS BEFORE DATE_SUB( NOW( ), INTERVAL 3 DAY)
PURGE BINARY LOGS BEFORE DATE(NOW()) + INTERVAL 0 SECOND - INTERVAL 3 DAY;
mod_ruid2 does not support CentOS8
To fix directadmin install/setup:
dnf install libjpeg-turbo-devel libpng-devel freetype-devel
cd /usr/local/directadmin/custombuild/
vi options.conf
mod_ruid2=no
php1_release=7.2
php1_mode=php-fpm
./build iconv
./build php y
php -v
PHP 7.2.33 (cli) (built: Sep 25 2020 20:48:19) ( NTS )
If still ERROR: Unable to globalize '/usr/local/directadmin/data/users/*/php/php-fpm72.conf' (ret=2) from /usr/local/php72/etc/php-fpm.conf at line 68
./build all d
./build rewrite_confs
./build rewrite_confs
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using xx.xx.xx.xx for your server IP
ls: cannot access '/usr/local/directadmin/data/users/*/httpd.conf': No such file or directory
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
Enabling http2 in directadmin.conf.
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
Enabling http2 in directadmin.conf.
Job for php-fpm72.service failed because the control process exited with error code.
See "systemctl status php-fpm72.service" and "journalctl -xe" for details.
Restarting apache.
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xe" for details.
cd /usr/local/directadmin
./directadmin i
./directadmin p
./build rewrite_confs
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using xx.xx.xx.xx for your server IP
Restarting apache.
systemctl status httpd.service | grep active
Active: active (running) since Fri 2020-09-25 21:15:35 CEST; 2min 36s ag
systemctl status php-fpm72.service | grep active
Active: active (running) since Fri 2020-09-25 21:15:32 CEST; 3min 39s ago
Status: "Processes active: 0, idle: 0, Requests: 0, slow: 0, Traffic: 0req/sec"
cron.hourly not running
run-parts --list /etc/cron.hourly/
/etc/cron.hourly/some_script
run-parts --test /etc/cron.hourly/
/etc/cron.hourly/some_script
Make sure some_script was set executable
ntp server ip
ubuntu fix time
ntpdate 1.lt.pool.ntp.org
server 0.lt.pool.ntp.org
erver 3.europe.pool.ntp.org
server 2.europe.pool.ntp.org
mysql binlog limit file number
max_binlog_files = 10
du sum of file sizes
du -ach /tmp/something*
mysql binlog how much days
show global variables like "%expire_logs_days%";
show global variables like "%binlog_expire_logs_seconds%";
Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it
Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it
If Last_IO_Errno: 0, so its fine if error like 2049 it could be password related issues
mysql create read only user
grant select on database_name.* to 'user'@'%' identified by 'password';
ubuntu sshfs
sshfs -o allow_other,default_permissions [email protected]:/some/destination/path /some/path