Archive for the tag 'cpanel'

Processing the cPanel Apache Configuration

Processing Apache’s configuration file is completed in 2 routines.

1. The first routine attempts to extract VirtualHost domain information and combine it will other cPanel data, in effect creating “user data.” This information is used in mapping domains to user accounts. This particular task is carried out by the userdata_update utility (/usr/local/cpanel/bin/userdata_update).

If you wish to make custom alterations you would need to run /usr/local/cpanel/bin/userdata_update –update.

2. The second routine attempts to pull out the remaining information within each VirtualHost entry. Some of this information is version-specific and requires the Apache directive-aware tool /usr/local/cpanel/bin/apache_conf_distiller. This is the same tool that processes Apache’s main directives and generates the main Apache template.

Reference: http://cpanel.net/

Cpanel supported virtual environments and supported operating systems

Supported Virtual Environments1, 2
KVM
Linux-VServer
Microsoft Server® 2008 Hyper-V3
OpenVZ (stable releases only)
Oracle VM VirtualBox, VirtualBox OSE
Virtuozzo™
VMware® Server, VMware® ESX Server
Xen, XenEnterprise™, XenExpress™, XenServer™

Supported Operating Systems

(i386 and x86-64 ONLY)
CentOS versions 4.x, 5.x
Red Hat® Enterprise Linux® versions 4.x, 5.x
FreeBSD®-RELEASE versions 7.3, 8.0, 8.1

cPanel does not support VPS licenses for the FreeBSD operating system.
cPanel does not support 32-bit Virtual Environments that run on a 64-bit host kernel.
cPanel supports the drivers and configurations provided by Microsoft.

Reference: http://cpanel.net/

CentOS Cpanel Quick Install CD ISO Images & kickstart file

CentOS-5.4-i386-cPanel.iso (Wed Feb 24 22:31:12 2010)
CentOS-5.4-x86_64-cPanel.iso (Wed Feb 24 22:32:13 2010)

Sample kickstart file for automated CentOS Linux installs:

http://httpupdate.cpanel.net/cpanel-ks.cfg

SBDavid

Installing Softaculous in cPanel

Installing Softaculous in cPanel

Softaculous is a great Auto Installer having 150 great scripts and we are still adding more. Softaculous is ideal for Web Hosting companies and it could give a significant boost to your sales. These scripts cover most of the uses a customer could ever have.

Note: Before starting the installation make sure ionCube Loaders are enabled. For that go to WHM and click on Tweak Settings. Please make sure that the Ioncube loader is selected for the backend copy of PHP. Now SSH to your server and enter following commands:

cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -N http://www.softaculous.com/ins/addon_softaculous.php
chmod 755 addon_softaculous.php

Now go to : WHM > Plugins (Add-Ons on older versions than 11) > Softaculous - Instant Installs

Cpanel disk space consumed by an account’s MySQL and PostgreSQL database

To enable this feature toggle the following Tweak Setting:

When displaying disk usage in cPanel/WHM include Postgresql and MySQL® disk usage.

As with the database counts, the disk usage calculation is handled by /scripts/update_db_cache which executes every 4 hours. This script is executed upon enabling the Tweak Setting. Administrators may also execute this script to recalculate the figures.

The disk usage figures are stored in /var/cpanel/datastore/mysql-disk-usage and /var/cpanel/datastore/postgres-disk-usage.

cat /var/cpanel/datastore/mysql-disk-usage

Support for /scripts/updatemysqlquota ends as of cPanelTM 11.25.0. Per this change /scripts/updatemysqlquota is no longer distributed with the product.

Reference: http://cpanel.net

« Prev - Next »