Posts

Showing posts from February, 2025

chroot failed

 [mnt]         path = /mnt/         comment = An Example         auth users = root         secrets file = /etc/rsyncd.secrets         read only = no         uid = root         gid = root         use chroot = yes chroot like this won't work [mnt]         path = /mnt/data         comment = An Example         auth users = root         secrets file = /etc/rsyncd.secrets         read only = no         uid = root         gid = root         use chroot = yes path should be single directory or path not  subfolder

globaltrendz

 hetiacp  nginx and php-fpm  systemctl restart php8.2-fpm mkdir -p /run/php/ systemctl status php8.2-fpm root@server4:/var/log# cd php8.2-fpm.log php8.2-fpm.log       php8.2-fpm.log.1     php8.2-fpm.log.2.gz  php8.2-fpm.log.3.gz /usr/local/hestia/log error.log 2025-02-04 04:54:09 v-update-sys-hestia  'hestia-nginx' [Error 19] 2025-02-04 04:54:44 v-update-sys-hestia  'hestia-php' [Error 19] 2025-02-05 04:40:24 v-update-sys-hestia  'hestia' [Error 19] 2025-02-05 04:40:45 v-update-sys-hestia  'hestia-nginx' [Error 19] 2025-02-05 04:41:06 v-update-sys-hestia  'hestia-php' [Error 19] 2025-02-06 04:49:45 v-restart-service  'nginx' 'yes' [Error 20] 2025-02-06 04:49:48 v-restart-web  'yes' [Error 20] 2025-02-06 04:49:49 v-restart-service  'php8.2-fpm' 'yes' [Error 20] i want to add these lines, location /api-grub { proxy_pass http://127.0.0.1:8033; proxy_http_version 1.1; proxy_set_he...

awstats fix for 55 server

 [root@linux2 bum]# cat daw.sh for user in $(ls /usr/local/directadmin/data/users); do   for domain in $(cat /usr/local/directadmin/data/users/$user/domains.list); do     awstats_config="/home/$user/domains/$domain/awstats/.data/awstats.$domain.conf"     awstats_path="/home/$user/domains/$domain/awstats/awstats.pl"     log_path="/var/log/httpd/domains/$domain.log"     if [ -f "$awstats_path" ] && [ -f "$awstats_config" ]; then       # Ensure AWStats is using the correct log file       sed -i "s|^LogFile=.*|LogFile=\"$log_path\"|" "$awstats_config"       echo "Updating AWStats for $domain (January 2025) using $awstats_path..."       cat /var/log/httpd/domains/$domain.log | \       perl "$awstats_path" -config=$domain -update     else       echo "AWStats config or script missing for $domain, skipping..."     fi   done ...