Modifing PHP settings on a cPanel server

Modifing PHP settings on a cPanel server

The Problem

The Solution

Some modifications can be changed via ini settings. For others you may have to recompile PHP.

Ini Settings

For ini settings you can change the ini file, but an easier way is to add configuration settings to the .htaccess fill. By adding changes to the .htaccess file, you will not affect other sites. The changes will only affect the directory the .htaccess file is in and all subdirectories.

Recompile Changes

In order to upgrade php or add modules such as GD, Curl, mbstrings, etc you will need to recompile apache and php. Fortunatly, cPanel makes this easy. Login into the WHM. Select software>apache updates. (You can get the password from orbit) At the first step leave the default profile and click next. When you get to step five, click on the expanded list. This where you can make your settings. Recompiling will take around 10 minutes and you have to let it finish.

Related Posts

The Ultimate Server: Mercury + Aegir

Randall Knutson
Read more

Create a high performance Drupal server for just $30 a month

Randall Knutson
Read more

Improve Drupal Website Performance on Shared Hosting

Rachel
Read more

Breaking up the Monolithic Drupal Site with a Subdomain Multisite

Randall Knutson
Read more

How to Install Drupal 7 Locally Tutorial

Tom McCracken
Read more

Automated Logout with Drupal

Rachel
Read more