Skip to content

Instantly share code, notes, and snippets.

@philipborbon
Created January 31, 2023 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipborbon/bc1e5686d42ff7f1bd181a61dbdf7c34 to your computer and use it in GitHub Desktop.
Save philipborbon/bc1e5686d42ff7f1bd181a61dbdf7c34 to your computer and use it in GitHub Desktop.
XAMPP Multi PHP Version Config
<VirtualHost *:80>
DocumentRoot "/path/to/project"
ServerName dev.project
<Directory "/path/to/project">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
<FilesMatch "\.php$|\.php5$|\.php4$|\.php3$|\.phtml$|\.phpt$">
SetHandler application/x-httpd-php56-cgi
</FilesMatch>
</VirtualHost>
ScriptAlias /php56 "C:/xampp/php56"
Action application/x-httpd-php56-cgi /php56/php-cgi.exe
<Directory "C:/xampp/php56">
AllowOverride None
Options None
Require all denied
<Files "php-cgi.exe">
Require all granted
</Files>
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment