PHP Sessions causing Error

Currently your messages log is filling up with errors and the system is unstable. Check the message log: $ server# tail -f /var/log/messages Jul 28 08:57:30 mail kernel: EXT4-fs warning (device sda3): ext4_dx_add_entry: Directory index full! Check the sessions directory $ server# php -i | grep session.save_path session.save_path => /var/lib/php/session => /var/lib/php/session $ server# du Read more about PHP Sessions causing Error[…]

Find All The Files Owned By a Particular User / Group

Find file owned by a group find directory-location -group {group-name} -name {file-name} directory-location : directory path. -group {group-name} : group-name. -name {file-name} : The file name or a search pattern Issue: Plesk server will not allow updating plugins and the site is running as fastcgi – which uses the ftp user as the root user Read more about Find All The Files Owned By a Particular User / Group[…]

Find All Files and Directories that are permissions 777

For directories [root@server]# find /var/www/vhosts/domain.com/httpdocs -type d -perm 777 -print Set to 755: root@server ]# find /var/www/vhosts/domain.com/httpdocs/ -type d -perm 777 -exec chmod 755 {} \; For Files [root@server]# find /var/www/vhosts/domain.com/httpdocs -type f -perm 777 -print Set to 644: [root@server]# find /var/www/vhosts/domain.com/httpdocs -type f -perm 777 -exec chmod 644 {} \;