Controlling PHP settings with a custom php.ini fileThis article describes how to use custom php.ini files to control PHP settings for your web site. Show This article applies to non-Turbo managed hosting packages with the cPanel management interface. For Turbo hosting packages, please see this article. Setting up a custom php.ini fileA php.ini file contains directives for controlling many PHP settings. You can set up one or multiple custom php.ini files to define how your web site functions. For example, you might have a custom file in your /home/username/public_html directory for your web site's main pages, and a separate custom file in your /home/username/public_html/images directory for your web site's image files. To set up a custom php.ini file, follow these steps:
More InformationTo view a complete list of php.ini directives, please visit http://www.php.net/manual/en/ini.list.php. The latest versions of cPanel make it easy to choose what PHP version your site is using. With just a few clicks, you can switch between different versions and even use different versions across sites in the same cPanel. This is especially helpful when upgrading older sites, troubleshooting, or dealing with third-party applications. Let’s take a look at how to make the most of PHP on all types of servers!
PHP Versions and Server TypesOur SysAdmins install the latest versions of PHP on our Shared, Reseller, and cPanel-based WordPress servers after testing and troubleshooting. The ‘default’ version of PHP for newly created sites is often one or two versions behind for the sake of stability— but feel free to update to the latest version as soon as it is available! With VPS and Dedicated Servers, we trust you and your SysAdmins to manage PHP installation and updates. If you need help, though, our 24/7 Technical Support team is happy to install newer versions of PHP at your request! If you have a VPS or Dedicated Server, newer versions of PHP may need to be installed manually. cPanel’s MultiPHP ManagerJust a few years ago, managing different cPanel PHP versions was an all-or-nothing ordeal.
Older tools would change the PHP version for every site on a cPanel at once. Configuring different individual sites required awkward workarounds using Please Note: be sure to click on MultiPHP Manager and not MultiPHP INI Editor. The INI Editor is a different piece of software that helps you fine tune your PHP settings on individual sites. Change the PHP Version on Your SitesNow that you know what the MultiPHP Manager is, we’ll show you how to use it to change the PHP version for your sites.
That’s all it takes to change the PHP version used on any site you choose. If you are having issues with a site and want to double-check the version of PHP in use, remember that you can always set up a PHPinfo page for the site as well. Learn more about cPanel from our Managed VPS Hosting Product Guide. Make sure your business, agency, or reseller clients are always connected and powered on with our optimized Managed VPS Hosting. Where is PHP ini file located in cPanel?Each file exists in the /opt/cpanel/ea-php72/root/etc/php. ini file, where 72 is the PHP version number.
How do I change PHP ini in cPanel?How to Edit the php.. 1) Log into cPanel.. 2) Look for the SOFTWARE section and click on Select PHP version.. 3) In the new window click on the Switch To PHP Options button.. 4) Here you can locate the PHP directive you wish to amend and click the value.. How do I access my PHP ini?ini is usually located in /etc/php/8.1/fpm/php.
Where is PHP ini in file manager?ini file is located at /usr/local/lib/php. ini.
|