How to setup multiple PHP versions on windows

preview_player
Показать описание
How to setup multiple PHP versions on windows

Share, Support, Subscribe!!!

Connect with Me:
Рекомендации по теме
Комментарии
Автор

Edit httpd-xampp.conf(for me it is here
#PHP 5.5
ScriptAlias /php5_5/ "C:/xampp/php5_5/"
<Directory "C:/xampp/php5_5">
AllowOverride None
Options None
Require all denied
<Files "php-cgi.exe">
Require all granted
</Files>
</Directory>

Edit httpd-vhosts.conf (for me
Add following line under <VirtualHost *:80>...</VirtualHost>
UnsetEnv PHPRC
<FilesMatch "\.php$">
php_flag engine off
SetHandler application/x-httpd-php5_5
Action application/x-httpd-php5_5 "/php5_5/php-cgi.exe"
</FilesMatch>

learnWebCoding
Автор

it works perfectly .. thanks for sharing

askgaurav
Автор

if I use:

UnsetEnv PHPRC

<FilesMatch "\.php$">
php_flag engine off
SetHandler application/x-httpd-php5_5
Action application/x-httpd-php5_5 "/php5_5/php-cgi.exe"
</FilesMatch>


I got "Not Found" Error

AnasAnowar
Автор

@learnWebCoding
i am running my apache on 4433, 8080 its working fine when I add you virtual host line and save the file start the apache its giving me the shutdown error please rply

the_hindutv_sena
Автор

i followed all the steps, but when I restart the apache, I got an error in xamp: Error: Apache shutdown unexpectedly.

This may be due to a blocked port, missing dependencies

abdellatif.x
Автор

I am a beginner developer. I understand your video, but I am getting a problem that, "How to use different Xampp in Browser as according to project?".

surajlama
Автор

I followed your steps but now not able to access anything

PathikVejani
Автор

Hi, you can make a video about neural networks in php

kevinarnold
Автор

can you share complete httpd-xampp.conf and httpd-vhosts.conf file, I try step by step but get Server Error 500

HeriyantoRabuan
Автор

Hi Bro, It works perfectly. Thanks for sharing :-)

ajmalkhan
Автор

i got this error
Server error!
The server encountered an internal error and was unable to complete your request.

Error message:
End of script output before headers: php-cgi.exe

If you think this is a server error, please contact the webmaster.

Error 500

stalinwesley