Install & Configure Apache with PHP, JSP, MySQL, and PHPMyAdmin on Windows 2000/XP

Guide: Install & Configure Apache with PHP, JSP, MySQL, and PHPMyAdmin on Windows 2000/XP

This is a quick guide I wrote to install and configure the Apache web-server with PHP and JSP support on a Windows XP Pro SP2 machine. Let me know if this helps you out! Feedback is appreciated. This is my first published guide. I made it for my own reference. Why not share? Did you find this guide useful? I appreciate feedback.

Update (10/2/2005): I just released a major update to the Install & Configure Apache, PHP, JSP, & MySQL guide. I’ve included all the latest versions of the various components.

Update (12/27/2005): Major updates all around! I’ve updated Tomcat with the help of Kevin Saunders. It now uses mod_jk-apache-2.0.55.so since mod_jk2 has been depreciated. I’ve also updated PHP, MySQL, and PHPMyAdmin to the latest versions. WordPress 2.0 was just released so I’ve updated that as well. It finally works with MySQL 5!

I’m new to Ruby on Rails so I’m not sure how correct my installation instructions are, but I’ve included them anyway. Hopefully someone will find them useful. Let me know.

digg story

339 Responses to “Install & Configure Apache with PHP, JSP, MySQL, and PHPMyAdmin on Windows 2000/XP”

  1. Stephen Bussard Says:

    Thank you very much for your help,
    I was looking for a way to do all the things you mentioned on your site (which before I had many failures), but because of your help I’m up and running! Thanks again, Stephen

  2. Robert van Schoubroeck Says:

    the setup works ok. thanks

    where do I have to put my website?
    ( must it placed in the C:\Program Files\Apache Group\Apache2\htdocs\mysite. ) ?????

    thanks Robert

  3. Jeff Says:

    The default location is C:\Program Files\Apache Group\Apache2\htdocs\, but you can change that. Just go into the httpd.conf file.

  4. prashant Says:

    Hello sir,
    I am working with MYSQL and i want to configure it with PhpMyAdmin i have install Apache na Mysql, and i tried with your document, but it is not working, so please tell me, how could it happend.

  5. Mohammad Says:

    Dear Sir,
    I have installed Apache n PHP. I tried with ur document, its not working.
    pls help me.

    samiruzzaman

  6. Mohammad Samiruzzman Says:

    oh i forget to give my email address.
    samiruzzaman

  7. Yick Chan Says:

    Hi,

    I installed and configured the Apache2, MySql 4.1, and PHP 5.0 as suggested. However, when I ran the phpinfo(), I didn’t see the “mysql & mysqli”. Which step did I mess up?

    When I tried to create some tables, I got the following error message:
    Fatal error: Call to underfined function mysql_connect()

    Any help is appreciated.
    Thanks,
    Yick Chan

  8. Jacka Says:

    excellent! ABSOLUTELY 1st rate. An excellent fully documented procedure. spot on. - only one little niggle - i’m doing the same set of installs but on LINUX. still you’ve still set out the procedure and steps with excellent clarity. i’ll do my best to mimic your thoroughness with my own install. Well Done.

  9. samian Lu Says:

    Hi ! Thanks lot for your instruction , I would like to ask how do I configure both popular AppServ2.5.3 and j2sdk1.4.2_07 with Tomcat5.5.7 ?

    the reason why I wanna do is I suppose Appserv setup OK with Apache+php+MySQL , only one thing left is JSP. but after I installed Appserv , there is nothing come out(Apache disappear !!) but MySQL …

    That will be nice to here anyone give advice !!! ………… ^^

  10. nani Says:

    i got the same problem as Yick Chan how come is doesnt recognise the extension?php info doesnt show there.! tell us what we could hve gone wrong. and also when i installed the mysql when excuting the serive i got an error about the security it says wrong pass word for the security.im sure i deleted all the instance.! what could have gone wrong i follow ur steps..

  11. nani Says:

    no worries i got it working now. this tutorial is really effective. but just one little thing?is there a way that u can service JSP file as well putting the file in htdocs as well? i can only process JSP file from jsp-examples thnx.good job

  12. Mulky Says:

    same problem w/ nani,

    i need to process .jsp files under my document root/virtual hosts i created under apache 2 (out of the /jsp-examples), so how to configure it to make it works?

    thanks,

  13. Garry Howze Says:

    A very, very good “first publication”! Much better than most.
    I have been tasked with creating a similar document and would like to know, in detail, how you created your Apache/MySQL/PHP guide? Did you just use a word processor? Which software packages?

    Also, everything worked to perfection except the phpMyAdmin package. I keep getting an “Access denied” - Wrong username/password error message.
    Under the phpMyAdmin section you say enter “root” as the user and password is whatever you entered before; but I never entered a password while installing phpMyAdmin. Do you mean the password entered under step #2 for MySQL?

    If you have the time I would really appreciate a response.

  14. Jeff Says:

    Wow, I need to catch up on comments. :)

    To answer Garry real quick: I originally used Word. It was easy enough to paste screenshots into, etc. Unfortunately, it’s not very “web-friendly” so I exported to HTML, and used Dreamweaver to fix up some of Word’s terrible HTML. If I find some free time, I would like to make the page a Wiki so any user can edit it.

    Your assumption about the phpMyAdmin password is correct. I’ll update the guide to make that more clear.

  15. Jeff Says:

    There are two insightful articles involving Tomcat:

    Apache2 + Tomcat 5 + mod_jk2 Configuration
    Accessing Tomcat on Port 80

  16. Loren Hansen Says:

    Very helpful. Very much appreciate it. One correction (I think), is under JSP Step 14.

    ORIGINAL
    Final Test: Open http://localhost/jsp-examples/ in a browser, you should see something like the following:

    UPDATE (or what I had to do is add port 8080)
    Final Test: Open http://localhost:8080/jsp-examples/ in a browser, you should see something like the following:

  17. Lautaro Says:

    Thanks for your help!
    It is simply EXCELLENT! Congratulations.
    Thanks,
    Lautaro

  18. Onkar Jagpal Says:

    Hi,

    Thanks really useful article.

    Came across a few problems, which I sorted, and which you may wish to add to your article.

    Performed the update using PHP 5.0.4, MySQL etc. Apache 2.0

    Installed under windows XP, SP2,

    Everyything worked except MySQL libraries would not load. Kept getting the error.

    “PHP Startup Unable To Load dynamic Lubrary php_mysql.dll”

    and

    “PHP Startup Unable To Load dynamic Lubrary php_mysqli.dll”

    Eventually tracked this down to the fact that the libmysql.dll. For some reason even though the Path had been updated to include C:\PHP, this file was causing the problem. Copied it over to Windows\System32 and everyting just worked fine.

    Cheers

    Onkar Jagpal

  19. maurizio Says:

    I am italian, I d’ont speak well english:-((. You have make excellent work with
    this issue!!!
    Hi. :-)))

  20. Wyzyrd Says:

    An EXCELLENT article - you saved me days of work - many thanks

    I have a question that’s only partly related to the article (not a problem w/steps etc, more likely related to my OS/config)

    Everything installed correctly, as per instructions, and Apache/PHP/mySQL
    all work well (and have for several weeks). However, (on Win2K) I’m unable to start the Jakarta Tomcat service at all. I have uninstalled/re-installed/
    tried newer and older versions from apache.org, but no luck.

    Anyone else have a similar problem? (and hopefully a fix?)

    Thanks
    Wyzyrd

  21. P.V.Faizal Says:

    Hi,
    I managed to install Apache2 with php5. After a few initial hiccups, it’s working well.
    Thanks
    Faizal

  22. D L Snook Says:

    Your setup advice was very valuable and presented in a very easy to use fromat.
    Thank You
    Dave

  23. Lisa Says:

    An excellent article!

    Everything worked to perfection except the phpMyAdmin package. when I ran the phpinfo(), I didn’t see the “mysql & mysqli”. Which step did I mess up? Also, when I try http://localhost/phpmyadmin/ I did not get prompt for password. I got the following error message:

    Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\phpmyadmin\phpMyAdmin-2.6.0-pl3\config.inc.php:833) in C:\Program Files\Apache Group\Apache2\htdocs\phpmyadmin\phpMyAdmin-2.6.0-pl3\libraries\header_http.inc.php on line 15

    If you have the time I would really appreciate a response.

  24. Katja Says:

    Brilliant - thank you.

  25. Dan Says:

    Great guide!

    Do note that in the newest version of PHP - 5.0.4 - dosen’t use (or seem to need) php_mysqli.dll for functioning. I didn’t install Tomcat, JSP, or ODBC - so if it’s needed for those, ignore the previous. Also, the MySQL people have changed their Win32 distribution packages, and now recommend using the ‘Essentials’ pack, as opposed to the full one (it’s half the size).

  26. Stacey May Says:

    An absolutely AWESOME tutorial - wish I had wandered off the beaten paths of apache.org, php.net, & the mySQL site four hours ago. I got fed up & that’s when I found your site.

    I’m nearly done, but I can’t for the life of me get to my MySQL directory through my command prompt because of the space b/w Program & Files. I need to go to c:\Program Files\MySQL\… and I’m experiencing a lapse in my brain waves. Please email me ASAP if you have an answer - the snapshot of this procedure shows it’s possible, but I keep getting an “invalid directory” error.

  27. Goran Kukolj Says:

    Great tutorial!

    Thanks for your help,
    Goran

  28. YrEsZh Says:

    Guys That a great site- great job done thanks…

  29. socheat Says:

    Hi
    after configured httpd.conf
    cannot restart or start apache2 service, error in event viewer
    >>>LoadModule takes two arguments, a module name and the name of share object file to load it from.

    please help
    Thnaks

  30. May Says:

    Hi,

    I installed and configured the Apache2, MySql 4.1, and PHP 5.0 as
    suggested. However, when I ran the phpinfo(), I didn’t see the “mysql & mysqli”. Which step did I mess up?

    When I tried to create some tables, I got the following error message:
    Fatal error: Call to underfined function mysql_connect()

    Any help is appreciated.
    Thanks,

    May

  31. Jan Says:

    This is exactly what I was looking for.
    I am a Java programmer (developing on Eclipse 3.0) and am meant to add some
    Java/JSP/Servlet based components to a PHP based application.
    I know mightly little about PHP but, searching the net, I found out it is
    possible to
    link these 2 programming modules without creating more pain than gain, which
    makes me
    very happy.
    So, your ‘Guide’ is going to be instrumental to get going, thanks a lot.

    Jan Abt

    P.S.: If you have any recomendations on a specific eclipse plugin for PHP, let
    me know.

  32. David Says:

    Great Guide.

    Had the same issue as Loren, but realised I had missed a setup step 8
    “Add the following to the “Load Modules” section of your Apache http.conf file

    LoadModule jk2_module modules/mod_jk2.so”

    Also had issues with the way XP allows you to key in a double-quote “. If you type really quickly and a sentence ends in a “then you get Alt-F S to save, it doesn’t recognise the final quote in notepad. Must be a config setting!

    Thanks for the guide folks. Now I just have to figure out how to talk to mysql or Oracle using jsp!

    Cheers,

    Dave

  33. John Bryant Says:

    Thanks for an excellent guide. Short and to the point. Had no problems getting it all configured and works a treat now.

    Thanks again,

    John

  34. steven Says:

    Your guide is excellent and concise. I am having problems similar to others posted above, namely not seeing “mysql” or “mysqli” in the phpInfo and getting the following message from phpMyAdmin:
    “cannot load mysqli extension;
    please check PHP configuration”
    (which was ‘mysql extension’ before I followed your suggestions.
    When I run a simple mysql_connect() program I get,
    “Fatal error: Call to undefined function mysql_connect() …”
    Any suggestions would be appreciated.
    Thanks, Steven

  35. Snakes Says:

    wow man thanks so much for that. Possibly the most detailed guide i saw and quick and so easy. the number of times i read useless guides that dont tell you how to configure anything. Thanks alot man

  36. Killer B Says:

    Dammit! I should have looked here first! I just spent three hours getting that dll problem sorted by google searching and one failed download!!

    Cheers for the article. Great stuff! Just what I need as the webdesign course I’m studying currently doesn’t teach PHP.

    Thanks for your help. Check out my website to learn how to make a home studio for $1000!

    http://www.studiojunkies.com

  37. Mike Says:

    Thanks a lot for this great tutorial. My PHP is running perfectly and my Local host is running fine. How can other people view my site using my Localhost. Do I have to configure my IP with PHP or something?

    Thanks

  38. Eric So Says:

    Your site is very very….. very great.

    My suggestion is that can you add SSL section into the tutorial too.
    It will great!

  39. Rabbit Says:

    Your guide is great!!! Way way way more better than reading those install.txt — which seems to be a huge puzzle for new users.

    Thanks!!!

  40. netspidex Says:

    thank you very much for your guide.It’s really useful.I followed the instruction in both your guide and the install file in PHP,Excellent!
    Oh god,I got stuck in configuration whole week and now everything’s done.You guide is very effective basically but the others should change the suitable commands so they will work in their computer like me,I had to change the position of dll extensions to system folder(libmysql.dll,php_mysql.dll).
    I use PHP 5.0.4,Apache 2.0.52 and MySQL 4.1.12a in WinXP Home SP2
    this is such a good tutorial!

  41. akqjt Says:

    Great job. Concise and easy to understand and follow. Thanks.

  42. nilleth Says:

    Great walk through! Thanks! I had the same glitch as Onkar Jagpal: even though C:\php is added to Path, apache wouldn’t load php_mysql.dll or php_mysqli.dll. Moving libmysql.dll to C:\Windows\system32 fixed the problem.

  43. Kuba Says:

    Thanks for that. All is very easy with your guide in hands:)

  44. Ross G. Says:

    Wow. That guide made setting up WAMP a walk in the park. Thanks for that guide! I’m a novice programmer, as in, this was my first attempt to establish a server of any kind, your guide made it easy.

  45. Irwin Rommel Says:

    Phenominal! This is why Open Source works. Although it would be nice to see Apache deliver an install with Tomcat included just as Oracle does.

  46. allanlee Says:

    Thanks It’s good for me who is new to apache, mysql and php
    world. I know what to expect when doing my new installations.

  47. kenneth Says:

    I’m a newbie and I’m building a web server using apache,mysql,php etc.. and i recieved these two errows.

    The mbstring PHP extension was not found and you seem to be using multibyte charset. Without mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.

    Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole.

  48. Arif Says:

    Your issue about configuring PHP 5 will work for PHP 5 script independently but this configuration cannot work when I want to connect PHP 5 with MySQL 4.1.13

    Please give me solution to connecting PHP 5 to MySQL 4.1.13

    Thank you

  49. David Joyner Says:

    Thanks very much, you have saved me hours! I was forced into using Java by a need to communicate with HSBC bank Java API. I’m about to start a new project, why shouldn’t I switch to doing everything in Java? Or to put it another way, what can PHP do that Java cannot? Your comments would be very much appreciated.

  50. Tudor Says:

    Hi,
    First you made a good job with this tutorial.
    If it’s possible please make an add to your tutorial.
    After you make an install by your guide you get a red message in phpmyadmin:
    “The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.”

    So the mbstring php extension should be in php.ini (C:/php/php.ini).
    The php.ini should look like this:
    **************************
    include_path = “.;C:\php\includes”
    session.save_path = “C:\Temp”
    session.cookie_path = \
    doc_root = “C:\Program Files\Apache Group\Apache2\htdocs”
    extension_dir = “C:\php\ext”
    extension=php_mysql.dll
    extension=php_mysqli.dll
    extension=php_mbstring.dll >>
    mysql.default_port = 3306
    mysql.default_host = localhost
    mysql.default_user = root
    mysqli.default_port = 3306
    mysqli.default_host = localhost
    mysqli.default_user = root
    **************************

    That’s it! ;)
    Anyway thanks again for your tutorial.

    Cheers,
    Tudor from Romania

  51. Tudor Says:

    Oh, I saw it didn’t show my comment.
    The comment is >> and wasn’t show in my post and it’s on the line with:
    extension=php_mbstring.dll

    If you want to copy this code please remove “>>” from the line.
    Sorry for this :( , wasn’t my fault.

    Cheers again,
    Tudor

  52. me Says:

    hello,

    any suggestion how to solved below problems .. please mail me how to ..

    10q .. really appreciated

    steven Says:

    June 30th, 2005 at 3:11 pm
    Your guide is excellent and concise. I am having problems similar to others posted above, namely not seeing “mysql” or “mysqli” in the phpInfo and getting the following message from phpMyAdmin:
    “cannot load mysqli extension;
    please check PHP configuration”
    (which was ‘mysql extension’ before I followed your suggestions.
    When I run a simple mysql_connect() program I get,

  53. me Says:

    forgot to mention my email ..

    i.am.dark@gmail.com

    please help me .. thank you

  54. me Says:

    thank you for all of u guys .. i’ve solved my loading extension in WINXP

    Add the following lines to httpd.conf:
    Note: httpd.conf is located in C:\Program Files\Apache Group\Apache2\conf\

    LoadModule php5_module “c:/php/php5apache2.dll”

    AddType application/x-httpd-php .php

    PHPIniDir “C:/php”

  55. Rez Barzengy Says:

    thank you it is very usefull,

  56. Aalhaj Says:

    thank you sir for this information , but sir my problem still.
    i have php and mysql project on apache server which use port 8080.
    and i want to add jsp pages on it,
    my question is : how can i make configuration for apache server to let jsp run without using tomcat ot other , just apache?

  57. Daniel Says:

    Hi Jeff

    Thanks for this it was just what I needed to get it all up and running on WINXP.

    I also had the same problem as most in regards to MySQL and MySQLI not showing up in phpinfo(), but have it working now.

    You have to change the following line in the httd.conf file:
    PHPIniDir from “C:/php” to “C:/WINDOWS” (that is if you moved your php.ini file to the WINDOWS folder like the tutorial said to early on).

    Should also get PHPAdmin up and running.

    Thanks again Jeff.

  58. montanus Says:

    hi Jeff,

    i have already read and followed three or four step-by-step desciptions about installing apache-mysql-php-phpmyadmin before, and your one was the first useable version when i haven’t got any error message after finishing the process, tnx!
    (i wonder, what the other guys can do with theit own installing based their own desciptions, but that shuld be their problem :))

  59. Peter Says:

    Superb instruktion, after a long while of searching how to start with my PHP\programming i am now finally able to statt, Thanks to JEFF.

    I only got a problem when restarting apache2, it telling me that the php_mysql.dll was not found in the library.

    I found a sulotion to that on another site and that was to copy libmysql.dll to widows, windows/system and windows/system32 directory.

    THEN everything works just fine.

  60. Frodomohan Says:

    This guide is really great and easier to understand because of the pictures and words that are included concise with the proper steps. But only one flaw, this guide should be available in pdf* format as well so that i can print it and read it.

  61. Greg Says:

    Hi!

    Thanks for publishing this really neat and easy to understand guide. I’ve got everything set up on my XP SP2 machine and am really happy that I now have a local source to practice coding in php/sql! Much easier than ftp’ing my site to my host in order to verify if I have got things working properly.Again, thanks!

  62. Kasper Says:

    Hi

    Thanks for the guide, saved me days - incredible how hard it is to get the apps working together.
    A suggestion: I noticed that PHPMyAdmin only works locally with the mentioned setup. As I was installing a small server I wanted to access it remotely. Apparantly one needs to replace “localhost” in the file “config.inc.php” ($cfg['PmaAbsoluteUri'] = ‘http://localhost/phpmyadmin/’;) with the current IP adress. Don’t know if there is an easier way, this worked for me.

  63. Carlos Says:

    Amazing Tutorial! You guys rock!

  64. Lazos Says:

    I have the same problem as the others. I can not see the Mysql and Mysqli in the PHP info. Can somebody please tell me what i did wrong? Thanks.

  65. Chad Smith Says:

    Hey,

    Just thought I would let you know that the naming on the Java page has changed as well as the tomcat installation of jk2 is being discontinued. I had to use Tomcat5.5/9.9 or something like that. It works out fine, your wording doesn’t need to change but the .exe is not distributed with the zip anymore. Other than that the PHP version has changed (but that is happening quickly as they advance the 5 series).

    Take care and good article,
    Chad R. Smith
    Director of Web Development
    50 Marketing
    http://www.50marketing.com

  66. Chad Smith Says:

    Oh, and one other thing. Instead of having two icons they made it become one. Tomcat will now just hook it’s icon into the apache2 one. No need to have two icons.

    Chad R. Smith
    Director of Web Development
    50 Marketing
    http://www.50marketing.com (comming soon)

  67. Chad Smith Says:

    Sorry, delete that last comment. I forgot I have my box setup a bit differently from a standard one. There are still two icons. Sorry.

    Chad

  68. Stavros Says:

    Hi

    Thank you very much about your tutorial “Install & Configure Apache with PHP, JSP, MySQL, and PHPMyAdmin on Windows 2000/XP”. Thanks for the effort and for sharing.

    You sure did a great job, and helped me a lot!

    However I encountered some difficulties:

    1. When testing php installation I kept receiving this error when starting up apache:

    “Unable to load dynamic libraries mysqll.dll on C:\php\ext……”

    With some googling-help I bypassed this error copying libMySql.dll to system32 directory.

    After this all installation continued normally.

    2. I’m a newbie so I didn’t quite understand why http://localhost/jsp-examples/ worked like a charm and

    http://localhost/myown-apps-folder/ did not.

    I found later that I had to hack the “workers2.properties” file.
    I think you can put this directive to your excelent tutorial - just for newbies
    like me.

    And Some Proposition
    You could extend this tutorial a little by explaining how to serve .jsp pages through the apache doc_root folder.

    I mean, how this url: http://localhost/test.jsp sould work .

    It was quite easy to implement this - with just few lines to httpd.conf, and to server.xml.

    I wish you all the best.
    Stavros

  69. Scott Says:

    Just wanted to say “Thanks” for the information on http://mpcon.org/apacheguide/ it was a great step by step guide to installing PHP, MySQL and the apache server.

    Great job!!

    Scott

  70. Yudha Says:

    Hi,

    i have followed you instruction in installing apache, php and phpmyadmin. but i encounter error where could not find the php_mysql.dll and php_mysqli.dll module not found.

    please help

  71. Marc Says:

    Dude,

    I only followed your instructions for apache / php (I already have everything else going).

    Very refreshing to find a guide that just works and that I don’t need to stuff around with.

    Top Stuff!

  72. kaushik Says:

    Excellent article sir. Thank you very much for publishing this.

    Regards,
    Kausik

  73. Shahzad Says:

    Please help me for configure php with apache server for using MySQL.
    reply in my mail .i am so thank for you.

  74. Kishor Says:

    hey!! gr8 man

    its really pretty use full to me i have configured JSP to my existing
    apache web server very smothly. thanks alot

    bye
    cheers
    Kishor

  75. thomas Says:

    Great guild…. question, since jk2 is no longer supported… have to tried using the lastest jk? which is what i hope to use…. any ideas what will be the diff from your guide? thx a lot

  76. TMary Says:

    The tutorial is Wonderful, but I still have 3 questions:
    1) I have php-5.0.3-Win32. I could not found extention=php_mysqldli.dll model on php.ini so when I http://localhost/phpinfo.php . i only can see mysql and not mysqli.
    2) I didi not install myODBC, and I could not let phpMy admin work , I only can get welcome to phpMyadmin 2.6.0-pl3 not other part , why??
    3) if I start the apach I got error make_socK: coul dnot bind to address 0.0.0.0:80 not listening socket is available, wha tis matter?
    Thank you!

  77. Ivan Sepulveda Says:

    Hi….
    Thanks a lot for this information….
    Was very helpfull to me….

    I also have the problem with de 0.0.0.0:80 but I’make it well and I win. Just modify the file httpd.conf for the localhost:8080.

    I’m from CHILE (South America) and my english is not so good, but, thanks any way.

    ISepulveda.

  78. Matt Domerofski Says:

    Thanks A LOT for putting this together. It worked perfectly. I sincerely appreciate it. I found your site via LifeHacker.com. Thanks again! Matt

  79. Markus Says:

    I cant see the images in IE 6. Your pngfix.js Script seems to be the reason. Maybe you want to disable that.

  80. fau Says:

    Exceptional article. This is the first WAMP installation article i’ve seen that literally gave every single step in easy to understand language (no ambiguities here!)
    *****/5

    -fau

  81. bobv Says:

    Jeff,

    An omission, I think on the Install JSP page. Under Install JK2 Connector

    1. Extract mod_jk2.so from jakarta-tomcat-connectors-jk2.0.4-win32-apache2.0.49.zip to
    C:\Program Files\Apache Group\Apache2\modules

    Which is fine, then later you say:

    Add the following to the end of the jk2.properties file located in C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\

    But there is no such file in that directory. There are catalina.properties and logging.properties. Did you skip a step in the JK2 installation?

  82. Troop Says:

    GREAT STEP BY STEP GUIDE!!!! I’ve never used Apace, MySQL, or PHP. I followed your instructions to the tee……and it worked flawlessly!!! U Da Man. Now all I need to find are some instructions as easy as yours to tweak the Server exactly the way I want it. THANKS!!

  83. Steven Toalster Says:

    God bless you ! ! I have been trying to get the Apache2 & php & MySQL to load without any error messages for 2 days. Your instructions were excelent.

    To get a clean run, I had to delete all my previous installations. I used the winXP search function to look for any files the uninstall missed. I then rebooted and started from the beginning. I used the latest version of all the programs except the MySQL. I used 4.1.14 MySQL. Thank you.

  84. Simon Says:

    Hi.

    Just another ‘Thank you’ from another newby. Your tutorial on how to install Apache, PHP and MySQL is short and sweet!

    Whish there’d be more people like you out there… :) Greets from Switzerland Simon

  85. Sixto R Says:

    Thank you so much for your site. I have been trying for about six months or more to do what your site showed me in 5 minutes. Thanks a million, I can finally go to sleep again!!!!!!!!!:)

  86. Cliff Says:

    One of the easiest tutorials i’ve ever done. I wish learning linux was this easy. you should create more of these and for linux. id also like to see gd+ added in this tutorial. i still cant figure out how to get it working for a windows environment.

  87. David Says:

    Great tutorials! Easy to understand and follow the instructions, especially for a newbie like me!

    Cheers

    David

  88. Tony Says:

    Excellent site!

    You helped me get up and running, finally…

  89. Adam Says:

    Excellent guide! I’ve been looking for one of these for so long. I know it must have taken you a lot of time and effort to do but it is greatly appreciated. Thanks again.

  90. Liz Says:

    I installed everything but I am having a problem with PHPMyAdmin, when I do the test to load it in my web browser I get the following error: Parse error:parse error, unexpected’;’ in C:\Program Files\Apache Group\Apache2\htdocs\phpMyAdmin\libraries\database_interface.lib.php on line 18.

    What do I need to do to get this working? Please help!

  91. Ricardo Says:

    Excellent guide. Great Job

    Thank you.

  92. saint Says:

    Hello!

    I can’t start the PHPMyAdmin. I try all the solution, presented on this site, but sill nothing. :( Please help!

    I get that message:

    PHP Strtup: Unable to load dynamic library ‘c:\php\ext\php_mysqli.dll’.

  93. Ivan Says:

    Great guide!

    I’m going to try to install php4 and php5 on one apache httpd server. Say PHP 5 files to have .php4 extensions.

    I think there is no such info in your guide. Any idea?

    Cheers!

  94. webecho Says:

    Mate, you’re a champion, i have tried to set up the apach mysql php combination far too many times - your ‘walkthrough’ was superb, i only had to Google twice for problems

    A couple of suggestions (if you dont mind)

    At the end of the phpmyadmin setup, just add that there will be a password required to access it and the username should be ‘root’ and the password is your mysql one.

    The other thing i had to Google for invloved copying the msqllib.dll into C:\Windows\Sytem32 to overcome an error “couldn’t find mysqli.dll when restarting apache

    maybe just add it as an “it didn’t work” option

    Apart from that, it was an excellent walkthrough - really easy to follow and very helpful

    Thanks

  95. DriVAnce Says:

    Ah thanks your guide helped with one thing I never would have thought about the ext dir, I just installed php 5 / mysql 5 / apache 2 when I got problems with the mysql (this time NO libmysql.dll actually) since I installed it on another drive so I had to change the ext directory thanks for the help on that bit btw your guide is nice :-) especially when installing on other drives :-D

  96. John Says:

    other than the fact that a new version of MySQL just came out, this is an absolutely amazing tutorial

  97. Victor Says:

    Excellent tutorial. Had no php, mysql, apache experience but set up in no time. Thanks a bunch.

  98. Ken Says:

    Thanks a lot, I have spent a lot of time trying to get mysql to work with apache and php, and finally I have done it thanks to your tutorial. I had phpadmin working fine, yet my php script was simply ignored. It took me ages to eventually work out that your script setup mysqli, and needed to be duplicated exactly for mysql in php.ini. Once I had done that, and remembered to re-boot Apache, it worked. My test script actually created a table on the mysql database. Thanks for your efforts, I greatly appreciate them.

    P.S. To anyone else, new versions mysql etc. have been released, but even with the new changes, this tutorial does work with a little effort, small compared with the enormous effort in creating this tutorial. Once again, Thanks.

  99. Liam Says:

    Hey, ok so this worked amazingly!

    One problem, phpBB does not want to work, says database type isn’t valid, can you give me a hand here? Please.

  100. Yumbel Says:

    Hola, he realizado la instalación , pero tengo un inconveniente, que no puedo realizar la conexion con el MYSql, le he dado todos los cambios, que indican las paginas , pero no puedo realizar la conexión, necesito que me den una ayuda en esto gracias

    English Translation: Hello, I have carried out the installation, but I have an objection, that cannot carry out the conexion with the MYSql, I have given him all the changes, that indicate you paginate them, but I cannot carry out the connection, I need that they give me an aid in this thanks

  101. Jeff Says:

    I updated the guide with MySQL 5.0.15. Apparently, this breaks several apps such as WordPress or phpBB. I recommend using MySQL 4.1 until the bugs are worked out.

    This is a result of MySQL 5 actually enforcing “NOT NULL” conditions on the database. MySQL 4 let users get away with not having a default value for required fields. If you want to avoid the hassle, use MySQL 4.1.

  102. Nill S. Escobar Says:

    Hello, I have follow all the instruction on the website wich are excellent. The only part where Im lost was on instruction #5. Open your httpd.conf file located at C:\Program Files\Apache Group\Apache2\conf\. Add the following lines, and then save. Question?, where do I have to insert this lines in order to make it work. Hope you can help me on this. And thank yoou very much.

  103. adriano sousa Says:

    hi man.
    i go try.
    from brazil.
    saudações
    thanks for tutorial.

  104. marc Says:

    I’m trying to install the a localhost server, and I’ve done everything it says (with a couple small exceptions, where I moved the location of some of the directories), and everything seems to be working properly. PHPMyAdmin works, phpinfo is showing that I’m running MySQLi 4.1.7 but WP still can’t find the DB, trying to install a local copy of WordPress and it spits out:
    Your PHP installation appears to be missing the MySQL which is required for WordPress.

    any suggestions?

  105. Jeff Says:

    For WordPress, try enabling the mysql extension in php.ini (you can leave mysqli in there as well). For some reason, WordPress looks specifically for mysql support, and doesn’t accept the newer mysqli extension.

  106. Todd Sullivan Says:

    Hello. I have wanted to set up a local web server to play around with for quite some time. I finally got around to it today and your guide helped a lot. Thanks

  107. George Says:

    I can’t thank you enough!
    One heck of a job you did managing all of that info into one straightfarward tutorial. I’ve been searching for something of this kind but the rest are either outdated or have serious errors.

    Thank you again!

  108. Youness Says:

    Thank you very much !

  109. Marco Says:

    Great job! It works like a champ! First time! I only installed apache, php, mysql and phpadmin…

    only one step left for me… I installed phpnuke and phpbb (created databses, etc…) and when I point to the index.php (either phpnuke or phpbb) I get a blank page. Any ideas where the problem could be?

    Marco

  110. August Says:

    Great easy to follow tutorial. i am very new to the self server stuff and with your help and a few tips from my brother i had it up and running in just under an hour. i am only using apache and php. tomcat didn’t want to work right but oh well i don’t need it for what i want to do. thanks for taking the time to write it all out !!!!

  111. triad_jonie Says:

    Hello there…..

    I have installed Apache 2.0.55 and PHP 5.0.5 perfectly. The problem was with mySQL…
    In the MySQL Service Instance Configuration Wizard window, these are the results:
    (Checked) Prepare configuration, (Checked) Write configuration file (C:\Program Files\MySQL\MySQL Server 5.0 my.ini), (X) Start Service, (Not Checked at All) Apply security settings. And an “Cannot create Windows service for MySQL. Error:0…

    Did I miss something? I am new to Apache,PHPandMySQL… Can you help me.

    jonie d. villejo
    davao city, philippines

  112. rathy Says:

    thx

  113. Jondar Says:

    Jeff,

    Thank you *very* much for this concise, easy-to-read tutorial! I had been searching for a while for a suitable “newbies” guide to setting up a WAMP server setup for testing purposes and after discarding various “how-to” guides and “all-in-one” installers, decided to try yours.

    I followed your simple instructions with minor modifications (mainly to a custom install and htdocs directory setup) and it worked without a hitch!

    Now I can do all my website testing on my own machine, without tedious FTPing to my webhost!

    I found your idea of downloading and installing each component seperately — as opposed to an “all-in-one” solution — to be much easier to deal with, and should — in theory — be easier to upgrade in the future as new versions are released.

    I’ve bookmarked your guide, and will be letting others know about it if they need it, it has been a tremendous help.

    With much gratitude,

    Jondar of http://www.varos.net/

  114. Jesus Says:

    Me gusto mucho la guia para instalar el servidor Web apache con PHP y MySQL, gracias a ello ya tengo corriendo el servidor web en mi propia pc y ya empece a crear una pagina Web dediacada al desarrollo de videojuegos con OpenGL en Creando un videojuego con OpenGL, espero que sigan poniendo guias de este tipo.

    Saludos

    English Translation: Me a lot of flavor guides it to install the servant Web apache with PHP and MySQL, thanks to it already I have running the servant web in my own pc and already harms to create a paginates Web dediacada al development of videogames with OpenGL in Creating a videogame with OpenGL, I expect that they continue putting you guide of this type.

  115. DriVAnce Says:

    Yeah I noticed that mySQL 5.0 has some problems not like the “ID INT Not Null auto_increment unique” so I downgraded it to mySQL 4.1 (thought its not fun since I lost many features I really wanted) but We’ll see when I learn to create autoid on ID :-)

  116. Gilles DEVAUX Says:

    Hi,
    Thanks for this tutorial, it is great but I still got a problem: I can use JSP pages from tomcat but not servlets, any idea of what’s wrong?
    Thanks a lot

    Gilles

  117. Joreck Dizon Says:

    Hi,

    thanks for the walk through tutorial. It was very helpful, simple and very clear. however, i am experiencing difficulty linking php with mysql. whenever i try to execute my php code through window internet explorer, it does not output anything. But it works fine if the php code where to be executed using command prompt (e.g. C:\Program Files\Apache Group\Apache2\htdocs\Joreck Dizon>php mysqlconnect.php).

    Thanking you in advance. Im looking forward to your reply at the earliest convinience.

    kind regards,
    Dizon, Joreck

  118. Joreck Dizon Says:

    hi

    its me again. I have managed to sort out the problem. I missed out one step from your guide. how foolish of me. By the way, your guide is the best I have ever seen in the internet. It is simple enough for newbie like me to understand. Thanks again

    kind regards,
    Dizon, Joreck

  119. Juying Says:

    Thanks a lot!

    I finally get wordpress work and running!
    I have tried reinstall and reconfigure mysql, php, phpmyadmin and apache over and over but just can’t get wordpress work
    Thank you so much for your excellent documentation! You solved my problem.
    In my case, the whole thing is:
    Windows2000pro,
    Apache 2.0.54; MySql 4.1.15
    Php 5.0.5 ; Phpmyadmin 2.6.4;
    Mysql-connector-odbc-3.51.12; Wordpress-1.5.2

  120. m4rk Says:

    Hi Jeff

    A great set of instructions. I tried a few and had problems and wasted lots of time. Yours worked a treat. I said so at webuser forums and posted a link to your instructions here:

    http://www.webuser.co.uk/forums/showflat.php/Cat/0/Number/236805/an/0/page/0/gonew/1#UNREAD

    I hope you don’t mind.

    Thanks for posting the info to share.

    m4rk

  121. sb Says:

    Thank You. This ‘quick’ guide was a good help making apache and php work. :-)

  122. Festus Says:

    Hi Jeff,
    Well done, powerfull work,congratulation!!!
    i have problem with my php: everything is runing perfect(phpmyadmin also) all my files with ext. html or js are runing but whenever i use .php it does not work.
    Can you help me other someone else

    Do well

    Festus

  123. Mauro Says:

    Really really a quality help, very clear and right to point.

    regards
    Mauro

  124. Darren Varley Says:

    Havent run a site from my house in years. I had forgot how to configure everything….this site was AWESOME!!!!! Was up and running again in no time!

    Thank you so much, excellent!!!!!

  125. David Chavez Says:

    Jeff:
    Lots of thanks!. Everything worked fine for me on my own WAMP experiment. Proof is I set up the thing in less than 3 h. Of course I´m not an IT expert, I do it just for the fun and the learnig.

    Congratulations on your EXCELLENT work.

    P.S. The presentation is also very nice.

    Have you tried other languages apart form english?. I myself, am a native spanish speaker.

  126. Josh Grant Says:

    Thank you very much! Very informative and works great!

  127. Bob Neeper Says:

    Hi Jeff, Super Instruction !

    I struggled for days trying different versions of Apache, PHP,PHPAdmin’s MySQL, UniServer, etc., etc. Wordpress worked on a virtual pc and sort of started working when connected from another. Goal was an intranet only blog.

    Found your instrucations and even though I skipped a few steps and messed up others, managed to get back to the same point.

    Finally found a note in a forum about setting the URLs in the Options > General section. What a difference.

    My point is, you might add a step about this configuration change to make Wordpress available to an intranet world.

  128. DriVAnce Says:

    Hiya, I was wondering if you would be nice enough to put a secure socket layer guide (SSL) installation for Apache 1.3?

  129. Noselyk Says:

    Just wanted to send thanx for an excellent site on setting up Apache, PHP, PHPAdmin’s. My friend sent me your link and it was a breeze thanx to your tutorials. I just ran into one problem when setting up phpmyadmin and that was remembering to go back to the apache’s http.conf file and changing the DocumentRoot folder name. Thanks again - your site is awesome.

  130. Ahmed Says:

    excellent tutorial.

  131. TripN Says:

    Jeff, thanks a bunch for the tutorial. Very easy to follow, but I did manage to screw it up. (BobV back in October had the same problem). I can’t find the jk2.properties file in the following directory:
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\

    There are two property files there: catalina.properties and logging.properties but adding the lines to these doesn’t seem to work. Also creating a jk2.properties file and adding the appropriate lines to it didn’t work either. Any help would be greatly appreciated.

  132. Nill S. Escobar Says:

    This is the best step by step installation I have seen. Thanks for everything

  133. Carl Andrew Ponte Says:

    Thank you so much for this walkthrough-installing those server apps…

    Very detailed step by step procedure…

    got me workin on my JSPs in no time :D

    GOOD JOB

  134. Fedor Bierwirth Says:

    ERROR!!!
    In the section INSTALL PHP the line:
    session.cookie_path = \

    should be:
    session.cookie_path = /

    Best regards

  135. jonie_villejo Says:

    I am a noooobbieee, used mpcon’s installation for Apache 2.0.55 Php 5.0.5 and MySQL 5.0 also phpmyadmin… Apache, Php, mySQL and phpMyAdmin works but, my Php Scripts for connecting to MySQL does not display anything from my browser. The browser doesn’t show any Error at all, just NO CONTENT….

    Can you Help me?

  136. Jeff Says:

    Jonie posted a comment about nothing being displayed.  In order to diagnose the problem, I’d recommend turning on an error log.  To do this,

    1. Open c:\php\php.ini.
    2. Find the line that reads
      ;error_log = filename
    3. Change it to read something like this:
      error_log = c:\php\error.log
    4. Save php.ini and restart Apache.

    Once you’ve done that, PHP will start logging all the errors to that file.  Simply go to the page that’s giving you problems and then open the log file to see what errors there might be.

    An alternative to this would be to turn on “display_errors”.  This will make PHP print out all the errors to the web-browser.  This is not recommended since anyone visiting your site will see the error messages to.  This is usually considered a security risk.  To turn on display_errors, simply find the line that reads display_errors = Off and change it to display_errors = On.  Then, restart Apache.  If you use this method, I recommend turning it back off once you’re done debugging.

  137. aoeu Says:

    Great guide, clear, consise, everything a great tutorial needs.

    One thing I feel must you say that is imperitave: be sure that you double check what you type into the php.ini or any important configuration. I spent an hour troubleshooting a problem with connecting to MySQL because of one missing quotation in my php.ini. So double-check!

  138. james Says:

    I am having the same problem as TripN; it seems that they have removed some files they deemed unnecessary from the 5.5.13 release since, 5.5.9 (at least thats what I gathered from the release notes); can’t find the jk2.properties file and adding my own doesn’t seem to work. Any help appreciated!

  139. Benjamin Goudey Says:

    This guide is truly fantastic. I sincerly thank you for writing it. It helped me set this stuff up with such ease. Thanks ver much

  140. John Romero Says:

    Excellent guide - i’ve used it twice now and it’s great to see it updated.

    Now, the only problem that i had was when i was installing MediaWiki. I did everything you described for installed the LATEST versions of apache, php and mysql. The only problem is that when i installed MediaWiki there was a conflict between php and mysql (multithreaded prob). So i had to uninstall everything and look at my ISP’s setup and get those older versions of apache, php and mysql that worked together properly. So….you might want to add a MediaWiki guide and get it going with all the latest stuff since you’re the expert! :)

  141. John Romero Says:

    Ok, i just reinstalled all the latest Apache/PHP/MySQL as per your instructions. Then i installed MediaWiki and had the “multithreaded web server” error as i noted in my last post.

    Well, i fixed it my uncommenting line 647 in the php.ini file:
    extension=php_mysql.dll

    This totally fixed the problem! So maybe you can add this last step at the end of your MySQL instructions so installing MediaWiki is no problem and the issue wouldn’t come up.

  142. John H Says:

    Great site. Found a fix for mysql 5 and phpbb from their site.
    http://www.phpbb.com/phpBB/viewtopic.php?f=14&t=345312
    Thanks

  143. Christian Says:

    Hi Jeff,

    I just wanted to say THANK YOU!!! I had been going stir crazy trying to figure out how to get all of this stuff installed once I had downloaded the files and your directions were a lifesaver.

    You totally rock!

    Christian Young

  144. roy Says:

    Jeff you rock! I only wish I had found your guide sooner…it would have saved me all of those headaches :)

    roy

  145. youcantryreachingme Says:

    absolutely *the* best set of installation instructions i’ve ever seen (and i’ve been through a few!). they are concise, and *correct*!!

    Chris.

  146. Nelson Says:

    Hey Jeff, I was just reading your walkthrough and noticed this:
    “Until Apache 2.1 is out, we have to deal with the JK2 connector. Download the latest JK 2 Binary Release.”
    Since 2.2 is out, does this mean we do not have to deal with the Jk2 connector? If this is the case, are you going to update the tutorial with the steps that need to be taken to complete the installation without it?

    Thanks, you’ve done a great job/service, not only making the tutorial but keeping it up to date!

  147. Tyler Says:

    Guide was great, went from IIS to Apache with PHP, MySQL, and PHPMyAdmin. Alot better. Everything worked splendidly and the guides were easy to follow.

    Thanks

  148. K Saunders Says:

    Thanks very much for the clear guide. One of the really big problems with writing these guides is that the moment you’ve uploaded it, Tomact / PHP / Apache upgrade their internal structure and we all have to start from scratch. It tends to discourage people who write guides as you’re never finished writing it.

    Your idea of a wiki guide is really excellent and will take some strain off you.

    Everything worked very well, PHP works great and so does MySQL.

    However, Tomcat / Apache are not happy. I get
    “Can’t locate API module structure ‘jk2_module’ in file C:/Program Files/Apache Group/Apache2/modules/mod_jk2.so ”

    I’d love to get Apache and Tomcat working, I’ve tried off and on for 4 years and followed a lot of guides. I must have wasted a week over the last 4 years trying and failing to get it working :( The problem always comes down to Warp / Jk / Jk2 which is a big f**** disaster area.

    I’ve given up on the idea of ever getting Apache / Tomcat to work in a production environment on Win server platforms. I now just use IIS and Tomcat and I’ve successfully set up the IIS/ Tomcat combo on several servers and they run fine.

    Any suggestions would be appreciated.

  149. Wayne Says:

    After installing phpmyadmin when I go to http://localhost/phpmyadmin/ All i get is:

    Error

    MySQL said:

    Access denied for user ‘root’@'localhost’ (using password: NO)

    Also since going through the phpmyadmin setup page when I go to http://localhost/phpinfo.php
    I get the standard 404 message now:
    Not Found
    The requested URL /phpinfo.php was not found on this server.

    Apache/1.3.26 Server at localhost Port 80

    I’m not quite sure where I went wrong. I have checked and double checked. If you have any suggestions I would appreciate it. Great tutorial btw, saving me so much time :)

  150. K Saunders Says:

    Answered my own question actually.

    I downloaded *mod_jk1.2* and not *mod_jk2* specified by the guide.

    Once I downloaded “mod_jk2″ it worked fine.

    Unfortunately, jk2 is now deprecated and also doesn’t support load balancing so is not much use for a production environment.

    Interesting to see what happens with Apache 2.2 but I guess that will take a while to become really stable.

    In the meantime, I’m sticking with IIS in production environments and Apache for the tests

  151. Lolek Says:

    just only one comment for installing phpmyadmin tutorial. after you finished all steps in description, you have to open apche’s httpd.conf and add index.php to DirectoryIndex section, otherwise http://localhost/phpmyadmin/ will give you only a directory list.

  152. K Saunders Says:

    Finally!!! Got tomcat / apache working on mod_jk (the mod_jk2 is now deprecated so the configuration of JSP which is listed on this site is out of date)

    My installation of tomcat is in the C:\Tomcat folder and my installation of Apache is in the C:\Program Files\Apache Group\Apache2\ folder

    Here are the
    1. Downloaded mod_jk.so from http://tomcat.apache.org (click on the connectors and find mod_jk). Note: don’t use mod_jk2, it has been deprecated. Installed it in the C:\Program Files\Apache Group\Apache2\modules directory
    2. Added to
    Added <Listener className=”org.apache.jk.config.ApacheConfig” modJk=”C:/Program Files/Apache Group/Apache2/modules/mod_jk.so” /> to server.xml in C:/Tomcat/conf/server.xml
    The full listing is:
    <Engine
    defaultHost=”localhost”
    name=”Catalina”>
    <Listener className=”org.apache.jk.config.ApacheConfig” modJk=”C:/Program Files/Apache Group/Apache2/modules/mod_jk.so” />
    <Realm className=”org.apache.catalina.realm.UserDatabaseRealm”/>
    <Host
    appBase=”webapps”
    name=”localhost”>
    </Host>
    </Engine>
    I then started Tomcat and it generated a file called mod_jk.conf in the C:\Tomcat\conf\auto directory

    3. Added this to just below the end of the modules section in the httpd.conf file
    # ———————— Tomcat jk config —————————
    #
    # Configure mod_jk
    #

    LoadModule jk_module modules/mod_jk.so
    JkWorkersFile “C:/Program Files/Apache Group/Apache2/conf/workers2.properties”
    JkLogFile logs/mod_jk.log
    JkLogLevel info
    # ————————- /Tomcat ———————————–

    4. Added ## ————– Tomcat path to jk.conf —————-
    Include C:/Tomcat/conf/auto/mod_jk.conf
    to the end of the httpd.conf file

    5. Restarted Tomcat and then restarted Apache and it worked!

    Hope this helps someone.

  153. Hasse Says:

    Well I want to thanks all of you that are taking your time to make life a little easier for us beginners.

    And I got a couple of questions (of course):
    I’m running the apache-php-mysql-phpmyadmin config. on my windows xppro laptop, and I have problems with a loginscript (user_id, password) with sessions (nothing happens, just clearing the formfields).

    Even the one with user_id and password stored in a mysqldatabase is not working (Wrong user_id or password).

    I know that these scripts are working cause I’m using them on my website, but when implemented on my laptop as localhost nothing happens.

    How should I continue? I want this to work! Please help me!
    Sincerely Hasse

  154. Hasse Says:

    Oh I forgot!
    When I run phpinfo(); it shows that MySql, MYSQLI and Sessions are working fine. I hope this could clear some questions from you pro’s.

    Regards Hasse

  155. JRB Says:

    Your website is a great resource in helping me install my Apache HTTP server on my Window 2000 system.

    But I have encountered problems during the installation and I do not know where to turn to resolve them. The problems are not shown on your website.

    I get the following error message:
    Only one usage of each socket address is normally permitted. make_sock: could not bind to address 0.0.0.0:80
    which leaves me with a partially installed and non-functioning Apache Server.

    When I did the install I totally disabled my McAfee Firewall so that it would not interfere with anything.

    I would appreciate any help you might have to offer.

    Thanks ,
    JRB

  156. Alex Grim Says:

    I am the owner/webmaster of The Underground : The New Frontier in Rock, and i wanted to thank you for your tutorial on apache,php,mysql.

    I messed with apache+pl CGI a while back when i first came into the pc server scene and it didn’t go to well because i was too new to the pc. Eventually i got into asp.net and taught myself VB.net, but the problem is that i have soo many subdomains and only Server2003 will allow for more than one website, but server 2003 sux as a desktop, it supports very little software at all, plus there has been multiples of other problems, even though my sites are up and running fine.

    The soloution was to go back to Apache, and run php/mysql, but i couldn’t figure out how to get php configured to work with mysql, and i searched the net for some documentation on how to set up what is the most widely used standard for data driven websites, but found nothing but inadequate info, missing steps for important proceedures, no error notes/soloutions, etc.

    …Then i found your tutorial, and when i got to the last step, it worked just like you said it should. I wanted to thank you for the tutorial, and ask you if you have any more tutorials that i can browse through to see if they may be something i can learn from, since i know your stuff is reliable.

    I am now one step closer to breaking away from microsoft, so thanx again:

    Alex Grim

    http://www.GrimMusic.com

  157. Brooks Says:

    Awesome–I find myself going through this process every six months or so, and its always a struggle to remember the necessary steps. The one thing that might add to this is installing Ruby and Rails and the necessary configuration on Apache.

  158. Jeff Says:

    I’m actually working on adding Ruby on Rails to the guide. I’m not as familiar with it myself so it’s a learning process. For a preview, visit

    http://mpcon.org/apacheguide/ruby.php

  159. vince_jr Says:

    Wanted to post and say thanks for the great instruction set. This saved me many hours. Thanks Again.

  160. Petko Dimitrov Says:

    Hi there, I found your “quick guide to install and configure the Apache web-server with PHP and JSP support on a Windows XP Pro SP2 machine” very helpfull and detailed. However, I have two questions that would like to ask you: first, why can’t I see the pictures (or whatever type of file it is)?; and second can you tell me why when I try to test the “http://localhost/phpinfo.php” file, Macromedia opens and asks me how wheather I want to open or save the file? Basically, if I want to open any php file, macromedia opens and I cannot view the file on my local Apache? An answer would be greatly appreciated!! Regards, Petko Dimitrov

  161. Adam Says:

    Hi,

    I have been trying in vein for over 6 hours to configure Apache Version: 2.0.55 and Jakarta Tomcat Version: 5.5.12. I am using you tutorial (http://mpcon.org/apacheguide/index.php). OK I restart tomcat then start apache but this error comes up: “The requested operation has failed”. When The following error is reported when I start apache from the console:” syntax error on line 179 of C:\Program Files\Apache Group\Apache2\conf\httpd.conf. Cannot load C:\Program Files\Apache Group\Apache2\modules\mod_jk.so into server: The specified module could not be found.

    Any help please

  162. Adam Says:

    Sorry, I am using jk version 1.2.15 (mod_jk-apache-2.0.55.so) connector

  163. RAYNOLD Says:

    Hi Jeff,

    I have tried to configure Apache Version: 2.0.55 and Jakarta Tomcat Version: 5.5.12. I am using your tutorial (http://mpcon.org/apacheguide/index.php). OK I restart tomcat then start apache but this error comes up: “The requested operation has failed”. When I checked the Wimdows Event viewer, I saw the following error “The Apache service named reported the following error:
    >>> Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_jk.so into server: The specified module could not be found.” After shutting my computer down and restarting again,
    I cannot even see the Apache tomcat icon on the Taskbar nor start the Apache service. Please kindly help me to fix this.
    Thanks

  164. George Says:

    Thanks for this guide. It’s been a breeze so far. But I’m in the Ruby on Rails section and have encountered a problem. Under the “Create a Rails App” header, I did as instructed, but replaced “myfirstapp” with the name of my site in Step 1. Then when I moved on to Step 2, I substituted in the command line the name of my site for “myfirstapp” again. However, now I am getting an error that reads: “ruby: No such files or directory — “C:/Program Files/Apache Group/…etc”

    Why the change to forward slashes here? How should I proceed?

    Thanks again for the great guide.

  165. Nelson Says:

    Jeff I seem to have a problem, for some reason with the setup you did the tutorial on I can only make tomcat work from localhost. Whenever I try to do it from an outside connection it refuses to work. Ive searched and it seems to be a common problem.
    (http://tinyurl.com/d3j79)

    Do you have any clues?

  166. Stephen Collins Says:

    Thanks for the tutorial, thanks for info, install sucessfully…

  167. Rob Says:

    Jeff,

    What a legend you are. This tutorial was bloody brilliant. They were easy to follow and spot on.

    Well Done

  168. srinivas Says:

    hey

    phpmyadmin is not working on my machine it gives the message

    ” the host name is empty !”

    please help me

    srinu_neo@yahoo.com

  169. Christian Says:

    Hi Jeff!

    I seems to have the exact same problem as RAYNOLD who wrote on January the 2nd. After i have configured the httpd.conf with the ekstra lines about tomcat, and i have restarted tomcat, the apache server just write “The requested operation has failed”. I dont know what to do here

    Please help me out with this one

    christian_olesen@fodboldcoach.dk

  170. dyyee Says:

    Jeff,

    Great tutorial….thank you so much……
    Hope you continue this….
    I suggest that you can keep previous version tutorial too…
    some of us may need previous version tutorial for referance…..

  171. Bug Says:

    This is absolutely useful and helpful. thank you very much. saved me so much time!!!!

  172. Anon Says:

    The guide is excellent, you’ve heard it many times already and you’ll continue to hear it. I’