- Product Support
If you want to use custom PHP modules, you can manage them through a PHP initialization file (more info).
To enable a PHP module, add the following line:
extension = extension name.so
You’ll need to add a version of this line for each module you want to enable. For a list of some [...]
PHP initialization files can manage form, server, and environmental variables as well as server-side cookies, temporary directories, error display, and error logging.
The file name your PHP initialization must use depends on the type of hosting account you have (more info).
Too many files in a single folder/directory – 1,000 or more – causes severe performance problems on most file systems. If the files are already linked to in your HTML, simply moving them can be a hassle. Here’s a solution that moves your files and uses mod_rewrite to let you [...]
A PHP initialization file is not always immediately recognized by shared hosting accounts’ servers. Here are tips for making sure it does take effect.
Things to Check
Make sure you’re using the correct filename (more info).
Understand your PHP initialization file’s refresh rate:
cPanel offers built-in error logging, but it doesn’t catch errors generated from PHP and doesn’t keep error logs for extended periods of time. To remedy this, you can have PHP store errors it encounters in your own error log file.
To Set up Custom-Defined Error Logs in cPanel
Create a file called [...]
If you need to see exactly what PHP version you use, you can find out with a PHP info script.
If you want to disable Alternative PHP Cache (APC), you can do so by modifying your PHP initialization file file.
To Disable APC
Using your hosting account’s editor, open your website’s PHP initialization file. For more information, see What filename does my PHP initialization file need to use?
PHP is a popular and simple server scripting language that enables Web developers to embed dynamic content into Web pages. PHP 5 is enabled for all Linux hosting accounts. PHP 5 is enabled for Windows hosting accounts running IIS 7, only.
For information on migrating an existing hosting account, [...]