{"id":6565,"date":"2019-09-30T10:42:28","date_gmt":"2019-09-30T10:42:28","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=6565"},"modified":"2019-09-30T10:42:28","modified_gmt":"2019-09-30T10:42:28","slug":"steps-to-create-a-phprc-file-via-ssh","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/","title":{"rendered":"Steps to Create a phprc file via SSH"},"content":{"rendered":"<p>Each of the PHP installation comes with default settings that are generally fine for most websites. It\u2019s very rare when the requirements of a website, make it essential for adjusting the PHP settings. In this case creating a php.ini (phprc) file is the solution for adjusting the PHP settings for your website.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p>In standard term, php.ini is used for a PHP configuration file.<\/p>\n<\/div>\n<\/div>\n<p>A phprc file can be created using an FTP client, or by logging into the server via SSH, but it would be easy to create a phprc file using an FTP client. This article explains the steps to create this phprc file via SSH.<\/p>\n<h3>Steps to Add a phprc file using SSH<\/h3>\n<p>1. Using SSH, log into your server.<\/p>\n<p>2. Type<strong> \u2018pwd\u2019<\/strong> to confirm that you are in your users directory:<\/p>\n<pre class=\"lang:default decode:true \">[server]$ pwd\r\n\/home\/example_username<\/pre>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">In this directory, a single command can be run to create the \/.php folder as well as the \/7.2 folder that is present inside of it. Remember to first check the version of PHP your site is using. In the below example, we have assumed that the site is using PHP 7.2. If your site is running PHP 7.1, name the directory as 7.1 instead.<\/div>\n<\/div>\n<p>3. Execute the below command:<\/p>\n<pre class=\"lang:default decode:true \">[server]$ mkdir -p ~\/.php\/7.2<\/pre>\n<p>4. Run the below code to change your directory into these two new folders you just created:<\/p>\n<pre class=\"lang:default decode:true \">[server]$ cd .php\/7.2<\/pre>\n<ul>\n<li>After running pwd, you will see the entire filepath you just created:<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">[server]$ pwd\r\n\/home\/example_username\/.php\/7.2<\/pre>\n<p>5. Create the phprc file without an extension, in this folder.<\/p>\n<p>You can run a few programs for creating this file. In this example, a program called nano is used.<\/p>\n<p>6. Execute the below code to create the phprc file:<\/p>\n<pre class=\"lang:default decode:true\">[server]$ nano phprc<\/pre>\n<p>A text editor will pop up.<\/p>\n<p>7. Next, edit the file with the help of your PHP customizations.<\/p>\n<p>8. Close the file and go back to your shell.<\/p>\n<h3>How to Kill off running PHP processes?<\/h3>\n<p>After saving your changes, it is essential to kill off all running PHP processes. This helps your new settings to get updated.<\/p>\n<h3>How to Confirm Your Changes?<\/h3>\n<p>After editing the file and killing off all PHP processes, it is important to confirm if the values have updated. This can be done by creating a phpinfo.php file.<\/p>\n<p>If your changes aren\u2019t updated, try killing off your PHP processes again.<\/p>\n<div class=\"vlt-box vlt-blue\">\n<div class=\"box-title\">\n<h3>Conclusion<\/h3>\n<\/div>\n<div class=\"box-content\">\n<p>The phprc file is used for any domains under this specific username which also run the specific version of PHP you selected in step#3 while creating the directory.<\/p>\n<p>For example, if the user has three domains from which two are running PHP 7.2 and the third is running PHP 7.1, only the first two domains that run 7.2 would be affected by the phprc file. You will need to create a separate phprc file for the PHP 7.1 site.<\/p>\n<\/div>\n<\/div>\n<p><strong>Also Read:<\/strong><\/p>\n<p><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-connect-your-server-by-ssh\/\" target=\"_blank\" rel=\"noopener\"><strong>How To Login to Your Server By SSH?<\/strong><\/a><\/p>\n<p><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-edit-file-via-ssh\/\" target=\"_blank\" rel=\"noopener\"><strong>How to Create and Edit a File via SSH?<\/strong><\/a><\/p>\n<p><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-perform-when-the-phprc-file-isnt-updating\/\" target=\"_blank\" rel=\"noopener\"><strong>Steps to Perform When the phprc file isn&#8217;t Updating<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Each of the PHP installation comes with default settings that are generally fine for most websites. It\u2019s very rare when the requirements of a website, make it essential for adjusting the PHP settings. In this case creating a php.ini (phprc) file is the solution for adjusting the PHP settings for your website. In standard term, [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1004,1003,121],"class_list":["post-6565","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-web-hosting-faq","tag-php-ini","tag-phprc-file","tag-ssh"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Steps to Create a phprc file via SSH<\/title>\n<meta name=\"description\" content=\"The article describes steps to create a phprc file via SSH.\" \/>\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.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Steps to Create a phprc file via SSH\" \/>\n<meta property=\"og:description\" content=\"The article describes steps to create a phprc file via SSH.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-30T10:42:28+00:00\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated 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\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/\",\"name\":\"Steps to Create a phprc file via SSH\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2019-09-30T10:42:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article describes steps to create a phprc file via SSH.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Steps to Create a phprc file via SSH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Steps to Create a phprc file via SSH","description":"The article describes steps to create a phprc file via SSH.","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.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/","og_locale":"en_GB","og_type":"article","og_title":"Steps to Create a phprc file via SSH","og_description":"The article describes steps to create a phprc file via SSH.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-09-30T10:42:28+00:00","author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/","name":"Steps to Create a phprc file via SSH","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2019-09-30T10:42:28+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article describes steps to create a phprc file via SSH.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/steps-to-create-a-phprc-file-via-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Steps to Create a phprc file via SSH"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/"}]}},"views":568,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=6565"}],"version-history":[{"count":8,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6565\/revisions"}],"predecessor-version":[{"id":6603,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6565\/revisions\/6603"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=6565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=6565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=6565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}