Hello,

I recently installed Drupal 7 to several of my clients sites hosted on a WHM / cPanel hosting service, and came across a number of issues that resolved by using the following PHP.INI file in the root directory of the Drupal 7 installation.
The issues mainly focused on uploading files to the server, such as a custom logo.

I also had to create two folders at the same level as public_html to use as the "private" and "tmp" folders.
I named them drupal_private and drupal_tmp, and added the paths ../drupal_private and ../drupal_tmp to the
admin/config/media/file-system page

PHP.INI

memory_limit = 128M
safe_mode = off
session.cache_limiter = nocache
open_basedir = none
extension = pdo.so
extension = pdo_mysql.so

I hope someone else finds this useful.

Comments

dildileep’s picture

it was really useful.. helped to increase the speed

campbjp’s picture

I found your answer after my test site crashed. I was hoping that it was a memory issue, I literally had my fingers crossed.

Not only did it fix my problem it made my site faster!

Thank you for posting your solution. It definitely helped this noob out!

barone’s picture

Nice one! I would add, just in case, a first line:
register_globals false