How to install Apache, MySql and PHP on Windows 10

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 1,1 тис.

  • @SRHarkreader
    @SRHarkreader 8 років тому +28

    Well done! I was able to use all directions, with a couple exceptions. Apache suggested installation of php 7 now, so I installed php 7.03 which required that the text in the httpd.conf file be modified slightly from what you said in the video... I entered, without the square brackets, [LoadModule php7_module "C:/php/php7apache2_4.dll"] instead of [LoadModule php5_module "C:/php/php5apache2_4.dll"]. I also installed MySQL 5.7.11. Before finding your video, I spent a full day trying to get this running without success. I've learned a lot. Thank you!

    • @alecaddd
      @alecaddd  8 років тому +1

      +Sam Harkreader Awesome! I'm really happy to hear that.
      As I said in the video, I didn't install PHP7, but I preferred to pick the latest release of v5, due to compatibility issues with current softwares or apps, for example WordPress.
      Thanks for watching!

    • @gabrielrodrigueztorres1494
      @gabrielrodrigueztorres1494 6 років тому

      wow! this just saved my life. Thanks sir :D

    • @azikhi
      @azikhi 6 років тому

      Thank You good sir .

  • @mhmzdev
    @mhmzdev 4 роки тому +3

    After 4 years you are still of great help thanks
    Few things to mention for people installing php7 or higher
    *Install Thread Safe Version of PHP* Very important otherwise there will be no file name "php7apache2_4.dll"
    If you ran into error that "php_mysql.dll" not found while searching simply uncomment "extension=mysqli"
    Good Luck everyone!

  • @mkeysou812
    @mkeysou812 8 років тому +9

    Thanks Alessandro for this excellent tutorial.
    A word of warning - Apache may not start on windows 10 if World Wide Web Publishing Service is running. To fix this:
    Go to the windows start, type services and click on view local services.
    Scroll down to World Wide Web Publishing, right click and select stop.
    Go to console window and type "C:\Apache24\bin\httpd.exe -k start" to start Apache.
    That worked for me at any rate.

    • @alecaddd
      @alecaddd  8 років тому +1

      +Yeah Thanks for sharing your experience, is gonna be really useful for other users.

    • @sampatamnagendrakumar9884
      @sampatamnagendrakumar9884 8 років тому

      +Yeah sir i am not just exactly finding the word "world wide web publishing" in local services can u please help me...

    • @sampatamnagendrakumar9884
      @sampatamnagendrakumar9884 8 років тому

      +Alessandro Castellani sir i am not exactly finding the word "world wide web publishing" in local services.....

    • @Petronzinator
      @Petronzinator 6 років тому

      You the real MVP

  • @IamMrWWW3
    @IamMrWWW3 6 років тому +17

    Just a quick note on installation for newer versions (I ran into an error myself and will put it into my comment with solution)
    Error:
    C:\windows\system32>c:\apache24\bin\httpd -k install
    Installing the 'Apache2.4' service
    The 'Apache2.4' service is successfully installed.
    Testing httpd.conf....
    Errors reported here must be corrected before the service can be started.
    httpd: Syntax error on line 537 of C:/Apache24/conf/httpd.conf: Cannot load c:/php/php7apache2_4.dll into server: The specified module could not be found.
    Solution:
    Make sure to download the "Thread Safe" version, not the Not Thread Safe version. (It wasn't mentioned in the video but is a simple mistake to overlook, and is the only zip that has the "C:/php/php#apache2_4.dll".)
    If installing a newer version, for example 7.x.x etc... from 5 to "whatever number version you have, 7, 8, whatever".
    Change line to fit your version appropriately (See below)
    LoadModule php7_module "C:/php/php7apache2_4.dll"
    AddHandler application/x-httpd-php .php
    # configure the path to php.ini
    PHPIniDir "C:/php"

    • @alecaddd
      @alecaddd  6 років тому

      Pinning this comment tot he top as it will be very useful for a lot of users. Cheers

    • @IamMrWWW3
      @IamMrWWW3 6 років тому

      No worries, hopefully it will save you some inbox space on UA-cam. Lol

    • @pasanggurung9473
      @pasanggurung9473 5 років тому

      Thank you very much for your time

    • @ashbalmidhat8315
      @ashbalmidhat8315 5 років тому

      thank you so much

  • @gergelyvarga2423
    @gergelyvarga2423 3 роки тому +5

    Thanks for this tutorial! Helped a lot!
    Also, with PHP 8, when you load the module, the module name is reduced to php_module and ofc the path is "c:/php/php8apache2_4.dll". so that critical line in there is; LoadModule php_module "c:/php/php8apache2_4.dll". Also The extension is changed and simplified to "extension=mysqli" so the search in the video wont result you. and there I did not do the exeample one, but the listed one and it works.

  • @Simonfloresbaldomero
    @Simonfloresbaldomero 6 років тому +1

    It wasn't interpreting php, I wrote "AddType application/x-httpd-php .php" instead "AddHandler application/x-httpd-php .php" and worked, Excellente tutorial

    • @alecaddd
      @alecaddd  6 років тому

      Thanks for sharing your experience, cheers

  • @faustolima
    @faustolima 8 років тому +2

    Amazing explanation! I'm a C# developer, but I have to change my company's web site, which was built in php, so I've been looking for the way to install it on windows 10, nothing worked until I found your video. It's pretty clear and didatic. Thanks for sharing it. Awesome video!

    • @alecaddd
      @alecaddd  8 років тому +1

      Happy to have helped also an experienced developer!
      Happy Coding :D

  • @grosucosminionut8073
    @grosucosminionut8073 6 років тому +9

    I do not have the line ";extension=php_mysqli.dll" in my php.ini file

  • @praveenpandit7396
    @praveenpandit7396 4 роки тому +1

    Cannot load c:/php/php5apache2_4.dll into server: The specified module could not be found
    IF You Are Getting Same Error Replace The Bottom Code with
    LoadModule php5_module "c:/php/php5apache2_4.dll"
    # configure the path to php.ini
    PHPIniDir "C:/php"
    AddHandler application/x-httpd-php .php

  • @gaocongnghechatviet
    @gaocongnghechatviet 6 років тому +27

    tp fix problem "Syntax error on line 522 of C:/Apache24/conf/httpd.conf: Cannot load c:/php/php5apache2_4.dll into server specific module could not be found"
    LoadModule php5_module "c:/php/php5apache2_4.dll"
    # configure the path to php.ini
    PHPIniDir "C:/php"
    AddHandler application/x-httpd-php .php
    It's Work 100%

  • @SaifulIslam-yx1xl
    @SaifulIslam-yx1xl 7 років тому +6

    hello sir ,i am very new in php . i have installed apache "Apache 2.4.27 Win64" but i face this problem " C:\Windows\system32>c:\Apache24\bin\httpd -k install
    Installing the 'Apache2.4' service
    The 'Apache2.4' service is successfully installed.
    Testing httpd.conf....
    Errors reported here must be corrected before the service can be started.
    httpd: Syntax error on line 72 of C:/Apache24/conf/httpd.conf: Cannot load mo
    es/mod_access_compat.so into server: The specified module could not be found." how to solve this ? please help me

    • @markgelou7688
      @markgelou7688 6 років тому

      saiful islam liton AH00433: Apache2.4 Service is already installed. Error? What should i do

  • @BethMarlatt
    @BethMarlatt 3 роки тому

    I have used your video numerous times through the years.. each time I buy a new laptop. THANK YOU!!!

  • @Dillinger86
    @Dillinger86 6 років тому +8

    OMG the part of that "mnodule" was driving me crazy lol

  • @ahsanabbas9300
    @ahsanabbas9300 5 років тому +1

    How to solve this Error
    C:\WINDOWS\system32>c:\apache24\bin\httpd -S
    httpd: Syntax error on line 537 of C:/Apache24/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from

  • @rakshitha_bhaskar
    @rakshitha_bhaskar 9 років тому +4

    Hey Alex,
    I have installed visual studio 2015 , but still get the error saying "httpd: syntax error 0n line 521 of c:/Apache24/conf/httpd.conf cannot load c:/php/php5apache2_4.dll into the server"

    • @alecaddd
      @alecaddd  9 років тому +1

      +dhanush gr Hi, are you sure you installed both PHP and Apache with the same version? Or x64 or x86? Also be sure to install the TS (Thread Safe) version.
      Let me know.

    • @rakshitha_bhaskar
      @rakshitha_bhaskar 9 років тому +1

      yes I have used the same version , but i used the non thread safe version for php

    • @alecaddd
      @alecaddd  9 років тому

      dhanush gr Try to install the TS version and see if it solves the problem.

    • @rakshitha_bhaskar
      @rakshitha_bhaskar 9 років тому

      yes that issue is resolved , but now after i restart the system and type localhost in my browser , it says SSL connection error.

    • @alecaddd
      @alecaddd  9 років тому

      +dhanush gr Does it happen only on Google Chrome or also on other browsers?

  • @mdasaduzzaman2947
    @mdasaduzzaman2947 6 років тому

    Hi ! when I run the xampp_start.exe file it says the below text (2018-03-17 4:06:11 6780 [Note] mysql\bin\mysqld.exe (mysqld 10.1.31-MariaDB) starting as process 3260 ...). Is it a bug? I thought I should not see any further text/command below the instruction text line ending with the word "gracefully".

  • @alan-salihi
    @alan-salihi 8 років тому +34

    Apache does not work until you start "C:\Apache24\bin\ApacheMonitor.exe" manually, then click "start" from its icon in "system tray". Only then the localhost works!
    localhost/

    • @lucifer7187
      @lucifer7187 8 років тому

      thanks a lot buddy

    • @punitpatel324
      @punitpatel324 8 років тому +1

      hey, thank you for suggestion. I tried what you'd say but it prompts message "The request operation has failed!" when i tried to start Apachemonitor.exe. What should i do?

    • @vaibhavkumargautam
      @vaibhavkumargautam 7 років тому

      go to control panel-administrative tool-service -click on apache and start service

    • @vaibhavkumargautam
      @vaibhavkumargautam 7 років тому

      go to control panel-administrative tool-service -click on apache and start service

    • @vaibhavkumargautam
      @vaibhavkumargautam 7 років тому

      thanks brother

  • @pavikutty7259
    @pavikutty7259 6 років тому +2

    Even though I was desperately waiting for the video to end coz my eyes nearly popped outta my socket and i was spending an hour doing what you did in 17 minutes I'm from the deepest core of my heart is so grateful you uploaded this video😍 Else I could have died inside Google searching forever😂 Thanks yar! Like seriously means a lot ! Take care and do upload more such videos Thank☺☺

    • @alecaddd
      @alecaddd  6 років тому +1

      I'm happy I was helpful, thank you so much for watching and Happy Coding :D

  • @xiaolimao2802
    @xiaolimao2802 8 років тому +5

    Hi, I followed your steps, and the localhost shows index.html success, but not able to show php.info, could please help me to fix it?

    • @dukefizzle1
      @dukefizzle1 7 років тому

      I got the same problem

    • @trumangregg6266
      @trumangregg6266 7 років тому

      Yes I got the same problem. After opening index.html with Notepad, save it as index.php and then delete the old version named index.html.
      I do not know why this works, but I think that having the html file there makes the localhost page display the index.html file. If this is renamed as index.php, the localhost shows the files in htdocs instead of index.html.

    • @SweatGamersHarry
      @SweatGamersHarry 7 років тому

      This did not work for me?

    • @trumangregg6266
      @trumangregg6266 7 років тому

      Harry Smith881 I didn't know exactly it is kind of fussy. Try experimenting with the tutorial to see what works for you.

  • @Enlightenchannel
    @Enlightenchannel 8 років тому

    I've downloaded Visual Studies 2015 but I'm still getting a syntax error on the .DLL file. I tried changing it to php5.dll since there's a dll file in there named that but that hasn't worked either. Now it says can't locate API module structure 'php5_module' in C:/php/php5.dll

  • @karlomiguelperez4450
    @karlomiguelperez4450 7 років тому +3

    Having a problem when I installed Visual C++ 2015 64-bit & PHP 5.6 64-bit as well. I'm at the part where I'm typing this line on cmd (admin enabled):
    "C:\WINDOWS\system32>c:\apache24\bin\httpd -S"
    and getting this error:
    "httpd: Syntax error on line 532 of C:/Apache24/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from"
    Thank you.

    • @barrybee3012
      @barrybee3012 7 років тому

      I'm getting the exact same sorry I can not help

    • @qaiserawan511
      @qaiserawan511 7 років тому +1

      LoadModule php5_module "c:/php/php5apache2_4.dll"
      fixed

    • @moneyaccount9775
      @moneyaccount9775 6 років тому

      Disable your antivirus real-time feature

  • @stride7860
    @stride7860 8 років тому +1

    You rock! My book PHP and MySQL Web Development didn't adequately describe this process and I was struggling for hours. This video worked great!

    • @alecaddd
      @alecaddd  8 років тому +1

      They do it on purpose, so you're forced to buy the next book :D
      Thank you so much for watching.

    • @stride7860
      @stride7860 8 років тому +1

      No problem. Forgot to subscribe while I was here earlier but your nice reply has reminded and convinced me. Looking forward to more content.

    • @alecaddd
      @alecaddd  8 років тому +1

      stride7860 getting my viewers engaged and let them know that they're not just watching a robot, it's important to me.
      Thank you so much for your subscription, happy coding

  • @LastFrontierDesigns
    @LastFrontierDesigns 8 років тому +3

    +Alessandro Castellani Thanks for the tutorial on how to do all this without something like WAMP. You did not run through the configuring the MySQL Installer. Type and networking (Developmental Machine?), accounts and roles (Password and user accounts), and Windows Service. I just went with the common sense approach.
    How do install WordPress now?

    • @alecaddd
      @alecaddd  8 років тому +2

      Thanks for watching. I'm sorry but my screen recorder crashed while installing MySql. I was planning to do a part 2 but never had the time.
      The default settings are good anyway.
      I will release this week a video on how to install phpmyadmin and WordPress on Windows.
      Sorry for the delay.

    • @LastFrontierDesigns
      @LastFrontierDesigns 8 років тому +1

      +Alessandro Castellani Thank you, I'm excited and looking forward to it.

    • @Sealstalker
      @Sealstalker 8 років тому

      +Alessandro Castellani do you have this video? I can't find it.

  • @sudeepsinghrawat
    @sudeepsinghrawat 8 років тому +1

    Sir can you please let me know that where is im doing wrong
    my error is:-"[Thu May 05 07:18:57.692101 2016] [mpm_winnt:error] [pid 4132:tid 540] AH00433: Apache2.4: Service is already installed"
    im also using apacha tomcat but at that time its inactive

    • @alecaddd
      @alecaddd  8 років тому

      +Sudeep Singh Rabat That's the problem. Windows can't handle properly 2 version of Apache installed on the system at the same time.
      I'm not sure if apache tomcat is suitable for a localhost. I'm sorry I can't give you more info.

    • @sudeepsinghrawat
      @sudeepsinghrawat 8 років тому

      Hmm I have install apacha 2.2 and it's working fine but I don't what to do now

    • @sudeepsinghrawat
      @sudeepsinghrawat 8 років тому

      So sir is there is any way to install php on my system??

    • @alecaddd
      @alecaddd  8 років тому

      +Sudeep Singh Rabat If you don't actually need Tomcat, I suggest you to delete Apache and install the new version, the 2.4, and then follow along the tutorial to install the rest.

  • @cristiantovartb
    @cristiantovartb 9 років тому +7

    I´m tired, i downloaded 3 times the files, i installed 3 times the visual studio and i still get the same error "httpd: Syntax error on line 521 of C:/Apache24/conf/httpd.conf: Cannot load c:/php/php5apache2_4.dll into server: The specified module could not be found.", i´m very frustrated ¿can you help me, please?, i don´t know if the error is because i have installed Sql Server and it installs other versions of visual c++ apart of the 2015

    • @alecaddd
      @alecaddd  9 років тому

      +Cristian Santiago Tovar Bejarano I'm sorry for your situation, I know how it is to deal with Windows.
      The first thing I suggest you to try is to check if you have installed both Apache and PHP with the same version, x64 or x86. That could be the problem. Check what kind of OS you have and download the right files.
      Cheers

    • @cristiantovartb
      @cristiantovartb 9 років тому

      +Alessandro Castellani yes in have installed all with 64bits versión, windows, apache, PHP and visual c++

    • @cristiantovartb
      @cristiantovartb 9 років тому +1

      +Cristian Santiago Tovar Bejarano if i comment the 3 lines tha we add to the httpd file the Server starts

    • @alecaddd
      @alecaddd  9 років тому

      +Cristian Santiago Tovar Bejarano mhhh...did you try to create a PHP file with and see if your PHP works?
      If doesn't it means that you didn't hook PHP to your Apache, and you had a typo in those 3 lines.
      Let me know!

    • @cristiantovartb
      @cristiantovartb 9 років тому +1

      +Alessandro Castellani no, the php file doesn't work, i´m going to copy and paste the 3 lines
      LoadModule php5_module "c:/php/php5apache2_4.dll"
      AddHandler application/x-httpd-php .php
      PHPIniDir "C:/php"
      thanks (Y)

  • @wagsman9999
    @wagsman9999 5 років тому +1

    Thanks, worked great. And thanks for all that commented below, that helped too.

  • @alexanderjperera6508
    @alexanderjperera6508 8 років тому +5

    explanation is very good . you can not read the screen because the text is blurred.

    • @alecaddd
      @alecaddd  8 років тому +1

      +Alexander J Perera yeah, sorry about that. My windows pc is really old and the screen recorder was struggling a lot

  • @RollingEuphoria
    @RollingEuphoria 7 років тому +1

    1st video of mine in which i got 100% satisified. No errors generated.Nice .Thanks a lot....

    • @alecaddd
      @alecaddd  7 років тому +1

      Thanks for watching :D

  • @StickMan1316
    @StickMan1316 8 років тому +4

    Wow you are the man it worked for me!!

    • @alecaddd
      @alecaddd  8 років тому

      Happy to hear that!

    • @Aldrannt
      @Aldrannt 8 років тому

      missing link c++ www.microsoft.com/es-ES/download/details.aspx?id=48145
      sorry for the comment

    • @michaellevy9638
      @michaellevy9638 7 років тому

      Thanks Allesandro this was really helpful.

    • @streetdogg4406
      @streetdogg4406 6 років тому

      @@alecaddd the way you talk is annoying as fuck

  • @arassen19
    @arassen19 5 років тому

    A'ight. I followed up your tutorial but typing localhost throws and error saying that "Unable to connect". "C:\Apache24\conf\httpd.conf" is configured to have "ServerName localhost" and saved. No error was shown anywhere. Anyone who had this issue resolved, please comment down below. I appreciated in advance.

  • @squizel29
    @squizel29 6 років тому

    I have windows 8.1 and when I go to 'Environment Variables' and into 'System Variables' then click on Path, it comes up with 'Edit System Variables' NOT 'Edit Environment Variables' like it shows in the video at 9:46. So what do I do?

    • @alecaddd
      @alecaddd  6 років тому

      I'd suggest trying Laragon, is a way easier and modern approach to local development on Windows.
      Cheers

  • @dakhlishahrokh
    @dakhlishahrokh 7 років тому +2

    thank u for this video every thing ok by all installation, i created the info.php but when i open it in my browser it showes the code not the php info table, can sombody help me in this issue.

  • @ajankoppan966
    @ajankoppan966 7 років тому +1

    Thanks for your effort and sharing. One thing I have noticed is as other comments, we need to stop world wide publishing and start apache service mannually

    • @alecaddd
      @alecaddd  7 років тому

      Thanks for watching and for sharing your experience.

  • @rafiquidagreat388
    @rafiquidagreat388 5 років тому +2

    I followed all of this video...but I still don't know how to actually open phpmyadmin? I must be totally dumb. Can you please help?

  • @houseforsale5984
    @houseforsale5984 8 років тому +2

    What to do with problem ?
    httpd: Syntax error on line 522 of C:/Apache24/conf/httpd.conf: Cannot load c:/php/php/php5apache2_4.dll into server: The specified module could not be found.

    • @francodaribeira6417
      @francodaribeira6417 8 років тому +2

      I received the same error, I uninstalled and reinstalled the Microsoft Visual C++ program, re-downloaded the php zip file and made a new php folder and copied into it again. I then went to the cmd and ran the install command, it said it was already installed, now I'm sure it was some how installed incorrectly, so I entered the first line, but used "uninstall" instead of install. Once it was uninstalled, I installed it again, and ran the command with -S, it works for me now. My text on line 522: LoadModule php5_module "c:/php/php5apache2_4.dll"

  • @郑亮亮-v7l
    @郑亮亮-v7l 8 років тому +1

    Why " C:/Apache24/conf/httpd.conf: Cannot load E:/php/php5apache2_4.dll into server: The specified module could not be found."

    • @alecaddd
      @alecaddd  8 років тому

      +郑亮亮 You PHP is pointing to the E:/ drive, and it's wrong.
      As I explain in the tutorial, you should set your PATH variable for PHP, and install PHP, in the C:/ drive.

    • @郑亮亮-v7l
      @郑亮亮-v7l 8 років тому +1

      Alessandro Castellani Thanx guys,cause I download the wrong version of the PHP package,and I''ve figured it out.Thank you so much for this tutorial,it really help for me

  • @alicecooper828
    @alicecooper828 5 років тому +1

    the code he typed in 6:50 in case you don't feel like typing(except my php version is 7 just change it to whatever the number is for you )
    LoadModule php7_module "c:/php/php7apache2_4.dll"
    AddHandler application/x-httpd-php .php
    #configure the path to the php.ini
    PHPIniDir "C:/php"

  • @jasonwilliams199
    @jasonwilliams199 8 років тому +1

    Outstanding tutorial, I've always used windows installer for PHP and Apache, you've taught me some new things by manually installing them. Thank you.

    • @alecaddd
      @alecaddd  8 років тому

      +Jason Williams Awesome! I'm really happy to hear that. Thank you for watching!

  • @youngjm1
    @youngjm1 5 років тому +1

    Dude you are fucking amazing. I really appreciate how straight forward this was. You explained the simple meaning behind some parts along the way and talked through it. Amazing tutorial. For those of you that are installing the level 7 module... check out some of the other comments.

    • @alecaddd
      @alecaddd  5 років тому +1

      Ah thank you so much :D

  • @SlayCrafterz1819
    @SlayCrafterz1819 5 років тому +1

    this error is showing up-
    (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80
    (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:80
    AH00451: no listening sockets available, shutting down
    AH00015: Unable to open logs
    please tell how to fix it?
    I have downloaded php 7.3 (as php 5.6 was not available) and used some directions in coding given in comments.

  • @vineeth3920
    @vineeth3920 8 років тому +1

    hi i am getting this error but not able to solve it Help plz
    httpd: Syntax error on line 529 of C:/Apache24/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from

    • @alecaddd
      @alecaddd  8 років тому

      I think you have a small typo in your httpd.conf file when your declaring the load of the PHP module. Check the file at line 529 and compare your code with mine.

  • @0001chichi
    @0001chichi 4 роки тому +1

    Thanks a lot! it worked. Please note that i needed to manually start apache. I used httpd -k restart on the command prompt and it worked. i can now access this from my local host

  • @hedmilsondomingos5465
    @hedmilsondomingos5465 8 років тому

    Hello I'm getting an error while checking if the apache setting are well configured....
    It's saying "httpd: Syntax error on line 522 of C:\Apache24/conf/httpd.conf: Cannot load c:/php/phpapache2_4.bll into server: The specified module cannot be found." what can I do to solve this problem?

  • @sanctuary833
    @sanctuary833 8 років тому

    Hi Alessandro, I have followed your instructions upto the admin cmd prompt, i have typed Apache24\bin\httpd -k install but the file path isn't being recognised, also the variable change I did and typed the same as above with -s at the end and this also not being recognised

  • @vincentbail7672
    @vincentbail7672 6 років тому

    hello, been doing your instructions but now i wanna just use xampp but i can. How do i do that?
    There may be an error, return code: 1223 - The operation was canceled by the user.
    12:24:57 PM [Apache] Problem detected!
    12:24:57 PM [Apache] Port 80 in use by ""c:\apache24\bin\httpd.exe" -k runservice" with PID 4272!
    12:24:57 PM [Apache] Apache WILL NOT start without the configured ports free!
    12:24:57 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
    12:24:57 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port

  • @SyntheticSoundAI
    @SyntheticSoundAI 7 років тому

    I get stuck at 9:13 and looked in my apache24\bin folder and there is no httpd for it to execute it tells me

    • @alecaddd
      @alecaddd  7 років тому

      Hi, if you can't keep going with the manual installation, I suggest you to try Laragon: laragon.org/
      Super quick and easy install of those packages for Windows.

  • @arumteguh2762
    @arumteguh2762 4 роки тому

    Thank you for the tutorial, even 4 years later it still useful.
    Keep the good work. I hope you have a nice day :)

  • @pardhasaichowdary6810
    @pardhasaichowdary6810 8 років тому +1

    Hey ! i did exactly as you showed but i am not getting index when i typed localhost in web browser.. instead i am getting " The site cant be reached " .. can you please help me..

    • @alecaddd
      @alecaddd  8 років тому

      +PARDHA SAI CHOWDARY Did you restart your computer?
      Also if you have skype, try to deactivate it, and see if it's using the same port of Apache :80

  • @SCARPESG
    @SCARPESG 6 років тому +1

    I used your method for windows 7 and php7. This video helped me a lot. Keep up the good work :)

    • @alecaddd
      @alecaddd  6 років тому

      Thank you so much :D

  • @josephchang9480
    @josephchang9480 8 років тому

    Dude this is so complicated and detailed. I don't know what I'd do if it weren't for this video :')

  • @Dillinger86
    @Dillinger86 6 років тому

    12:35 none of those extensions exist in my php.ini text file. is has only ";extension=mysqli" even searching for "php_mysql.dll" there are no dll files in this php.ini file. it says Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) extension folders as well as the separate PECL DLL download (PHP 5+).
    Be sure to appropriately set the extension_dir directive. I'm stumped

  • @habby.1337
    @habby.1337 8 років тому +1

    how i can resolve?
    C:\Users\USER>c:\apache24\bin\httpd -k intall
    [Fri Oct 28 15:35:38.646631 2016] [mpm_winnt:error] [pid 9184:tid 368] (OS 2)Impossibile trovare il file specificato. : AH00436: No installed service named "Apache2.4".

    • @alecaddd
      @alecaddd  8 років тому

      Are you sure you're using everything or at 32 or 64 bit?
      If you pick a format you need to have everything installed with the same format.

  • @anishman1564
    @anishman1564 5 років тому +1

    In case this shows up"ttpd: Syntax error on line 537 of C:/Apache24/conf/httpd.conf: Cannot load c:/php/php5apache2_4.dll into server: The specified module could not be found." put all the added codes between and tags.

    • @hiimjustin000
      @hiimjustin000 5 років тому

      If you use php 7 then it's easy to find out.

  • @dkirankrishna
    @dkirankrishna 6 років тому +1

    bro awsome. i tried 1 day wasting try to install php. no reference showed me correct path.
    very simple. awsome

  • @sumitwankhede6034
    @sumitwankhede6034 7 років тому

    When I would go to environmental variables and double click on path the their is dialogue box in which I could add only one path. what should I do to fix that ?

  • @mayankstar364
    @mayankstar364 5 років тому

    Hey it's throwing me a syntax error on line 538 of C:/Apache24/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from

  • @monicaverma9298
    @monicaverma9298 8 років тому

    After running the command in cmd for installing apache, its showing me error as "VCRUNTIME140.dll is missing. Try reinstalling the program." Why is it? What shall I do?

  • @baosalin6597
    @baosalin6597 7 років тому +2

    (CMD Prompt Error)
    httpd: Syntax error on line 532 of C:/Apache24/conf/httpd.conf: Cannot load C:/php/php5apache2_4.dll into server: %1 is not a valid Win32 application
    How to fix that?

    • @veryallen3
      @veryallen3 6 років тому

      go check C:/php/php5apache2_4.dll to is whether php5apache2_4.dll exists or not and download thread_safe php version

  • @jerkreations
    @jerkreations 7 років тому +1

    Rather than explicitly changing "DirectoryIndex index.html" to "DirectoryIndex index.php", you should be able to ADD types in order of preference. So the line can read for example as:
    "DirectoryIndex index.php index.html index.htm"
    This way you don't necessarily need to go back to it to change later to adjust the index type.

    • @alecaddd
      @alecaddd  7 років тому +1

      Thanks for the suggestion

    • @jerkreations
      @jerkreations 7 років тому +1

      You're welcome - thanks for the vid! Just needed a refresher, as I haven't done a full manual install for a while, you got me back up to speed.

  • @TheSwordOfPalestine
    @TheSwordOfPalestine 6 років тому +1

    im doing a collage project
    and i done the html page in my pc.
    now ! how can i make a website server and database to my html page. any help,hope u relpy soon,sry For Bad ENG

  • @BVMUSICNJ
    @BVMUSICNJ 7 років тому

    I keep getting a syntax error when i run C:\windows\system32 > c:\apache24\bin\httpd -S ... my httpd.conf file is EXACTLY the same as his and i've checked many times. I get an error that LoadModule takes two arguments a module name and the object to load it from.
    LoadModule php5_module"c:/php/php5apache2_4.dll"
    AddHandler application/x-httpd-php .php
    PHPIniDir "c:/php"

  • @okomi
    @okomi 8 років тому +1

    Sir you dont know how useful your tutorial was.
    Thank you so.

    • @alecaddd
      @alecaddd  8 років тому

      +0komi Happy to hear that :D

  • @Trey795
    @Trey795 8 років тому +2

    "The specified module could not be found", and actually I followed all of the instructions and still got stuck...

  • @LoveAntifa
    @LoveAntifa Місяць тому

    OpenSSL support disabled (install ext/openssl) PHP 7.4.0 I badly need this to be enabled, yes I've uncommented the ; in the line of extension=openssl yet it still refuses to work

  • @kandoll4493
    @kandoll4493 8 років тому +1

    i am having a problem at virtual host configuration step
    at 10.51 in your video
    IT SAYS CANNOT LOAD C:/php/php5apache2_4.dll into server.the specified module could not be found.
    help plz.

    • @alecaddd
      @alecaddd  8 років тому +1

      This issue is really common if you check the comments, pretty much everyone had this problem. The reasons could be multiple.
      Did you installed PHP with the same version of your apache and Operating System? 32bit or 64bit?
      Is the file actually there?
      Did you write the patch correctly?
      Is the file readable?
      Cheers

    • @diegoespinosa3086
      @diegoespinosa3086 8 років тому

      it's the same problem to me.... i really done everything but dll is not found

  • @CR7hapyak007
    @CR7hapyak007 9 років тому +2

    help me please everything goes perfect but at last i enter php -m in command " the application was unable to start corectly(0xc00007b)" is shown in my laptop plz tell me the solution Alessamdro

    • @alecaddd
      @alecaddd  9 років тому

      +Ravi Aryal Mh, weird error.
      Are you sure you installed everything in the list and from the same version? Or 32 or 64 bit?

    • @CR7hapyak007
      @CR7hapyak007 8 років тому

      yes i ve installed 64 bit

    • @CR7hapyak007
      @CR7hapyak007 8 років тому +2

      ok all things working good now but in my browser for localhost IIS windows opens... and i've unchecked IIS feature from add/remove windows features.

  • @TheTurnerProduction
    @TheTurnerProduction 8 років тому

    When adding the directories to the system variable, I don't have the option to add more than one directory. How can I fix this?

  • @anoushkasundaram6082
    @anoushkasundaram6082 8 років тому +1

    why did u download a 32 bit thing {16:09 time in vdeo } in mysql when u have 64 bit computer

    • @alecaddd
      @alecaddd  8 років тому

      When I recorded this video the 64bit version for Windows 10 wan't yet available.

    • @anoushkasundaram6082
      @anoushkasundaram6082 8 років тому

      +Alessandro Castellani
      so it worked?

    • @alecaddd
      @alecaddd  8 років тому

      Anoushka Sundaram yes, unfortunately while installing MySql my screen recorder crashed, but it's a pretty easy installation, just follow the instructions and you'll be good to go

    • @anoushkasundaram6082
      @anoushkasundaram6082 8 років тому +1

      thanks :)
      nice channel!

  • @vern0312
    @vern0312 7 років тому

    I am not seeing the index.html file when i go to "localhost". the files are there in the "htdocs" folder. the browser only says "It Works" im assuming thats for apache server.

  • @isidroespenidojr9679
    @isidroespenidojr9679 4 роки тому

    Hi, my .ini has not having extension_php-mysql.dll, please help. Thanks

  • @spiralpageturner
    @spiralpageturner 7 років тому

    Hello sir I downloaded php 7.0 because we are in the future as of now ;) I'm on part 5:30 and I'm just wondering if this changes how going into conf.httpd how should change I could start over and download 5.0 like you said but that'd be a pain i'm confused any and all help is appreciated

    • @alecaddd
      @alecaddd  7 років тому

      Hi, thanks for watching my video.
      I suggest you checking Laragon, it's a way faster and better method to manage virtual local hosts.

    • @spiralpageturner
      @spiralpageturner 7 років тому +1

      thank you for your fast reply!! I just looked at Laragon and it looks awesome. I will definitely try it.

    • @alecaddd
      @alecaddd  7 років тому

      You're very welcome :D

  • @moneyaccount9775
    @moneyaccount9775 6 років тому +1

    Which version of php do I install in apache 2.4.33

    • @alecaddd
      @alecaddd  6 років тому

      Minimum PHP 5.6, 7 would be better.
      You can also try laragon, it's a way easier and faster solution.

  • @26_kasturiredkar50
    @26_kasturiredkar50 5 років тому

    I'm getting "the code execution cannot proceed because VCRUNTIME 140.dll was not found. Reinstalling the program may fix this problem" I reinstalled it again but I'm getting the same thing

  • @sajanpradhan2517
    @sajanpradhan2517 7 років тому

    I did whats said on the video exactly But the error m getting is after the installation command "Testing httpd.conf...Error reported must ne corrected before the service can be started.Httpd:syntaxerror on line 533 of C:/Apache24/conf.httpd.conf: cannot loaf c:/php/php5apache2_4.dll intoserver the specified module could not be found"Please guide me through steps to recover from this error thankyou

  • @sampatamnagendrakumar9884
    @sampatamnagendrakumar9884 8 років тому +1

    sir,i have been waitin for u r reply.my problem is after typing "localhost" I am getting "it works" but I am unable to open "php.info"

    • @alecaddd
      @alecaddd  8 років тому

      Hi, sorry for the delay.
      So, the page says "it works", and that's a good sign. Your Apache installation is up and running correctly.
      Did you already create a file called index.php inside your apache html folder, and then wrote this code?

    • @sampatamnagendrakumar9884
      @sampatamnagendrakumar9884 8 років тому

      yes sir.I created a "index.php" inside "htdocs" of apache

    • @gaocongnghechatviet
      @gaocongnghechatviet 6 років тому

      me too, index.html "it's work" but my info.php just load text, please help.

  • @ronarmengol1677
    @ronarmengol1677 2 роки тому +1

    still works in 2022!!! brilliant stuff

  • @SMcGwier
    @SMcGwier 7 років тому

    I'm installing Apache and PHP for a school project and when testing it in CMD, I am receiving this error:
    httpd: Syntax error on line 532 of C:/Apache24/conf/httpd.conf: Cannot load c:/php/php5apache2_4.dll into server: %1 is not a valid Win32 application.
    I'm using x64 and have downloaded all the appropriate versions. Has anyone else had this issue and been able to resolve it?

  • @deonbotha5020
    @deonbotha5020 7 років тому +1

    Thank you very much! What a battle it was before I found your instructions. It worked like a dream from the work go and I am up and running.

    • @alecaddd
      @alecaddd  7 років тому

      I'm glad my video was helpful

  • @niklaskarlsson236
    @niklaskarlsson236 8 років тому +1

    hi
    when i try to make the info.php-file
    "
    "
    I see this in my "localhost-site"
    but when i click this it only says:
    ""
    (it open this lite a txt file)
    the "php -m" list the modules..
    please : do you have any Idea?

    • @bbessembinders
      @bbessembinders 8 років тому

      Just would like to add that you may want to restart your computer. I finished the install several times with varying versions of apache24, php5.6(7) and needed to actually restart windows (not just the command window) to enable apache to recognize the settings changed in "httpd.conf" and " php.ini" files (maybe the "php5apache2_4.dll" or something).

    • @AshishPaul24-7gaming
      @AshishPaul24-7gaming 6 років тому

      same here
      Tried restarting, didn't work

    • @gaocongnghechatviet
      @gaocongnghechatviet 6 років тому

      did you fixed? me too, index.html "it's work" but my info.php just load text, please help.

  • @ananyadamodare5165
    @ananyadamodare5165 8 років тому +1

    It says "it's working". It won't show index or version information. There is no problem in apache installing or no error anywhere else. Checked 10000000 times. Please help. VERY URGENT. PLZZ

  • @martinjones1855
    @martinjones1855 5 років тому +1

    I did all of the above mentioned steps yet when I type localhost into chrome it shows "This Site can't be reached". Please help

    • @alecaddd
      @alecaddd  5 років тому

      I suggest checking Laragon, is a way more modern and easier approach to local development on Windows.

  • @kereykkonen
    @kereykkonen 8 років тому +1

    Apache doesn't even start now after this! It started earlier, but after I did your tutorial, it won't even start anymore. I use XAMPP. What should I do?

    • @kereykkonen
      @kereykkonen 8 років тому

      I mean, what do you mean at 13:30? That "make sure apache is running properly"? How do I put Apache on? How do I activate it? You're missing a bit in your information there. When is Apache running properly?

  • @sebastianhernandez845
    @sebastianhernandez845 4 роки тому +1

    I'm getting an error when I try ''C:\>cd php'' it just says ''the system cannot find the path specified''. How do I fix that? Thank you :)

  • @fielbuencamino2421
    @fielbuencamino2421 4 роки тому

    How do I solve this problem?
    httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message

  • @carcina1234
    @carcina1234 6 років тому

    I got problem with the localhost when i wrote it on the search, site report me that "this site cant be reach", second when i click on the icon "index" this time i get the message it work?! What to do can you give me some advice?!

  • @adlp1991
    @adlp1991 8 років тому

    I want to publish my apache server through a public IP, do i need to change the file httpd in the server name from local host to an url?

  • @coolvibesreloaded7946
    @coolvibesreloaded7946 2 роки тому

    @Alessandro Castellani how do i remove index of/

  • @bhushangaikwad8954
    @bhushangaikwad8954 6 років тому +1

    i had edited 'httpd.conf' file as u shown, but still getting error that cannot load that .dll file into server

    • @alecaddd
      @alecaddd  6 років тому

      Try to use Laragon, is a way modern and easier approach

  • @avarishrozario8070
    @avarishrozario8070 4 роки тому +1

    Hey Man, thank you so so much for this video. This is a very very good video which is easy to follow and very informative. With this video I have been able to set up Apache and its basic functions (on my computer). I hope to come back to your videos and learn more stuff. Thank you for the great content and keep it up :) !!!!!

  • @stride7860
    @stride7860 8 років тому

    Hey again Alessandro, I've gotten to a further section in my book and I need to use PEAR (PHP Extension and Application Repository) package installer for things like Mail_Mime and MDB2. I'm supposed to have a go-pear directory under php when using PHP5 but for some reason I don't have that directory with my install. Do you know anything about PEAR and why the PHP version downloaded from this video doesn't have it available?

    • @stride7860
      @stride7860 8 років тому

      I had to manually install it and install the packages. For anyone else who may be using the same book or would like to use PEAR I will list the steps I took:
      1. Download this file: pear.php.net/go-pear.phar
      save it as go-pear.phar. BE CAREFUL: my system saved it as go-pear.phar.txt for some reason.
      2. Save it to your c:\php\ directory.
      3. Open cmd line and navigate to your c:\php\ directory
      4. type php go-pear.phar
      5. answer questions that the script asks you, I installed local and kept defaults
      6. type at cmd line pear install packageName
      You can install things like Mail_Mime or MDB2 as I did.
      This worked for me.

  • @daechonvidens779
    @daechonvidens779 8 років тому +2

    Error following running the installation(C:\apache24\bin\httpd -k install). "C:\apache24\bin\httpd.exe is not a valid Win32 application."" I tried the 32 bit and 64 bit, both gave that error

    • @hyden
      @hyden 8 років тому

      i got the same error so i went to the directory itself and right clicked as admin, afterwards in cmd prompt, i tried the same command and it said "service is already installed" so i think that worked.

    • @hyden
      @hyden 8 років тому +1

      nvm this did not work XD

    • @Xizmoify
      @Xizmoify 8 років тому +2

      i got mine to work by using the php7apache2_4.dll and changing the config file to load php7 instead of php5

  • @chaoschao9432
    @chaoschao9432 7 років тому +1

    i am using window10, after follow the manual, the apache service cannot start up. Only after follow below steps:
    1. Press Windows+R, type regedit
    2. Go to
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP
    Change the value of Start to 4, which means disabled.
    3. Reboot your computer

    • @alecaddd
      @alecaddd  7 років тому

      thanks for sharing your experience

  • @036karan
    @036karan 7 років тому

    localhost refused to connect error. followed each n every instruction. was all upto the mark till localhost part. pls help to figure it out asap

  • @BornStarAmericaKPop
    @BornStarAmericaKPop 6 років тому +1

    When I clicked at the "Path", I don't have the option to add the bunch of variables. What can I do in that case?

    • @alecaddd
      @alecaddd  6 років тому

      I'd suggest trying Laragon. It's a way easier and more modern approach to local development on Windows

  • @LayGraPhix
    @LayGraPhix 8 років тому

    pls any help
    C:\Windows\system32>c:\apache24\bin\httpd -S
    httpd: Syntax error on line 520 of C:/Apache24/conf/httpd.conf: Cannot load c:/php/php5apache2_4.dll into server: The specified module could not be found.

    • @alecaddd
      @alecaddd  8 років тому

      +Layrouns Andoh The system is telling you that the php5apache2_4.dll module cannot be found in that directory.
      Are you sure you installed all the version at 32 or 64 bit?
      Check inside your C:/ drive if PHP is installed.

  • @ΑναστασίαΚαρτελιά-ψ4μ

    C:\WINDOWS\system32>C:\Apache24\bin\httpd -S
    httpd: Syntax error on line 533 of C:/Apache24/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from
    please help !!!!

  • @memilind1992
    @memilind1992 6 років тому

    httpd: Syntax error on line 37 of C:/Apache/Apache24/conf/httpd.conf: ServerRoot must be a valid directory
    getting this error after adding environment. Cannot edit PATH variables. I can only edit user variables when double click.

    • @alecaddd
      @alecaddd  6 років тому

      I'd suggest trying Laragon, is a way better and easier local dev environment solution for Windows.

  • @obiey2540
    @obiey2540 7 років тому

    httpd: Syntax error on line 532 of C:/Apache24/conf/httpd.conf: Cannot load c:/php/php5apache2_4.dll into server: The specified module could not be found.
    oh my god.....

  • @MathsJoseFuentes
    @MathsJoseFuentes 8 років тому

    what was the letter or symbol that you added before install on the command window?

  • @theragingdev
    @theragingdev 8 років тому +1

    I am running into an issue. Everything installs fine (after a few tries) but when after I run the server and I got to my browser and lookup "localhost" it is giving a blank page with a tab titled "localhost" and not "Index of /". I can't figure this out.

    • @cdchap1
      @cdchap1 8 років тому

      Same here. Did you find a solution?

    • @theragingdev
      @theragingdev 8 років тому

      No solution yet.

    • @cdchap1
      @cdchap1 8 років тому

      Sorry to hear that. This morning I just restarted my computer again and it started working. I am new to this so I am unable to explain anything to you. I made no changes from the instruction from the video though. Good luck!

    • @theragingdev
      @theragingdev 8 років тому +1

      Well, It's good to hear the someone who is having the same issue got it working :) It gives me hope. Maybe mine will magically work when I get home and restart.

    • @cdchap1
      @cdchap1 8 років тому

      I hope so! One thing I did differently is in Chrome I typed localhost instead of just localhost, like he did in the video. Did that actually make a difference? No idea, but it made me feel like I did something to help myself.