Loading...

How to install PHP on Windows 10

How to install PHP on Windows 10
How to install PHP on Windows 10, configuring PHP to run as Apache module. Download PHP Thread Safe version from http://windows.php.net/download/

This PHP video tutorial is for Apache web server, install it first before you install PHP.

Correction at 3:20
A mistyped in the session path directory "c"/apache/temp/session" It should be "c:/apache/temp/session" 

Here are the PHP configurations for Apache (httpd.conf):

LoadModule php7_module "C:/Apache/php/php7apache2_4.dll"
ScriptAlias /php/ "C:/Apache/php/"
AddType application/x-httpd-php .php .php5
Action application/x-httpd-php "/php/php-cgi.exe"
SetEnv PHPRC "C:/Apache/php"
PHPIniDir "C:/Apache/php/"

Please watch my video tutorials in the correct order (in the playlist below) to make it make sense.

https://www.youtube.com/playlist?list=PLk3TaFJq0tw7ju86UUfgKF8z-QGisYEKU

If you want to install PHP as FastCGI you can follow the instructions in this video: https://youtu.be/WF726oHZ0xs

RRelated Posts

What is https and how to install SSL certificate

What is https? How does https work? What is https certificate? What type of attacks does SSL protect? What https/SSL does not protect you from? How to install SSL? Verify the successful installation

PHP Programming

Get the Cheat Sheet Here : http://goo.gl/aQbQ4F Learn HTML in 15 Minutes : http://goo.gl/UoSoVm Best PHP book : http://goo.gl/wNMdWf Support Me on Patreon : https://www.patreon.com/derekbanas In

CComments

  • ess wasim
    Why cant the developers provide an installer, makes me wonder!!!
  • Eddie - E11World
    Thanks for the excellent video.
    I got it all right and phpinfo.php works and shows up but when I add any other php files or includes it doesn't work at all. I get "No input file specified." for index.php (which is a html doc with some php in it). When I used index.html and have any php (like echo something), the php doesn't show up at all. It's showing in the source. Any ideas?
  • Eduardo Reyes
    Hi thanks for this tutorial! I need help.... I keep getting this error... "syntax error on line 567 of c: /apache/conf/httpd.conf: Only first PHPIniDir directive honored per configuration tree - subsequent ones ignored" What can I do to fix it? because Apache service can't be started.
  • Immortal Han
    Sir, "this site cant be reached" how can i fix that? Do i need XAMPP to be able to run it on browser? newbie here
  • Falcon Seeker
    fixed it nvm
  • Falcon Seeker
    HEEEELLLLLPPPP my download doesn't come with the 7apache file!!
  • iMoltres
    Could you please helpo me i get an error of

    Not Found

    The requested URL /phpinfo.php was not found on this server.
  • xXWARRIORDUTYPROXx
    It works, i love you. Thank you.
  • Junayed Mahmud
    very helpful video...thank you!its working
  • paisita92HD
    Really works, thanks
  • Shetu Jha
    httpd: Syntax error on line 532 of C:/apache/conf/httpd.conf: Cannot load c:/apache/php/php5apache2_4.dll into server: The specified module could not be found.

    how to solve it
  • bleach man
    Thanks bro, this helped so much!
  • Dn Nero
    Ok' Thx a lot bro...
  • John Hidalgo
    Help 404 Not Found?
  • Cake
    There is no "php7apache2_4.dll" ?
  • Younus Khan
    Nice. great video. But after installing PHP, my apache is not working. Do you have a solution to this problem?
  • Ancient Edit
    so i restart my apache and then i go to http://localhost/phpinfo.php
    and then it said "This site can’t be reached localhost refused to connect."
  • Tejas Naik
    can it be done in xampp apache server?
  • frms xgq
    time: 3:33 / 7:37

    session.save_path = "c"\apche\temp\session" ??? error ???

    it should be like this !

    session.save_path = "c:\apche\temp\session"
  • leandro saley
    wow very good background music. So refreshing whats the title of that minus1 sound?
  • Suly Giri
    Saludos

    Soy estudiante de informatica y estoy teniendo inconvenientes con la instalacion y configuracion de PHP. El motivo de esto es debido al desarrollo de una certificacion que estoy realizando donde se me pide la instalacion del PHP

    https://drive.google.com/file/d/0B2osQiQ8AOksRVJ5TDNocFR2Vnc/view?usp=sharing

    he agregado un vinculo, que lo puede dirigir al archivo pdf, por favor si pudieran leer la tarea 3, que explica bien claro para que es que necesito la instalacion del php se los voy a agradecer.

    muchas gracias!!!!
  • Ravleen Sagoo
    "C:/Apache/php/php7apache2_4.dll" <---- I don't have this file - php7apache2_4.dll is there an alternative in the php7 package we can route the path to?
  • Taqiudeen bin Patrick
    I put php in a folder outside of apache otherwise.. Awesome!