Skip to content

Instantly share code, notes, and snippets.

@Tynael
Created July 20, 2022 15:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save Tynael/e69c0254c1ea3fc56420fe8441bb0764 to your computer and use it in GitHub Desktop.
Save Tynael/e69c0254c1ea3fc56420fe8441bb0764 to your computer and use it in GitHub Desktop.
Multiple PHP versions in XAMPP configurations
# PHP 8.1.7 Set-up
ScriptAlias /php817/ "C:/xampp/php817/"
Action application/x-httpd-php817-cgi "/php817/php-cgi.exe"
<Directory "C:/xampp/php817">
AllowOverride None
Options None
Require all denied
<Files "php-cgi.exe">
Require all granted
</Files>
SetEnv PHPRC "C:/xampp/php817"
</Directory>
# Varen PHP 8.1.7
<Directory "C:/xampp/htdocs/varen/public">
UnsetEnv PHPRC
<FilesMatch "\.php$">
php_flag engine off
SetHandler application/x-httpd-php817-cgi
</FilesMatch>
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment