Disable ipv6 on RHEL 4 and 5
Edit /etc/sysconfig/network and change
NETWORKING_IPV6=yes to
NETWORKING_IPV6=no
Edit /etc/modprobe.conf and add these lines (if they’re not in it):
alias net-pf-10 off
alias ipv6 off
Stop the ipv6tables service by typing:
Disable the ipv6tables service by typing:
IPv6 will be disabled after the next reboot of the system.
Tags: Disable, IPv6, RHEL
update_php_mime_types Examples
update_php_mime_types –verbose
Update all user .htaccess files that already contain PHP MIME mappings.
update_php_mime_types –user=buddy –force=4 –verbose
Set buddy’s main .htaccess file to use PHP 4 by default.
update_php_mime_types –user=buddy –strip –verbose
Remove all PHP AddHandler lines and marker comments from buddy’s .htaccess files.
Reference: http://cpanel.net/
Tags: Examples, update_php_mime_types
The update_php_mime_types Script
There is a command line tool for managing these settings called update_php_mime_types, located in the /usr/local/cpanel/bin/ directory.
Run the following command for detailed information about how this tool works:
/usr/local/cpanel/bin/update_php_mime_types –man
The update_php_mime_types script is run automatically as part of the EasyApache3.
It will update or remove PHP AddHandler directives in .htaccess files down to, by default, 3 levels deep within users’ home directories.
note Note: You can configure the depth for update_php_mime_types from the Tweak Settings page.
To prevent this update from occurring, create a file named:
/var/cpanel/easy_skip_update_php_mime_types
Reference: http://cpanel.net/
Tags: Script, update_php_mime_types
User-Level PHP Handling Customization
When PHP 4 and PHP 5 are both enabled and served using the CGI, DSO, or suPHP configurations, cPanel lets the user select the default PHP version that processes .php files for all domains assigned to that account.
This interface is available in cPanel’s X3 theme under Software/Services >> PHP Configuration. Available settings are PHP 4, PHP 5, and System Default.
The chosen value is reflected in the .htaccess file in the user’s home directory. If a user requires file extensions other than .php to be processed by the selected version of PHP, add those file extensions after .php to the AddHandler line in the .htaccess file.
Tags: customization, Handling, PHP, User-Level
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.
Tags: options, PHP, SafePHPCGI