Php INI file download for cPanel

For Shared Hosting, the .user.ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. This file is located on your server in the /public_html folder. The following article will provide instruction on how you can locate and edit this file. Before making any changes, it's a good idea to copy the original settings, both for reference and to easily restore the original if necessary.

STATEMENT OF SUPPORT:
This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is unsupported by (mt) Media Temple. Please take a moment to review the Statement of Support. Before making any changes, it's a good idea to copy the original settings, both for reference and to easily restore the original if necessary.

Before Starting

This guide will be using cPanel's File Manager to edit the .user.ini file. In order to complete this guide, you will want to update your File Manager settings to Show Hidden Files on your Shared Hosting server.

  1. Log into your Media Temple account.
  2. Click the blue ADMIN button associated to your Shared Hosting server.
    Php INI file download for cPanel
  3. While in the dashboard, click File Manager.
    Php INI file download for cPanel
  4. You should be automatically warped to the public_html folder.
  5. If you have not yet created a .user.ini file, you can do so at this time by clicking
    Php INI file download for cPanel
    .
  6. Select the .user.ini file. Then click the Edit icon.
    Php INI file download for cPanel
  7. Add your desired php changes, then click Save Changes.
    Php INI file download for cPanel

READ ME FIRST
This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is unsupported by (mt) Media Temple. Please take a moment to review the Statement of Support. Before making any changes, it's a good idea to copy the original settings, both for reference and to easily restore the original if necessary.

.user.ini

On the WordPress Hosting service, php directives would need to be adjusted within the .user.ini file. Note, this is different from the typical php.ini file seen in most of (mt) Media Temple servers. If this is the first time you are trying to modify these limits, you will need to create a file named ".user.ini" within the document rootdocument root or ".../html" directory using the File Manager, FTP or SSH.

PHP directives

Once the .user.ini file is created within ".../html" you may input your desired php directives. We recommend checking out our additional articles on php limits before saving any changes:

  • How do I increase the PHP upload limits?
  • CGI and PHP resource limits

Overview

The php.ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits.

The most common parameters changed in the php.ini file are:


safe_mode
register_globals
upload_max_filesize
post_max_size
max_execution_time

Additional directives can be found here.

If you're experiencing difficulty with your web application, you can edit the sample "php.ini.sample"php.ini or create a new text file. For example, you're unable to install a WordPress theme or plugin through your WP Dashboard.

Before making any changes, it's a good idea to copy the original settings, both for reference and to easily restore the original if necessary.

READ ME FIRST

This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is unsupported by (mt) Media Temple. Please take a moment to review the .

Via AccountCenter

As a Grid user, your easiest option would be to use the File Manager to make the changes. Here's how:

  • Log into the AccountCenter
  • Click the Admin button to the right of your primary domain
  • Select File Manager
  • Click on the /etc folder

Inside the /etc folder, you'll see the php.ini.sample file. When you click on the Edit button, you'll see the below window. Just rename the filename to php.ini and add whatever parameters you need.

Php INI file download for cPanel

After you make your edits, click SAVE CHANGES. Your changes will be saved and should take effect right away.

Via SSH

An alternate way to edit your php.ini file would be to connect via as the Server Administrator.

Change directory to the etc folder using this command:

cd ~/../../etc

Use the following command to start editing:

vi php.ini

Via FTP

You can download the file locally and edit. This requires familiarity with and a plain text editor.

FAQs

Do I need to restart my service for the changes to take effect?

No, in fact there is no way or need for customers to restart services on the Grid. Any changes you make within your php.ini will be effective within a few moments.

Is there any way to use a different php.ini in each domain/folder on the Grid?

Not with a php.ini. The php.ini is designed to set global settings for your account. You can make changes on a per domain basis via a .htaccess file. More info on this can be found at http://www.askapache.com/htaccess/php-htaccess-tips-and-tricks.html.

Overview

The php.ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits.

The most common parameters changed in the php.ini file are:


safe_mode
register_globals
upload_max_filesize
post_max_size
max_execution_time

Additional directives can be found here.

If you're experiencing difficulty with your web application, you can edit the sample "php.ini.sample"php.ini or create a new text file. For example, you're unable to install a WordPress theme or plugin through your WP Dashboard.

Before making any changes, it's a good idea to copy the original settings, both for reference and to easily restore the original if necessary.

READ ME FIRST

This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is unsupported by (mt) Media Temple. Please take a moment to review the .

Requirements

Before you start, you'll need:

  • Root access enabled.
  • To know how to connect to your DV via .

Plesk

Global php.ini

Use the following command at the command prompt to start editing the global php.ini file:

vi /etc/php.ini

When you are finished editing your php.ini, you will need to restart your Apache server. Run the following command:

Where do I find the PHP ini file in cPanel?

Each file exists in the /opt/cpanel/ea-php72/root/etc/php. ini file, where 72 is the PHP version number.

Where can I find the PHP ini file?

ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. This file is located on your server in the /public_html folder.

How to create a PHP ini file?

How to Manually Create a PHP..
Log into your cPanel account..
Open your File Manager..
Navigate to your public_html directory..
Create a new file..
Name it php.ini..
Edit the php.ini file you just created..
Copy and Paste the default php. ini code from the copy of the default version below..
Click Save Changes..

How do I edit an ini file in cPanel?

Modifying the PHP..
Login to the cPanel..
Find the File Manager in File section of the cPanel. ... .
Navigate to the directory where you will either save or edit the PHP. ... .
Edit the section of the PHP. ... .
Click on SAVE CHANGES in the top right hand corner in order to save your modifications or additions to the file..