{"id":4720,"date":"2018-10-22T15:06:17","date_gmt":"2018-10-22T15:06:17","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2018\/10\/22\/copy-php-ini-from-another-account\/"},"modified":"2022-02-15T18:36:24","modified_gmt":"2022-02-15T23:36:24","slug":"copy-php-ini-from-another-account","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/","title":{"rendered":"Copy PHP.ini from another cPanel Account"},"content":{"rendered":"\n<p>Date: December 2, 2019&nbsp; &nbsp; &nbsp;2 Minutes to Read<\/p>\n<p>In this article:<\/p>\n<ul>\n<li><a href=\"#server\">Copy From the Server Default<\/a><\/li>\n<li><a href=\"#another\">Copy From Another Account<\/a><\/li>\n<li><a href=\"#FTP\">Copy Using cPanel or FTP<\/a><\/li>\n<\/ul>\n<p>Sometimes, when you only need to add a few changes, it&#8217;s easy to simply create a php.ini file with only the needed adjustments. However, for improved overall workflow you&#8217;d benefit from a complete <em>php.ini<\/em> file.<\/p>\n<p>If <a href=\"\/support\/website\/how-to-change-the-php-version-your-account-uses\/\">changing your PHP version<\/a> in cPanel from and back to the preferred option doesn&#8217;t work, and you don&#8217;t have MultiPHP INI Editor installed, you can copy a full php.ini file from another cPanel account or directly from the server.<\/p>\n<p><a name=\"another-account\"><\/a><\/p>\n<h2 id=\"server\">Copy From the Server Default<\/h2>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/server\/ssh\/do-you-provide-ssh-access\/\">SSH into the cPanel account<\/a> without a php.ini file.<\/li>\n<li>Type the command below, replacing <em>public_html<\/em> with the file path to the website without a php.ini file as needed and <em>php56<\/em> with the applicable PHP version &#8211; i.e. <em>70<\/em> for 7.0.<br>For VPS users:\n<p>&nbsp;<\/p>\n<pre class=\"cli\">cp \/opt\/cpanel\/ea-<em>php56<\/em>\/root\/etc\/php.ini ~\/public_html\/<\/pre>\n<p>Shared users must use the following:<\/p>\n<pre class=\"cli\">cp \/usr\/local\/lib\/php.ini ~\/public_html\/<\/pre>\n<\/li>\n<\/ol>\n<p><a name=\"server\"><\/a><\/p>\n<h2 id=\"another\">Copy From Another Account<\/h2>\n<p>VPS users <a href=\"\/support\/amp\/obtain-root-access\/\">with root access<\/a> can copy the php.ini file between cPanel accounts <strong>using SSH<\/strong><\/p>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/server\/ssh\/how-to-login-ssh\/\">SSH into your VPS<\/a> as <a href=\"\/support\/amp\/obtain-root-access\/\">user root<\/a>.<\/li>\n<li>Type the command below, replacing <em>public_html<\/em> with the file path to the website without a php.ini file as needed and <em>php56<\/em> with the applicable PHP version &#8211; i.e. <em>70<\/em> for 7.0.\n<pre class=\"cli\">cp \/home\/<em>user2<\/em>\/public_html\/php.ini \/home\/<em>user1<\/em>\/public_html\/php.ini<\/pre>\n<p>Replace <em>user2<\/em> with the cPanel user with a php.ini file and <em>user1<\/em> with the cPanel user needing one.<\/p>\n<\/li>\n<\/ol>\n<p><a name=\"copy\"><\/a><\/p>\n<h2 id=\"FTP\">Copy Using cPanel or FTP<\/h2>\n<li>\n<ol class=\"article_list\">Download the php.ini file from the appropriate cPanel account using cPanel File Manager or FTP and<a href=\"\/support\/website\/how-to-upload-files-server\/\">upload it<\/a> to the cPanel account for the appropriate cPanel account.<\/ol><\/li>\n<p>Alternatively, you can obtain a php.ini file from our <a href=\"\/support\/website\/what-is-your-default-php-ini-file\/\" target=\"_blank\" rel=\"noopener noreferrer\"><em>What is your default php.ini file<\/em> guide<\/a>. You can then <a href=\"\/support\/website\/update-local-php-settings\/\">edit your new php.ini<\/a> file and check your PHP settings with a phpinfo.php file. You may also want to <a href=\"\/support\/website\/recursive-php-ini\/\">make the file recursive<\/a> to apply to child folders.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 changes, it&#8217;s easy to simply create a php.ini file with only the needed adjustments. However, for improved overall workflow you&#8217;d<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[51,4288],"tags":[],"class_list":["post-4720","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Copy PHP.ini from another cPanel Account | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how to copy a php.ini file between cPanel accounts\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Copy PHP.ini from another cPanel Account | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn how to copy a php.ini file between cPanel accounts\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-22T15:06:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-15T23:36:24+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"Copy PHP.ini from another cPanel Account\",\"datePublished\":\"2018-10-22T15:06:17+00:00\",\"dateModified\":\"2022-02-15T23:36:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/\"},\"wordCount\":332,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"cPanel\",\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/\",\"name\":\"Copy PHP.ini from another cPanel Account | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2018-10-22T15:06:17+00:00\",\"dateModified\":\"2022-02-15T23:36:24+00:00\",\"description\":\"Learn how to copy a php.ini file between cPanel accounts\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Copy PHP.ini from another cPanel Account\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Copy PHP.ini from another cPanel Account | InMotion Hosting","description":"Learn how to copy a php.ini file between cPanel accounts","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/","og_locale":"en_US","og_type":"article","og_title":"Copy PHP.ini from another cPanel Account | InMotion Hosting","og_description":"Learn how to copy a php.ini file between cPanel accounts","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2018-10-22T15:06:17+00:00","article_modified_time":"2022-02-15T23:36:24+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"Copy PHP.ini from another cPanel Account","datePublished":"2018-10-22T15:06:17+00:00","dateModified":"2022-02-15T23:36:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/"},"wordCount":332,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["cPanel","Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/","name":"Copy PHP.ini from another cPanel Account | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2018-10-22T15:06:17+00:00","dateModified":"2022-02-15T23:36:24+00:00","description":"Learn how to copy a php.ini file between cPanel accounts","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/copy-php-ini-from-another-account\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Copy PHP.ini from another cPanel Account"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4720"}],"version-history":[{"count":7,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4720\/revisions"}],"predecessor-version":[{"id":94154,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4720\/revisions\/94154"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}