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!
+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!
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!
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.
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"
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.
It wasn't interpreting php, I wrote "AddType application/x-httpd-php .php" instead "AddHandler application/x-httpd-php .php" and worked, Excellente tutorial
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!
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
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%
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
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
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"
+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.
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".
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/
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?
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☺☺
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.
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
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.
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
+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?
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.
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
+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.
+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.
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
+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
+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!
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.
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?
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.
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
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.
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"
+郑亮亮 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.
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
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"
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.
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.
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
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.
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
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?
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
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
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.
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..
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
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".
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.
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 ?
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
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?
(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?
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.
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
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"
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
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.
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
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
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
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.
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
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
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
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?
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?
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?
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).
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
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?
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?
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
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?!
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 :) !!!!!
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?
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.
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
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.
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
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.
+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.
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 !!!!
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.
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.....
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.
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!
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.
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.
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!
+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!
wow! this just saved my life. Thanks sir :D
Thank You good sir .
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!
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.
+Yeah Thanks for sharing your experience, is gonna be really useful for other users.
+Yeah sir i am not just exactly finding the word "world wide web publishing" in local services can u please help me...
+Alessandro Castellani sir i am not exactly finding the word "world wide web publishing" in local services.....
You the real MVP
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"
Pinning this comment tot he top as it will be very useful for a lot of users. Cheers
No worries, hopefully it will save you some inbox space on UA-cam. Lol
Thank you very much for your time
thank you so much
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.
It wasn't interpreting php, I wrote "AddType application/x-httpd-php .php" instead "AddHandler application/x-httpd-php .php" and worked, Excellente tutorial
Thanks for sharing your experience, cheers
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!
Happy to have helped also an experienced developer!
Happy Coding :D
I do not have the line ";extension=php_mysqli.dll" in my php.ini file
unselect extension=mysqli instead of that
@@andrianajovanovic8295 thanks
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
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%
Cheers
Nice one, thanks mate
Thank u sooo much
Thank you!
Honestly Dawg, I Love You ryt now
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
saiful islam liton AH00433: Apache2.4 Service is already installed. Error? What should i do
I have used your video numerous times through the years.. each time I buy a new laptop. THANK YOU!!!
OMG the part of that "mnodule" was driving me crazy lol
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
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"
+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.
yes I have used the same version , but i used the non thread safe version for php
dhanush gr Try to install the TS version and see if it solves the problem.
yes that issue is resolved , but now after i restart the system and type localhost in my browser , it says SSL connection error.
+dhanush gr Does it happen only on Google Chrome or also on other browsers?
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".
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/
thanks a lot buddy
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?
go to control panel-administrative tool-service -click on apache and start service
go to control panel-administrative tool-service -click on apache and start service
thanks brother
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☺☺
I'm happy I was helpful, thank you so much for watching and Happy Coding :D
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?
I got the same problem
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.
This did not work for me?
Harry Smith881 I didn't know exactly it is kind of fussy. Try experimenting with the tutorial to see what works for you.
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
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.
I'm getting the exact same sorry I can not help
LoadModule php5_module "c:/php/php5apache2_4.dll"
fixed
Disable your antivirus real-time feature
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!
They do it on purpose, so you're forced to buy the next book :D
Thank you so much for watching.
No problem. Forgot to subscribe while I was here earlier but your nice reply has reminded and convinced me. Looking forward to more content.
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
+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?
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.
+Alessandro Castellani Thank you, I'm excited and looking forward to it.
+Alessandro Castellani do you have this video? I can't find it.
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
+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.
Hmm I have install apacha 2.2 and it's working fine but I don't what to do now
So sir is there is any way to install php on my system??
+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.
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
+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
+Alessandro Castellani yes in have installed all with 64bits versión, windows, apache, PHP and visual c++
+Cristian Santiago Tovar Bejarano if i comment the 3 lines tha we add to the httpd file the Server starts
+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!
+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)
Thanks, worked great. And thanks for all that commented below, that helped too.
explanation is very good . you can not read the screen because the text is blurred.
+Alexander J Perera yeah, sorry about that. My windows pc is really old and the screen recorder was struggling a lot
1st video of mine in which i got 100% satisified. No errors generated.Nice .Thanks a lot....
Thanks for watching :D
Wow you are the man it worked for me!!
Happy to hear that!
missing link c++ www.microsoft.com/es-ES/download/details.aspx?id=48145
sorry for the comment
Thanks Allesandro this was really helpful.
@@alecaddd the way you talk is annoying as fuck
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.
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?
I'd suggest trying Laragon, is a way easier and modern approach to local development on Windows.
Cheers
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.
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
Thanks for watching and for sharing your experience.
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?
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.
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"
Why " C:/Apache24/conf/httpd.conf: Cannot load E:/php/php5apache2_4.dll into server: The specified module could not be found."
+郑亮亮 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.
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
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"
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.
+Jason Williams Awesome! I'm really happy to hear that. Thank you for watching!
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.
Ah thank you so much :D
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.
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
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.
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
Glad it helped
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?
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
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
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
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.
Thank you for the tutorial, even 4 years later it still useful.
Keep the good work. I hope you have a nice day :)
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..
+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
I used your method for windows 7 and php7. This video helped me a lot. Keep up the good work :)
Thank you so much :D
Dude this is so complicated and detailed. I don't know what I'd do if it weren't for this video :')
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
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".
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.
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.
If you use php 7 then it's easy to find out.
bro awsome. i tried 1 day wasting try to install php. no reference showed me correct path.
very simple. awsome
Cheers
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 ?
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
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?
(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?
go check C:/php/php5apache2_4.dll to is whether php5apache2_4.dll exists or not and download thread_safe php version
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.
Thanks for the suggestion
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.
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
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"
Sir you dont know how useful your tutorial was.
Thank you so.
+0komi Happy to hear that :D
"The specified module could not be found", and actually I followed all of the instructions and still got stuck...
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
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.
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
it's the same problem to me.... i really done everything but dll is not found
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
+Ravi Aryal Mh, weird error.
Are you sure you installed everything in the list and from the same version? Or 32 or 64 bit?
yes i ve installed 64 bit
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.
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?
why did u download a 32 bit thing {16:09 time in vdeo } in mysql when u have 64 bit computer
When I recorded this video the 64bit version for Windows 10 wan't yet available.
+Alessandro Castellani
so it worked?
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
thanks :)
nice channel!
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.
Hi, my .ini has not having extension_php-mysql.dll, please help. Thanks
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
Hi, thanks for watching my video.
I suggest you checking Laragon, it's a way faster and better method to manage virtual local hosts.
thank you for your fast reply!! I just looked at Laragon and it looks awesome. I will definitely try it.
You're very welcome :D
Which version of php do I install in apache 2.4.33
Minimum PHP 5.6, 7 would be better.
You can also try laragon, it's a way easier and faster solution.
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
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
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"
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?
yes sir.I created a "index.php" inside "htdocs" of apache
me too, index.html "it's work" but my info.php just load text, please help.
still works in 2022!!! brilliant stuff
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?
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.
I'm glad my video was helpful
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?
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).
same here
Tried restarting, didn't work
did you fixed? me too, index.html "it's work" but my info.php just load text, please help.
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
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
I suggest checking Laragon, is a way more modern and easier approach to local development on Windows.
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?
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?
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 :)
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
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?!
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?
@Alessandro Castellani how do i remove index of/
i had edited 'httpd.conf' file as u shown, but still getting error that cannot load that .dll file into server
Try to use Laragon, is a way modern and easier approach
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 :) !!!!!
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?
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.
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
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.
nvm this did not work XD
i got mine to work by using the php7apache2_4.dll and changing the config file to load php7 instead of php5
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
thanks for sharing your experience
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
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?
I'd suggest trying Laragon. It's a way easier and more modern approach to local development on Windows
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.
+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.
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 !!!!
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.
I'd suggest trying Laragon, is a way better and easier local dev environment solution for Windows.
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.....
what was the letter or symbol that you added before install on the command window?
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.
Same here. Did you find a solution?
No solution yet.
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!
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.
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.