Skip to content

Instantly share code, notes, and snippets.

@iyank4
Last active December 16, 2015 15:39
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 iyank4/5457342 to your computer and use it in GitHub Desktop.
Save iyank4/5457342 to your computer and use it in GitHub Desktop.
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