{"id":493,"date":"2026-02-06T09:05:25","date_gmt":"2026-02-06T12:05:25","guid":{"rendered":"https:\/\/hackerzone.com.br\/blog\/?p=493"},"modified":"2026-02-06T09:28:55","modified_gmt":"2026-02-06T12:28:55","slug":"como-configurar-o-xampp-para-rodar-com-versoes-de-php-diferentes","status":"publish","type":"post","link":"http:\/\/hackerzone.com.br\/blog\/como-configurar-o-xampp-para-rodar-com-versoes-de-php-diferentes\/","title":{"rendered":"Como configurar o xampp para rodar com vers\u00f5es de php diferentes"},"content":{"rendered":"<p>Vamos partir do principio que voc\u00ea esta querendo rodar o php 7.4.3 no xampp atual (PHP 8.2.12).<\/p>\n<p>Primeiramente acesse o diret\u00f3rio do php e baixe o seguinte arquivo: &#8220;php-7.4.30-nts-Win32-vc15-x64.zip&#8221;<br \/>\n<a href=\"https:\/\/windows.php.net\/downloads\/releases\/archives\/\">https:\/\/windows.php.net\/downloads\/releases\/archives\/<\/a><\/p>\n<p>Link Direto:<br \/>\n<a href=\"https:\/\/windows.php.net\/downloads\/releases\/archives\/php-7.4.30-nts-Win32-vc15-x64.zip\">https:\/\/windows.php.net\/downloads\/releases\/archives\/php-7.4.30-nts-Win32-vc15-x64.zip<\/a><\/p>\n<p>V\u00e1 em &#8220;c:\\xampp\\&#8221; e crie a pasta &#8220;<strong>php743<\/strong>&#8220;, extraia o arquivo &#8220;<strong>php-7.4.30-nts-Win32-vc15-x64.zip<\/strong>&#8221; dentro dela.<\/p>\n<p>Pr\u00f3ximo passo acesse o arquivo &#8220;<strong>C:\\xampp\\apache\\conf\\extra\\httpd-xampp.conf<\/strong>&#8221;<\/p>\n<p>Adicione o seguinte trecho ao final do arquivo.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nScriptAlias \/php743\/ &quot;C:\/xampp\/php743\/&quot;\r\nAction application\/x-httpd-php743-cgi &quot;\/php743\/php-cgi.exe&quot;\r\n&lt;Directory &quot;C:\/xampp\/php743&quot;&gt;\r\n    AllowOverride None\r\n    Options None\r\n    Require all denied\r\n    &lt;Files &quot;php-cgi.exe&quot;&gt;\r\n          Require all granted\r\n    &lt;\/Files&gt;\r\n    \r\n    SetEnv PHPRC &quot;C:\/xampp\/php743&quot;\r\n&lt;\/Directory&gt;\r\n<\/pre>\n<p>Configure seu &#8220;site&#8221; no virtualhosts &#8220;C:\\xampp\\apache\\conf\\extra\\httpd-vhosts.conf&#8221;, siga o exemplo:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;VirtualHost 127.0.0.1&gt;\r\n    DocumentRoot &quot;C:\\xampp\\htdocs\\site.com\\public_html&quot;\r\n    ServerName grupomailbox\r\n\tErrorLog &quot;C:\\xampp\\htdocs\\site.com\\error-log.log&quot;\r\n    &lt;Directory &quot;C:\\xampp\\htdocs\\site.com&quot;&gt;\r\n        AllowOverride AuthConfig FileInfo Indexes Limit Options\r\n        Order Deny,Allow\r\n        Allow from all\r\n\t\tUnsetEnv PHPRC\r\n\t\t&lt;FilesMatch &quot;\\.php$&quot;&gt;\r\n\t\t\tphp_flag engine off\r\n\t\t\tSetHandler application\/x-httpd-php743-cgi\r\n\t\t&lt;\/FilesMatch&gt;\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Vamos partir do principio que voc\u00ea esta querendo rodar o php 7.4.3 no xampp atual (PHP 8.2.12). Primeiramente acesse o diret\u00f3rio do php e baixe o seguinte arquivo: &#8220;php-7.4.30-nts-Win32-vc15-x64.zip&#8221; https:\/\/windows.php.net\/downloads\/releases\/archives\/ Link Direto: https:\/\/windows.php.net\/downloads\/releases\/archives\/php-7.4.30-nts-Win32-vc15-x64.zip V\u00e1 em &#8220;c:\\xampp\\&#8221; e crie a pasta &#8220;php743&#8220;, extraia o arquivo &#8220;php-7.4.30-nts-Win32-vc15-x64.zip&#8221; dentro dela. Pr\u00f3ximo passo acesse o arquivo &#8220;C:\\xampp\\apache\\conf\\extra\\httpd-xampp.conf&#8221; Adicione o [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":455,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165,74,2,12,101,127],"tags":[235,234,90],"class_list":["post-493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-lampp","category-linux","category-php","category-windows","category-xampp","tag-diferentes-versoes","tag-php7-4","tag-xampp","cat-165-id","cat-74-id","cat-2-id","cat-12-id","cat-101-id","cat-127-id","has_thumb"],"_links":{"self":[{"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/posts\/493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/comments?post=493"}],"version-history":[{"count":3,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/posts\/493\/revisions"}],"predecessor-version":[{"id":497,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/posts\/493\/revisions\/497"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/media\/455"}],"wp:attachment":[{"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/media?parent=493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/categories?post=493"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/tags?post=493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}