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/

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.