---
title: "Copy PHP.ini from another cPanel Account"
description: "Date: December 2, 2019&nbsp; &nbsp; &nbsp;2 Minutes to Read In this article: Copy From the Server Default Copy From Another Account Copy Using cPanel or FTP Sometimes, when you only need to add a few..."
url: https://www.inmotionhosting.com/support/edu/cpanel/copy-php-ini-from-another-account/
date: 2018-10-22
modified: 2022-02-15
author: "InMotion Hosting Contributor"
categories: ["cPanel", "Website"]
type: post
lang: en
---

# Copy PHP.ini from another cPanel Account

Date: December 2, 2019     2 Minutes to Read

In this article:

- [Copy From the Server Default](#server)
- [Copy From Another Account](#another)
- [Copy Using cPanel or FTP](#FTP)

Sometimes, when you only need to add a few changes, it’s easy to simply create a php.ini file with only the needed adjustments. However, for improved overall workflow you’d benefit from a complete *php.ini* file.

If [changing your PHP version](/support/website/how-to-change-the-php-version-your-account-uses/) in cPanel from and back to the preferred option doesn’t work, and you don’t have MultiPHP INI Editor installed, you can copy a full php.ini file from another cPanel account or directly from the server.

## Copy From the Server Default

1. [SSH into the cPanel account](/support/server/ssh/do-you-provide-ssh-access/) without a php.ini file.
2. Type the command below, replacing *public_html* with the file path to the website without a php.ini file as needed and *php56* with the applicable PHP version – i.e. *70* for 7.0.For VPS users:   cp /opt/cpanel/ea-*php56*/root/etc/php.ini ~/public_html/ Shared users must use the following: cp /usr/local/lib/php.ini ~/public_html/

## Copy From Another Account

VPS users [with root access](/support/amp/obtain-root-access/) can copy the php.ini file between cPanel accounts **using SSH**

1. [SSH into your VPS](/support/server/ssh/how-to-login-ssh/) as [user root](/support/amp/obtain-root-access/).
2. Type the command below, replacing *public_html* with the file path to the website without a php.ini file as needed and *php56* with the applicable PHP version – i.e. *70* for 7.0. cp /home/*user2*/public_html/php.ini /home/*user1*/public_html/php.ini Replace *user2* with the cPanel user with a php.ini file and *user1* with the cPanel user needing one.

## Copy Using cPanel or FTP

Alternatively, you can obtain a php.ini file from our [*What is your default php.ini file* guide](/support/website/what-is-your-default-php-ini-file/). You can then [edit your new php.ini](/support/website/update-local-php-settings/) file and check your PHP settings with a phpinfo.php file. You may also want to [make the file recursive](/support/website/recursive-php-ini/) to apply to child folders.
