Bluehost India Web Hosting Help
How To Configure The PHP Environment With PHP ini
- Update PHP Version or Generate new php.ini File
- CGI Type
- Standard PHP (Default)
- PHP Single php.ini
- PHP FastCGI
The version of PHP helps keep your site secured, running efficiently, and compatible with any plugins. This article explains how to generate a new php.ini file if you are into changing the PHP version or made an error with your current php.ini file. Upgrading your PHP will automatically create the new php.ini file.
Please note: We will be updating to PHP version 8.0 in batches beginning in 2022. Keep an eye out for communications on when your account will be updated and what changes, if any, you will need to make. For more information on updating content for PHP compatibility, read our guide on What to do if your Site Does not Work with Newer Versions of PHP. To learn more about what is changing with PHP 8.0, please see PHP.net's release notes.
- Log in to your bluehost_in control panel.
- Click the Advanced tab from the side navigation menu to the left.
- Under the Software section, click on the MultiPHP Manager icon.
- Select the domain that you want to set up or update from the list.
- Select the version of PHP you would like to use at the top right-hand side.
- Click the Apply button to finish the update.
- Log in to your bluehost_in control panel.
- Click the cpanel sub-tab from the navigation menu that stretches across the top of your screen.
- Locate the PHP Config tool under the programming category.
- Select the domain that you want to set up or update.
- Choose the version of PHP you will be using.
- Choose any extensions you might need for your scripts.
- Click the Save Changes button.
Below are options to consider when selecting the PHP type.
By default, all accounts use standard PHP. A PHP script will use the server's master php.ini configuration file with standard PHP selected if the script's directory does not contain a php.ini file. Each hosting account initially has a copy of the php.ini file in the public_html directory. 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 to use the custom PHP settings.
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/.
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. Please refer to PHP FastCGI for detailed information about PHP FastCGI, including benefits and potential problems.
Recommended Help Content
How to edit PHP Configuration
How to edit PHP Configuration --- VPS or Dedicated
Dreamweaver MX Configuration for PHP and MySQL
How do I configure Dreamweaver MX for PHP and MySQL?
PHP Configuration for Addon Domain
How can I adjust the php settings specifically for an Addon Domain?
Related Help Content
How To Change Your PHP Version - PHP Config Guide
How to change your PHP version in your hosting account
Basic Site Security Checklist
What can I do to increase my Site Security while hosting with Bluehost India?
How To Add Handlers To Change PHP Version - PHP Version Setup
This article will explain how to add a PHP handler to your .htaccess files. This is useful if you want to customize the version of PHP that runs your PHP files.
Change Your PHP Version - Dedicated and VPS Hosting
Changing PHP versions, load custom Apache mods, and other Apache/PHP customizations
What to do if your Site Does Not Work with Newer Versions of PHP
Many popular website platforms use PHP for rendering their content. It’s common for these sites to have automatic update tools to ensure that they work with the latest version of PHP, however sometimes a theme or plugin for these services may prevent them from updating or may not work with a newer
Change WordPress URL's With WordPress Tools
This article will explain how to change the Site URL or Home URL setting in WordPress. This may be useful if you have moved your WordPress site or are planning to move your WordPress site.
How To Change Upload File Size Limit In PHP - Increase Upload Limits
How do I increase my file size limit in my PHP application?
How To Login To WordPress Site - WP Admin Access
This article will explain how to login to a website created with WordPress.