Custom Configure Flags
Custom configure flags (also known as “raw opts”) are lines of data that advanced users can add to a specific file on the server in order to customize the configuration of Apache or PHP builds.
To add custom configure flags, you must know the version of Apache and PHP to which you need to add the flag. EasyApache allows you to specify any configure option supported by Apache and/or PHP. Simply place the option in the appropriate file; the files are as follows:
For Apache 1.3.x — /var/cpanel/easy/apache/rawopts/Apache1
For Apache 2.0.x — /var/cpanel/easy/apache/rawopts/Apache2
For Apache 2.2.x — /var/cpanel/easy/apache/rawopts/Apache2_2
For all PHP 4.x versions — /var/cpanel/easy/apache/rawopts/all_php4
For all PHP 5.x versions — /var/cpanel/easy/apache/rawopts/all_php5
For Mod_suPHP — /var/cpanel/easy/apache/rawopts/all_suphp
For a specific PHP Version — /var/cpanel/easy/apache/rawopts/PHP-X.X.X
cPanel Security Tokens
cPanel have added numerous security features to cPanel/WHM 11.25. cPanel security token system attempts to prevent cross-site request forgery (XSRF) attacks by appending URLs with a session token in the form of cpsess[number].
When this feature is enabled, absolute URLs are no longer allowed. This new feature helps to ensure a safe environment.
cPanel Version 11.25 XML API Functions
Version 11.25 adds 16 new XML API functions to better integrate cPanel/WHM with custom software.
New API functions:
View information about a domain
Add a DNS zone record
Edit a DNS zone record
View all DNS zone records for a domain
Remove a DNS zone record
Reset a DNS zone record to the settings found in httpd.conf
Assign a reseller IP addresses
Set reseller limits
Set a reseller’s main IP address
Define reseller packages
Suspend a reseller’s account
Unsuspend a reseller’s account
View information about a reseller’s accounts
Define a reseller’s nameservers
Configure a service
Change the IP address of a domain
Modify Apache default success page
To modify the apache default success page, follow the steps below:
We just have to login to your server via ssh. Navigate to /usr/local/apache/htdocs
cd /usr/local/apache/htdocs And finally edit the file index.html nano index.html
Installing or Updating PostgreSQL on Your cPanel & WHM Server
cPanel & WHM works with PostgreSQL 7.3.x or later.
Using the command line interface, log into your server as root.
If you have PostgreSQL 7.2.x installed, back up your databases using pg_dumpall or some other method. If you have databases you wish to keep, move your existing PostgreSQL data directory somewhere else by, for example, typing the following command.
mv /var/lib/pgsql /var/lib/pgsql.old
To begin the installation process:
On a CentOS or RedHat system, use the following script:
This script executes yum install postgresql (and related RPMs).