Skip to content

Instantly share code, notes, and snippets.

@iyank4
Last active December 16, 2015 15:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Replace default php handler, with another PHP-CGI version
<VirtualHost *:80>
ServerName php52
DocumentRoot /home/iyank4/www
ScriptAlias /cgi-bin/ /home/iyank4/www/cgi-bin/
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
SetHandler None
</FilesMatch>
<Directory /home/iyank4/www/>
AddHandler php-5.2.4 .php
Action php-5.2.4 /cgi-bin/php-cgi_5.2.4
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment