Category Archives: Tutorial

Securing php.ini

Disabling Functionality There are certain functions in PHP that we don’t want users to use because of the danger they are. Even if you know your users aren’t utilizing certain functions it is wise to completely disable them so an attacker can’t use them. This security precaution is especially effective at stopping an attacker who… Read More »

How to restore Incremental backup on cPanel Machine

Most of you got the Incremental backup located at ‘/backup’ so if you are not the one of those please modify the value of ‘/backup’ path to the correct path. Step 1) Taring the backup folder /usr/local/cpanel/bin/cpuwatch 4.0 tar -czf /home/user.tar.gz /backup/cpbackup/daily/user * /usr/local/cpanel/bin/cpuwatc is used to monitor the cpu load. If the load goes… Read More »

Never Delete Any Files From /home/virtfs/

/home/virtfs folder is used to chroot the user into jailed shell. Cpanel will hard link files into this directory so deleting files in /home/virtfs will also delete the files on the server in the actual location. (example: rm /home/virtfs/user/etc/exim.pl will delete /etc/exim.pl) If a user is reporting double the quota and it is from /home/virtfs… Read More »