Archive for September 2011

Cpanel + WordPress site showing blank page + .htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

If your wordpress site is showing white blank page and the cpanel>error log shows

".htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable"

Do the following steps to fix this issue.

If you have recently made any changes to your domain, ie, if you have installed a new plugin or changed the theme of the site,deactivate it and check again the site is loading correctly or not.

If still the issue persists the issues must be with your frontpage extensions.

Login to Cpanel > Frontpage Extensions > Reinstall extensions

Done this will fix the ”.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable” error. Check your site again and you can see that the site is loading fine.

Increase max upload size for Drupal in your custom php.ini

Drupal’s max upload size can be determined either from the server wide php.ini or from the custom php.ini which we have created in the Drupal root directoy.
(Drupal custom settings can be set at Admin > Site Configuration > File Upload). The default values for PHP maximum upload size is 2 MB.

There are mainly two PHP settings related to upload size. They are ‘post_max_size’ and ‘upload_max_filesize’. Since ‘post_max_size’ is the limit for all the content of your post, many people choose ‘post_max_size’ to be a multiple of ‘upload_max_filesize’ to allow multiple files to be uploaded, but this is not essential. The upload module limits the size of a single attachment to be less than either post_max_size, or upload_max_filesize, whichever is smaller. The default PHP values are 2 MB for upload_max_filesize, and 8 MB for post_max_size.

Depending on your host, changing these two PHP variables can be done in a number of places with the most likely being php.ini or .htaccess (depending on your hosting situation).

Read more