Archive for the tag 'update_php_mime_types'

SBDavid

update_php_mime_types Examples

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/

SBDavid

The update_php_mime_types Script

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/