How to setup multiple PHP versions on windows

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

ความคิดเห็น • 17

  • @learnWebCoding
    @learnWebCoding  4 ปีที่แล้ว +2

    Edit httpd-xampp.conf(for me it is here C:\xampp\apache\conf\extra\httpd-xampp.conf)
    #PHP 5.5
    ScriptAlias /php5_5/ "C:/xampp/php5_5/"
    AllowOverride None
    Options None
    Require all denied

    Require all granted

    Edit httpd-vhosts.conf (for me C:\xampp\apache\conf\extra\httpd-vhosts.conf)
    Add following line under ...
    UnsetEnv PHPRC

    php_flag engine off
    SetHandler application/x-httpd-php5_5
    Action application/x-httpd-php5_5 "/php5_5/php-cgi.exe"

  • @ask2gaurav
    @ask2gaurav 4 ปีที่แล้ว +1

    it works perfectly .. thanks for sharing

  • @the_hindutv_sena
    @the_hindutv_sena ปีที่แล้ว

    @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

  • @abdellatif.x8127
    @abdellatif.x8127 2 ปีที่แล้ว

    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

  • @ajmalkhan9495
    @ajmalkhan9495 3 ปีที่แล้ว

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

    • @ajmalkhan9495
      @ajmalkhan9495 3 ปีที่แล้ว

      I used PHP 5.3 & 7.2 ...

  • @ProgrammerRimon
    @ProgrammerRimon ปีที่แล้ว

    Thank you bro

  • @surajlama7339
    @surajlama7339 4 ปีที่แล้ว

    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?".

  • @AnasAnowar
    @AnasAnowar 2 ปีที่แล้ว

    if I use:
    UnsetEnv PHPRC
    php_flag engine off
    SetHandler application/x-httpd-php5_5
    Action application/x-httpd-php5_5 "/php5_5/php-cgi.exe"
    I got "Not Found" Error

  • @soufianefal7379
    @soufianefal7379 2 ปีที่แล้ว

    thanks a lot

  • @kevinarnold8002
    @kevinarnold8002 4 ปีที่แล้ว

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

  • @PathikVejani
    @PathikVejani 2 ปีที่แล้ว

    I followed your steps but now not able to access anything

  • @cidetoo
    @cidetoo 3 ปีที่แล้ว

    You the man!

  • @tamillivingjesuswords
    @tamillivingjesuswords 4 ปีที่แล้ว

    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

    • @QuEeoNNDdaAAA
      @QuEeoNNDdaAAA 4 ปีที่แล้ว

      Did you solve it? You can check this solution "If you encounter the above error..." stackoverflow.com/a/49586592

  • @kakolisaha981
    @kakolisaha981 4 ปีที่แล้ว

    where is httpd-vhosts.conf

  • @HeriyantoRabuan
    @HeriyantoRabuan 2 ปีที่แล้ว

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