Created
July 20, 2022 15:49
-
-
Save Tynael/e69c0254c1ea3fc56420fe8441bb0764 to your computer and use it in GitHub Desktop.
Multiple PHP versions in XAMPP configurations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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