multiple-php-version-with-xampp icon indicating copy to clipboard operation
multiple-php-version-with-xampp copied to clipboard

Fix for file php72-php-multiple-version.local.conf

Open phillipo opened this issue 7 years ago • 2 comments

Hello. I read your tutorial and it's very useful. I tried it on my local but i found i little mistake.

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/Projects/php-multiple-version/"
    ServerName php72-php-multiple-version.local
    ErrorLog "logs/php72-php-multiple-version.local-error.log"
    CustomLog "logs/php72-php-multiple-version.local.log" common
	
	FcgidInitialEnv PHPRC ${PHP_72_RC}
	<Directory "C:/Projects/php-multiple-version/">
		Define PHP_CGI 			>${PHP_71_CGI}< will be ${PHP_72_CGI}
		Include "conf/php.d/php_cgi.conf"
	</Directory>
</VirtualHost>

Thank you to share with us

phillipo avatar Nov 08 '18 21:11 phillipo

This is version i added php 5.1 to 7.2

  1. Download from http://www.mediafire.com/file/7s4zwhn1xjgddg6/xampp-multiple-php-versions-v1.zip/file (github don't support files large than 100MB)
  2. Extract to D:. Your path will be D:\xampp
  3. Copy content of file D:\xampp\host.txt to C:\Windows\System32\drivers\etc\hosts
  4. Run D:\xampp\xampp-control.exe and open your browser with urls:
http://php51-php-multiple-version.local/phpinfo.php
http://php52-php-multiple-version.local/phpinfo.php
http://php53-php-multiple-version.local/phpinfo.php
http://php54-php-multiple-version.local/phpinfo.php
http://php55-php-multiple-version.local/phpinfo.php
http://php56-php-multiple-version.local/phpinfo.php
http://php70-php-multiple-version.local/phpinfo.php
http://php71-php-multiple-version.local/phpinfo.php
http://php72-php-multiple-version.local/phpinfo.php

we are done. if you want to create virtualhost, open folder D:\xampp\apache\conf\vhost, copy example config and change your path and domain. to kill php, please run D:\xampp\kill_php.bat

i will write docs for this version when i have time

hugdx avatar Nov 09 '18 00:11 hugdx

@hugdx Could you provide new link for download? The link was invalid

AndikaR avatar Feb 08 '19 03:02 AndikaR