Skip to content

Instantly share code, notes, and snippets.

@IchHabRecht
Created August 21, 2013 20:30
Show Gist options
  • Save IchHabRecht/6299812 to your computer and use it in GitHub Desktop.
Save IchHabRecht/6299812 to your computer and use it in GitHub Desktop.
[APACHE] Load other PHP version with FastCGI
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/Apache2/htdocs/localhost"
ServerName localhost.local
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" combined
<Directory "C:/Apache2/htdocs/localhost">
Options FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
LoadModule fcgid_module modules/mod_fcgid.so
FcgidInitialEnv PHPRC "C:/PHP4"
AddHandler fcgid-script .php
FcgidWrapper "C:/PHP4/php-cgi.exe" .php
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment