{"id":69990,"date":"2016-04-28T06:36:12","date_gmt":"2016-04-28T10:36:12","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=69990"},"modified":"2019-03-20T02:43:53","modified_gmt":"2019-03-20T06:43:53","slug":"how-to-modify-php-ini-on-localhost","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-modify-php-ini-on-localhost.html","title":{"rendered":"How to modify php.ini on localhost"},"content":{"rendered":"<div class=\"inline-banner\">\r\n\t<a href=\"https:\/\/tracking.opienetwork.com\/aff_c?offer_id=461&aff_id=13765&aff_sub=tmhelp\" target=\"_blank\">\r\n\t\t<img src=\"https:\/\/www.templatemonster.com\/help\/wp-content\/themes\/tm_help_redesign\/images\/hostpapa.png\" \/>\r\n\t<\/a>\r\n<\/div>\r\n\r\n<p>This tutorial is going to show you how to find and modify php.ini file on localhost.<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=s4mbHgRrS00?width=1280&amp;height=720\" rel=\"prettyPhoto\">How to modify php.ini on localhost<\/a>\r\n<ol>\r\n\t<li>\r\n\t\t<p>First of all, you need to turn on the software. In this case, it&#8217;s <strong>WAMP<\/strong>.<\/p>\r\n\t<\/li>\r\n\t<li><p>Open your favorite code editor to create a <strong>.php<\/strong> file. In this case, we use <strong>Dreamweaver<\/strong>. Add this piece of code to the new file: <\/p>\r\n\t\t<pre class=\"brush:php\">&lt;?php phpinfo(); ?&gt;\r\n\t\t<\/pre>\r\n<a href=\"\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-1-300x130.png\" alt=\"Modify_php_ini_on_localhost-1\" width=\"300\" height=\"130\" class=\"alignnone size-medium wp-image-69991\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-1-300x130.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-1-150x65.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-1.png 644w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t<p>Save the file to your computer. You can name it <strong> info.php<\/strong>.<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Open the <strong>local Disk<\/strong>. Locate <strong>wamp<\/strong> folder, then open <strong>www<\/strong> folder. Copy this <strong>info.php<\/strong> file to <strong>wamp\/www<\/strong> folder. <\/p>\r\n\t\t<p>Note: If you have another software, the location can be different:<\/p>\r\n\t\t<a href=\"\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-2-300x59.png\" alt=\"Modify_php_ini_on_localhost-2\" width=\"300\" height=\"59\" class=\"alignnone size-medium wp-image-69992\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-2-300x59.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-2-150x29.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-2.png 700w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Open the browser. Type <strong>localhost\/info.php<\/strong> in the address bar. You will see a table of available settings. <\/p>  \r\n\t\t<p>Try to search with <strong>php.ini<\/strong> as the keyword. In <strong>Loaded Configuration File<\/strong> field, you will see the path to <strong>php.ini<\/strong> file. In this case, it&#8217;s <strong>C:\\wamp\\bin\\apache\\apache2.4.9\\bin\\php.ini<\/strong>. Just follow the path to find the file:<\/p>\r\n\t\t<a href=\"\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-3-300x263.png\" alt=\"Modify_php_ini_on_localhost-3\" width=\"300\" height=\"263\" class=\"alignnone size-medium wp-image-69993\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-3-300x263.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-3-150x132.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-3.png 563w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t<p>Here is the <strong>php.ini<\/strong> file that you need to edit. Just open and edit the file, then save it:<\/p>\r\n\t\t<a href=\"\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-4-300x216.png\" alt=\"Modify_php_ini_on_localhost-4\" width=\"300\" height=\"216\" class=\"alignnone size-medium wp-image-69994\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-4-300x216.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-4-150x108.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/Modify_php_ini_on_localhost-4.png 787w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=s4mbHgRrS00?width=1280&amp;height=720\" rel=\"prettyPhoto\">How to modify php.ini on localhost<\/a>\r\n\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/cart.php?addOffer=587\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-1-(500-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This tutorial is going to show you how to find and modify php.ini file on localhost.<\/p>\n","protected":false},"author":69,"featured_media":69997,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1019],"tags":[1048,1345,2256],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/69990"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=69990"}],"version-history":[{"count":2,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/69990\/revisions"}],"predecessor-version":[{"id":85328,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/69990\/revisions\/85328"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/69997"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=69990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=69990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=69990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}