Install php 8.2 with IIS on windows 11

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • In this video I cover how to install PHP on windows 11 using IIS to handle web hosting on my local laptop as if it was in the cloud. I cover some useful tips when doing this to make sure you can easily swap out your version of php without having to reconfigure IIS.

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

  • @Reelix
    @Reelix 3 หลายเดือนก่อน +3

    For those that can't see "FastCGI" in the IIS menu, Windows+R -> "optionalfeatures" -> Internet Information Services -> World Wide Web Services -> Application Development Features -> Tick "CGI" -> "OK" -> Close & Re-open IIS

  • @AneVisser
    @AneVisser 10 วันที่ผ่านมา

    This is brilliant. Thanks. Experienced a lot of frustration setting this up, until I found this video.

    • @artfullcoder
      @artfullcoder  10 วันที่ผ่านมา

      Hi @anevusser, glad this video has helped you thats why i do the videos. If there is any topic you would like me to do then just let me know. Kind regards

    • @AneVisser
      @AneVisser 9 วันที่ผ่านมา

      @@artfullcoder Thank you. I still have a few challenges ahead of me. I want to deploy a legacy php extension compiled in Delphi 7, so I will need a x86 version of PHP to be able to do that. I'll follow the same instructions and see where that gets me. Also need to host from a W11 Virtual Box.

    • @artfullcoder
      @artfullcoder  9 วันที่ผ่านมา

      @anevisser no probs, ive worked with custom php extensions. You add the extension into the bin / extensions directory and reference in your php.ini file. You will need to make sure your php extension is compatible with the version of php you are running you can find all windows php versions at windows.php.net

    • @AneVisser
      @AneVisser 7 วันที่ผ่านมา +1

      @@artfullcoder I managed to install php 8.3.10 x 86 successfully on W11. You will need to install a Visual C++ Redistributable (x86) though. VC++ 2015-2022 14.40.33810 is what I used.

    • @artfullcoder
      @artfullcoder  6 วันที่ผ่านมา

      Thats brilliant, glad you got sorted

  • @orsonbaruc
    @orsonbaruc 4 หลายเดือนก่อน

    I don't normally comment on any videos on TH-cam, but your instructions on this topic really helped me a lot. I'm trying to learn php and other things and I didn't want to resort to xampp. Thank you very much.

    • @artfullcoder
      @artfullcoder  4 หลายเดือนก่อน +1

      Hi, thank you so much for your comment, hope this video helps you in your quest as a software engineer. Ive used this type of pairing, that iis and php in production envirnoment. There are lots of pluses for using this type of setup. Depending on what you are trying to build you may need to tweak some of the timeout settings in both iis and php to your desired level. But thank you again for such kind words, i do have another older videos that are not on here that show crud php jquery application from beginning to end so may put this on my channel or create dedicated php playlist.

  • @robeeeeen
    @robeeeeen 4 หลายเดือนก่อน

    Thank you so much for such an easy description.

    • @artfullcoder
      @artfullcoder  4 หลายเดือนก่อน

      Thankyou robeeeeen glad you found the video helpful and useful

    • @robeeeeen
      @robeeeeen 4 หลายเดือนก่อน

      @@artfullcoder Thanks, I could not find the FastCGI anymore in Windows 11. Is it discontinued?

    • @artfullcoder
      @artfullcoder  4 หลายเดือนก่อน

      Hi, yeah, you need to make sure that CGI is turned on via "turn windows features on or off" and the windows fastcgi appears at server level in IIS not site level. From there you can configure PHP. Its under "Internet Information Services" > "World Wide Web Services" > "Application Development Features" make sure "CGI", "ISAPI Extensions" and "ISAPI Filters" are ticked

  • @thesupremepizza6893
    @thesupremepizza6893 6 หลายเดือนก่อน

    Hi, i did these steps but i've come across the issue http error 500.19. It's says it's because of a duplicate collection entry of type "PHP" with key attribute name set to PHP. I've been into the application.config file and removed it, then when that didn't work restored it and removed it from the web.config file instead, and that still doesn't work, just coming up with the error where it tries to run the PHP as a static file.

    • @artfullcoder
      @artfullcoder  6 หลายเดือนก่อน

      Hiya, have you tried creating a blank php file in your project and see if you still get the same error

  • @eriksanchez3218
    @eriksanchez3218 5 หลายเดือนก่อน

    Hello, do you have a tutorial on how to configure IIS to follow this same tutorial, thank you!

    • @artfullcoder
      @artfullcoder  5 หลายเดือนก่อน

      Yes, i have a video that shows you how to install iis on windows 11, if you goto my channel its on there

  • @ehtishamnaveed1639
    @ehtishamnaveed1639 8 หลายเดือนก่อน

    I did the eaxt steps, but i still can not run my host my php project. all html projects work fine

    • @artfullcoder
      @artfullcoder  8 หลายเดือนก่อน

      Thanks for reaching out, have you followed the steps in this video, you will also need to make sure cgi and isapi support is also enabled, there could also be a permissions issue if you are running on c drive depending how you have your laptop setup, have you also added index.php as a default document within iis?

    • @ehtishamnaveed1639
      @ehtishamnaveed1639 8 หลายเดือนก่อน

      @@artfullcoder Yes i have installed the cgi and isapi , i dont know about the file permission,
      i am getting this error,
      "500 - Internal server error.
      There is a problem with the resource you are looking for, and it cannot be displayed."

    • @artfullcoder
      @artfullcoder  8 หลายเดือนก่อน

      @@ehtishamnaveed1639 hi, thanks for your reply, usually thats caused by an error in your code, try creating a blank index.php file with no php code in and see if you get the same problem. Also check windows event viewer to see what errors you are getting as by default any errors are sent to windows event viewer, also check that you have php.ini file and settings are correct e.g are you trying to use a feature of php that isnt enabled like curl for example. Also check your php version to make sure its compatible with iis

  • @bernpaul9868
    @bernpaul9868 5 หลายเดือนก่อน

    I think before doing this make sure you have your IIS set up already on your windows machine im looking forward if its possible to use this without buying any domain or hosting and people can see my web site hehehe

    • @artfullcoder
      @artfullcoder  5 หลายเดือนก่อน

      Hi @bernpaul9868, thanks for your comment. You do indeed need IIS preconfigured. In response to about hosting this so people can access it without hosting or domain name there is a service called noip.com or along those lines and you simply install the client where you have IIS installed and you get a free website address. I have hosted my own servers, with this option you need a domain name, a static ip address from your ISP and you point the website address to your static IP and configure port forwarding on your modem / router. This is something i have done before and worked well for me. There are pros and cons of these different options but hope this helps you in your goal.