{"id":980,"date":"2012-11-08T11:05:27","date_gmt":"2012-11-08T14:05:27","guid":{"rendered":"http:\/\/www.franklinjr.com\/blog\/?p=980"},"modified":"2012-11-08T11:05:27","modified_gmt":"2012-11-08T14:05:27","slug":"mudando-configuracao-do-php-no-windows-para-um-ambiente-2","status":"publish","type":"post","link":"https:\/\/www.franklinjr.com\/blog\/index.php\/2012\/11\/08\/mudando-configuracao-do-php-no-windows-para-um-ambiente-2\/","title":{"rendered":"Mudando configura\u00e7\u00e3o do PHP no windows para um ambiente"},"content":{"rendered":"<p>O PHP no windows tem uma configura\u00e7\u00e3o global para todos os sites de um servidor, por\u00e9m, a partir da vers\u00e3o 5 \u00e9 poss\u00edvel alterar um valor para somente um site, deixando ele com uma configura\u00e7\u00e3o diferente da global, caso a configura\u00e7\u00e3o global esteja com o register_globals off, por exemplo, e um site precise da configura\u00e7\u00e3o como on, \u00e9 poss\u00edvel fazer o seguinte<\/p>\n<p>No registro do windows v\u00e1 em HKLM\\SOTFWARE\\PHP, crie uma nova chave chamada Per Directory Values. Ent\u00e3o abaixo da chave <strong>HKLM\\SOTFWARE\\PHP\\Per Directory Values<\/strong>, ser\u00e1 onde haver\u00e3o as configura\u00e7\u00f5es modificadas, para que ela funcione \u00e9 necess\u00e1rio criar as chaves correspondentes ao diret\u00f3rio onde roda o ambiente, por exemplo, se o site est\u00e1 em c:\\inetpub\\wwwroot, ser\u00e1 necess\u00e1rio criar mais 3 chaves, ficando dessa forma <strong>HKLM\\SOTFWARE\\PHP\\Per Directory Values\\c\\inetpub\\wwwroot<\/strong>, e dentro dessa chave voc\u00ea ir\u00e1 criar registros do tipo &#8220;valor de sequ\u00eancia expens\u00edvel&#8221; com o nome da diretiva do php que voc\u00ea quer alterar, no nosso exempo \u00e9 a register_globals, ent\u00e3o criaremos um &#8220;valor de sequ\u00eancia expens\u00edvel&#8221; com o nome de register_globals com o valor On. Era isso<\/p>\n<p>Cr\u00e9ditos: <a href=\"http:\/\/www.republicavirtual.com.br\/blog\/\" target=\"_blank\">http:\/\/www.republicavirtual.com.br\/blog\/<\/a><br \/>\nFonte: <a href=\"http:\/\/php.net\/manual\/en\/configuration.changes.php\" target=\"_blank\">http:\/\/php.net\/manual\/en\/configuration.changes.php<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>O PHP no windows tem uma configura\u00e7\u00e3o global para todos os sites de um servidor, por\u00e9m, a partir da vers\u00e3o 5 \u00e9 poss\u00edvel alterar um valor para somente um site, deixando ele com uma configura\u00e7\u00e3o diferente da global, caso a configura\u00e7\u00e3o global esteja com o register_globals off, por exemplo, e um site precise da configura\u00e7\u00e3o [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[425,76,51],"tags":[560,423],"class_list":["post-980","post","type-post","status-publish","format-standard","hentry","category-iis","category-php","category-windows","tag-php","tag-windows-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>Mudando configura\u00e7\u00e3o do PHP no windows para um ambiente - Franklin Jr.<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.franklinjr.com\/blog\/index.php\/2012\/11\/08\/mudando-configuracao-do-php-no-windows-para-um-ambiente-2\/\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/index.php\\\/2012\\\/11\\\/08\\\/mudando-configuracao-do-php-no-windows-para-um-ambiente-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mudando configura\u00e7\u00e3o do PHP no windows para um ambiente\"}]}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mudando configura\u00e7\u00e3o do PHP no windows para um ambiente - Franklin Jr.","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.franklinjr.com\/blog\/index.php\/2012\/11\/08\/mudando-configuracao-do-php-no-windows-para-um-ambiente-2\/","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/www.franklinjr.com\/blog\/index.php\/2012\/11\/08\/mudando-configuracao-do-php-no-windows-para-um-ambiente-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.franklinjr.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Mudando configura\u00e7\u00e3o do PHP no windows para um ambiente"}]}]}},"_links":{"self":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=980"}],"version-history":[{"count":3,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/980\/revisions"}],"predecessor-version":[{"id":983,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/980\/revisions\/983"}],"wp:attachment":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}