Pages

Saturday, 1 March 2014

Accidentally removed files in /var/cpanel/userdata, how to restore it [WHM/cPanel]



Follow the steps below,

- Take the backup of /var/cpanel/userdata
- Run /usr/local/cpanel/bin/userdata_update --reset so that /var/cpanel/userdata can be regenerated.
- Move the required files from new /var/cpanel/userdata to old one.
- Move the old /var/cpanel/userdata back after copying the required files.
- Rebuild Apache conf as /usr/local/cpanel/bin/build_apache_conf
- Restart Apache /etc/init.d/httpd stop ; /etc/init.d/httpd start

Suggested by cPanel :)

Default index page with account creation [WHM/cPanel]

Hey :)

If you want to add a default index page while creating an account in WHM you need to know about the Skeleton Directory.

In WHM, look for "Account Functions" and choose "Skeleton Directory". This will show you where your directory is. Anything you add to your Skeleton Directory, will automatically be added to the user's directory when you create a new account.

For example, if you place a default HTML page within the "public_html" sub-directory, then it will be included within the public_html directory of the user's new account upon creation.

Example paths:
/root/cpanel3-skel
/root/cpanel3-skel/public_html
/root/cpanel3-skel/public_html/index.html

Remove IP blacklist from SolusVM admin.

Hey guys :)

If you are locked out from the SolusVM admin panel then you can clear the blacklist log by running the following command:

php /usr/local/solusvm/scripts/clearauthlog.php --system --clear=all


Note: Run this command on SolusVM master server.