Archive for the tag 'cpanel'

SBDavid

WHM Scripts

WHM Scripts

When cPanel and WHM is installed, a number of predefined scripts become available in your server’s /scripts directory.

For example, if you wanted to run the update script, you would type:

/scripts/upcp

#easyapache — Upgrades and reinstalls Apache.
#phpextensionmgr — Manages PHP extensions.
# restartsrv_* — Restarts a service.
# *up — Updates a service.

* bandminup — Bandmin application.
* courierup — Courier mail server.
* cpaddonsup — cPanel’s addon scripts.
* dovecotup — Dovecot mail server.
* eximup — Exim mail exchanger.
* ftpup — FTP servers (ProFTP and Pure-FTP).
* imapup — IMAP mail server.
* mysqlup —MySQL service.
* nsdup — BIND nameserver.
* phpup — Current version of PHP.
* suphpup — SuPHP tool for handling PHP requests.

Selecting a cPanel Build Type Pre-Installation

You can define your build type by defining the variable CPANEL. cPanel offers 4 build types to choose from: stable, release, current, and edge.

To choose the build type, add 1 of the 4 following lines to /etc/cpupdate.config.

* CPANEL=stable
* CPANEL=release
* CPANEL=current
* CPANEL=edge

The cPanel and WHM interfaces will be installed according to which of the 4 options you define in the configuration file.

Installing and Configuring CSF Firewall

ConfigServer Firewall & Security. A Stateful Packet Inspection (SPI) firewall, Login/Intrusion Detection.

This article demonstrates how to install and configure the CSF (configserver) firewall. CSF can be used on a wide range of Linux systems, including those running cPanel.

cd /tmp
wget http://www.configserver.com/free/csf.tgz
tar zxf csf.tgz
cd csf
sh install.sh

To configure CSF modify the config files in /etc/csf/ - or if you are running WHM you can modify the CSF settings in there. By default CSF opens the standard cPanel ports.

If you have APF + BFD you will need to disable it, you can use the following to do so:

sh disable_apf_bfd.sh
SBDavid

How to Fix cPanel/WHM Quotas

To Fix Common reasons for quota problems

Run the following command as root user.

/scripts/fixquotas

Try finding other files owned by the user.

find -user username > /tmp/username.txt

This will list all files owned by this user that could be affecting the quota reported by Cpanel.

Cpanel/WHM sometimes has problems with the user quota files causing all users accounts to have unlimited disk space available or 0 megs of disk space in use.

« Prev