Archive for the tag 'options'

SBDavid

EasyApache3 Saving Custom Options

EasyApache3 Saving Custom Options

Every time Apache is rebuilt, its current configuration is stored as Previously Saved Config, in both the command line and WHM EasyApache interfaces. However, you may still want to store your custom configuration for later use.

To store custom options, you should save the configuration with a file name, display name, and description. You can accomplish this under step 6 in EasyApache, by filling in the required information and clicking Save and build or Save only (Do NOT build). Using the Save only (Do NOT build) button can be useful if you would like to create a profile for a different server.

The custom profile is saved to the

/var/cpanel/easy/apache/profile/custom/

directory on your server, and automatically given the filename extension .yaml.

SBDavid

rebuild_phpconf help options

rebuild_phpconf help options

To see a list of all options and arguments for this script, type the following from the command line:

/usr/local/cpanel/bin/rebuild_phpconf –help

The system will display usage information as follows:

Usage: /usr/local/cpanel/bin/rebuild_phpconf [--dryrun] [--no-restart] [--no-htaccess]
[--current|--available]
–dryrun : Only display the changes that would be made
–no-restart : Don’t restart Apache after updating the php.conf link
–no-htaccess : Don’t update user configurable PHP mime mapping.
–current : Show current settings
–available : Show available handlers and PHP SAPIs
[Default PHP] : Version of PHP to set as default handler for .php files
[PHP# Handler] : Type of Apache module to use in serving PHP requests
: enabled, disabled, 1 or 0
SBDavid

SafePHPCGI PHP options

SafePHPCGI PHP options

SafePHPCGI — This option sets 2 flags for PHP that attempt to lock PHP to system php.ini files. This prevents users from using custom php.ini files when PHP is served via CGI. However, enabling this option does not prevent the use of custom php.ini files if PHP is running via mod_suphp.

SBDavid

Cpanel Important PHP options

Cpanel Important PHP options

Most PHP options simply enable an extension that is shipped with PHP.

CGI — This option is enabled by default. Disabling this option will cause a PHP CLI binary to install in /usr/bin/php and /usr/local/bin/php. When no CGI binary is available, your server will be unable to serve PHP requests without DSO.

Concurrent DSO patch — By default, Apache is unable to load libphp4 and libphp5 simultaneously. This option applies a patch to PHP that versions objects in libphp4 and libphp5. This option will also create new Apache directives so that both PHP 4 and 5 can be communicated with separately.

This option is not required if you will serve both versions of PHP via SuPHP, CGI, or FCGID.

Important: Compiled PHP extensions other than those shipped with PHP will not function correctly with this patch enabled. Enabling this module may also render some PECL and PEAR modules nonfunctional. Do not use this module unless you must serve both PHP 4 and 5 as DSOs and can work around other issues it will case.

Reference: http://cpanel.net/

SBDavid

Cpanel Apache options related to PHP

Cpanel Apache options related to PHP

Apache options that directly affect how PHP is served.

* CGI (mod_cgi) — This module is required for Apache to execute CGI scripts. Leave this option enabled. Disabling it will prevent mod_cgi from serving PHP pages.

* CGID (mod_cgid) — This module is only available for Apache 2.x and is required as a replacement for mod_cgi when using threaded MPMs. If you wish to use a threaded MPM, make sure this module is enabled.
* Mod FCGID — This module is only available with Apache 2.x and allows Apache to create and manage FastCGI server processes that remain in memory between HTTP requests. Because any binary capable of using the FastCGI protocol can be managed using this module, you can enable mod_fcgid independently of FastCGI support in PHP. This would, for instance, allow you to serve Ruby via FastCGI.

Referemce : FastCGI documentation - http://www.fastcgi.com/drupal/node/6

Next »