Entries by admin

Centos /Cloudlinux 7 error restarting a systemd service

Unable to register authentication agent ** (pkttyagent:478736): WARNING **: 18:16:34.777: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0) # groupadd -g 23 nohidproc # usermod -a -G nohidproc polkitd # mount -o remount,rw,hidepid=2,gid=nohidproc /proc # systemctl restart polkit     […]

Fix the glibc error at boot

Environment: Centos 7 Boot Process Error : System Hanging at “Starting Switch Root”,Boot fails. Solution: Replace/Reinstall glibc-x.x.x.el7.x86.64 package after boot your server with centos rescue dvd / cd / iso image rpm -ivh –root=/mnt/sysimage –replacefiles –replacepkgs /run/install/repo/Packages/glibc-x.x.x.el7.x86.64.rpm

Imunify360 enable malware cleanup for all users

One line script for enable malware cleanup for all users.It can be used as batch script for every feature those can be applied only user basis. Other command line options described here for i in $(awk -F: ‘ $3 >= 10000 {print $1}’ /etc/passwd); do imunify360-agent feature-management enable –feature av –users $i; done

List access or error log files with their sizes plesk hosting servers

List all access log files; find /var/www/vhosts/*/logs/error_log -exec ls -la {} \; | awk ‘{print $5 ” ” $9}’ | sort -n List all error log files; find /var/www/vhosts/*/logs/access_log -exec ls -la {} \; | awk ‘{print $5 ” ” $9}’ | sort -n For access logs,there are also other access log files in that […]

Change compression type for Plesk backups

As a new feature,Plesk picked up zstd compression method for backups.If you want to create backup files with classic method you can edit the panel.ini file in two way 1. Go to Extensions ->Install and activate panel editor extension and open the editor in my extensions section Select the editor and add these; [pmm] compressionMethod […]