HostMonster Web Hosting Help

PHP Config

PHP vs PHP single php.ini vs PHP with FastCGI

The HostMonster servers have 3 different ways to use PHP:

  • Standard PHP (Default)

    By default all accounts use standard PHP. With standard PHP selected, a php script will use the server's master php.ini configuration file if the script's directory does not contain a php.ini file. You can install the default php.ini file to your public_html folder using the "PHP Config" option in your cPanel. You may make any changes to this file and the modification will take precedent over the master file. With standard PHP selected in the cPanel, you will need to copy the modified php.ini file into all subdirectories containing php files which are to use the custom php settings.

    Note: Different folders can have different php.ini files containing different php settings. If you need to use different php settings for two different scripts, you can place them each in their own folder and with their own php.ini file.

  • PHP Single php.ini

    To avoid copying the same php.ini file to each and every directory containing php files, you may select PHP Single php.ini. This option changes the php handler defined in ~/public_html/.htaccess to indicate that all subfolders use the same php.ini found in public_html/.

    Note: The .htaccess php handler is recursive through all subdirectories unless a subdirectory has a .htaccess file also defining a php handler.

  • PHP FastCGI

    Using the PHP FastCGI option makes all your PHP applications run through mod_fcgid instead of mod_suphp. FastCGI uses only one php.ini file located in the public_html directory. For more detailed information about PHP FastCGI including benefits and potential problems, Click Here

Note: For information about configuring php for an addon domain, Click Here.

To change the PHP type used for your account:

  1. Login to your cPanel
  2. Click on the "PHP Config" icon located under "Software/Services"
  3. Select the type of php version you wish to use, click "save changes"

To generate a new php.ini file:

  1. Login to your cPanel
  2. Click on the "PHP Config" icon located under "Software/Services"
  3. Select the options you wish to use
  4. Click the "SAVE CHANGES" button
  5. You will now have a file inside the public_html folder named php.ini

If you have any further questions about configuring the php.ini file, there are extensive descriptions within the file itself. You may also find more help at: http://www.php.net/docs.php

Knowledgebase Article 109,240 views bookmark tags: configuration php server (updated 703 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

How do I enable PHP 5 for my PHP applications? How do I change to PHP FastCGI? How do I use a single php.ini file? (updated 229 days ago)
Knowledgebase Article 129,464 views tags: config php

How do I change the PHP environment for my site with php.ini? (updated 259 days ago)
Knowledgebase Article 254,617 views tags: configuration php server

This article explains how to enable FastCGI for PHP applications. (updated 439 days ago)
Knowledgebase Article 58,738 views tags: fastcgi php

Related Help Content

What is FastCGI for PHP? (updated 259 days ago)
Knowledgebase Article 149,429 views tags: acceleration fastcgi php scripting

How can I adjust the php settings specifically for an Addon Domain? (updated 641 days ago)
Knowledgebase Article 88,364 views tags: domain php

I'm trying to configure an application (phpList) and it requires that I enter (in config.php) a username and password for a POP3 account to handle bounces. I keep getting a POP3 error and it can't log (updated 1671 days ago)
Knowledgebase Article 61,194 views tags: list mail php phplist

How do I configure Dreamweaver MX for PHP and MySQL? (updated 1640 days ago)
Knowledgebase Article 62,175 views tags: php

This article will outline which PHP PEAR Packages are installed and how you can install additional PHP PEAR Packages. (updated 190 days ago)
Knowledgebase Article 52,788 views tags: package pear php

How do I turn the display_errors flag on for php? (updated 1640 days ago)
Knowledgebase Article 67,185 views tags: display errors php

500 Internal Server Error when installing via the MOJO Marketplace installer. (updated 286 days ago)
Knowledgebase Article 69,772 views tags: cpanel errors htaccess panel php script simpel

An extensive list of the location of the configuration files of the most common web applications (updated 382 days ago)
Knowledgebase Article 12,788 views tags: scripting scripts