Installing and setting up Apache Webserver with PHP – Setting up Private WoW Server

Update: Please check the updated post on Installing Apache, PHP, MySQL on Windows XP (for XP users) or Installing Apache, PHP, MySQL on Windows Vista (for Vista and 7 users) instead.

And if you’re looking for an updated wow private server guide, please check the new version on how to create wow private server for better version. Besides the new guide list everything in a single page for easier reading

This is the fourth part of the Creating your own World of Warcraft Server using Mangos

  1. The First part is all about Installing and Configuring MySQL on your Windows Machine
  2. The Second part is about Configuring the WoW Mangos itself
  3. The Third part is all about Setting up Private WOW Server for Lan Party
  4. The Fourth part is all about Installing and Setting up Apache Webserver with PHP

Okay this is the last part of my guide about creating and setting up private wow server. And as the title said, this part is all about setting up webserver using apache on your pc that can be used to put the registration page for your private wow server

Previously i’ve said that i want to tell you on how to create the registration page for your wow server. Unfortunately, it seems impossible (if you know a good registration page that can be used for WoW Classic Server and TBC Server … please let me know) because different mangos version use different structure like column number differences between the wow classic server with the wow tbc server inside the realmd.account table. So in this guide im going to tell you to use the simple registration page created by that can be used for the registration page of your WoW Classic Server

But i think you don’t have to worry about that, because if you understand the steps required to set up webserver on your pc, basically you’ve done the important part with the exception you might need to edit / create the registration page by yourself

As a side note, you can also use your webserver for many other things like hosting your own webpages from your own computer :)

That’s all for the intro … now we’re going to start the guide

Requirements :

  • Apache HTTPD (Free / Open Source) – In this example i use Apache (Apache 1 Series)
  • PHP Win32 Zip Version (Free / Open Source) – In this example i use PHP 4.4.3 (PHP4 Series)
  • Know how to setup port forwarding
  • A simple registration page for mangos

Optional : Some people might prefer the easiest way of doing it … and if you like it that way then i’d suggest you to use XAMPP instead. But if you decided to use XAMPP and you already followed my previous mysql installation guide, you don’t need to enable the MySQL Service from XAMPP Control Panel

Note : i never tried using XAMPP but from the screenshot at XAMPP Website i think the XAMPP provides you a control panel / menu to enable or disable individual service from it

Important Note : Please take caution if you want to make your webserver accessible to everyone, because this guide only tell you the basic way of setting up webserver from your own computer

Installing Apache Webserver :

Since Apache installation for Windows is straightforward, you can just simply follow the setup process until this part, and then continue with the installation process until finished :

Apache Host Configuration

and don’t forget to remember the path where you’re going to install it

Apache path

Installing PHP :

First of all you need to extract php into somewhere on your harddrive, and in this example the php location is at C:\PHP. And after you’ve finished extracting it, go to C:\PHP\Sapi from Windows Explorer and copy the php4apache.dll into the root of the php directory. If you choose to use Apache 2, then you need to copy the php4apache2.dll instead

Here’s what it should look like :

Copy PHP dll into PHP root directory

Installing PHP as module in Apache HTTPD :

Now after finished with the previous steps, you need to configure apache to load the php4 as a module. And here’s how to do it

1. Open httpd.conf in your Apache conf directory (in this example, the httpd.conf can be found at C:\Program Files\Apache Group\Apache\conf\httpd.conf)

2. Uncomment the :

LoadModule rewrite_module modules/

and add this line after all the loadmodule :

LoadModule php4_module “C:/php/php4apache.dll”

Example image below :

Apache load php module

3. At the addmodule section uncomment the :

AddModule mod_rewrite.c

and then at this line :

AddModule mod_php4.c

example image below :

Apache add module

4. At the addtype section add this line :

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Apache addtype

5. Now at the DirectoryIndex section add / replace the previous line with this one :

DirectoryIndex index.html index.php

Apache directory index

From the above example, the index.html always get first priority over index.php file but you can change it as you like

Testing your Apache Installation :

As for the last, now you need to open the command prompt window (Start Menu -> Run -> type CMD) or Start Menu -> Accessories -> Command Prompt

and type :

  1. Net stop apache
  2. Net start apache

This is done to make apache reload the configuration files that have been changed

Apache test page

Now you’ve finished with all the process, but of course you need to make sure your webserver is working properly so now you need to test it by typing http://localhost via your browser and if you see something like above image, that means your webserver is working

You’ve finished setting up apache webserver, mysql and php on your computer .. Now what you should do next ? well … because this is part of the mangos series guide, of course now you need to put the registration page you’ve downloaded previously into your www document root directory

If you followed this guide, the document root can be found at C:\Program Files\Apache Group\Apache\htdocs … but since the webserver is located on the same location as where you are, you don’t need FTP Program to do it, you just need to copy / extract the simple registration page into that directory … simple isn’t it ?


Note: Comment may not appear right away.

134 comments on “Installing and setting up Apache Webserver with PHP – Setting up Private WoW Server

  1. Reaper-X,
    First off… I love the guide.. my server up and runnin on lan with help from no-ip i can access from lan or internet with no probs. I am trying to setup the test reg page. PHP and Apache work fine and the page loads it also writes to the MySQL db…. all except the password…? I used a 3rd party mavicat to view db… no password column i get the MySQL error: Unknown column ‘password’ in ‘field list’. It appears as though it is encrypted and in column I. I could be wrong… any advise on where the password is stored or how i store it in datat base from php app via web

    i am using
    Mango 4875
    apache 2.2
    php 5

  2. Hi! i dunno if i can use a server like this can i? im not realy good at computer but im understand what stands but will i succes?

  3. hey im sure you get this all the time lol, but im having hella time with setting up my private wow server, i have a web hosting for my site through and am trying to work mysql and php database there, ive been playing with mysql and your newer newby freindly mango emulator and trying to get apache 1.3.39 installed. honestly im perty new to php coding in the first place with doing minor twinks on my forum. ive reasearched your tuts for hours on end now with my assistant admin and we are still stumped. ive registerd and am waiting to be in the forum. if you could e-mail me i can give you a lot more detailed info like my server and what not. ty for your time, and i might add, you are a GOD at this lol

  4. Reaper, i have 2 problems:
    First is -(i do all things what you had written in tips) everything works before, but when i made Apache and PhP i want to test my server and there is error and i can’t play. I run `realmd.exe` and `mangosd.exe` and on `mangosd.exe` it shows “(…) Check existing of map file ‘D:/wow/Daemon/Mangos/maps/’ : not exist! Correct *.map files not found in patch ‘D:/wow/Daemon/Mangos/maps’ or *.vmap/*vmdir files in ‘D/wow/Daemon/Mangos/vmaps'(…)”
    Datadir is correct, maps too i think (THERE IS in /maps! and i used ad.exe again – same!)
    Second is: i don’t know how to make registration site (on Web) for my server (where people can register).
    Please help me (i’m makeing server first time and i hope to play it soon ^^)

  5. Hey, I see that you show us how to do this all, you helped me set up my other server and well I need help agian :(

    Its about the port forwarding thing though. How do i forward ports, I went to my modem site and then i logged in using username as admin (default) and pass as password ( default) then it asked me to make a real username and password, well i made it be eaxtly as the default and now i won’t let me forward ports. I am using Verizon DSL modem modle westell 6100.

    I looked all over fot the solution and well noone can help me on this. I called my internet service provider and now they want me to pay more then the original 100$ AMerican dollars we are already paying.

    I came for server help here for last my resort, because i know your good at what you do.

    But well now I am back. Please respond ASAP if you can, I have had like 50 e-mails from our server site saying they can’t join the server registration page, says they don’t have acess and so on (its because of my ports) then people can’t log into my server (its because of my ports) I can play the server on Lan and on my computer but then others can’t.

    Please help. I know your the best and so I came to the best ( not to flatter you)

  6. I just wondered, if we make this on the internet, will our Normal WoW account be deleted? And how do we reset this server, i dont remember…

  7. I got everything running, but the link to the sample reg page is not working. can you send me a link to a good one or email to me.

    Just wanted to also say….AWSOME JOB….getting all this info out here for us.

    Greatly appreciated.

  8. The Apache service is starting.
    The Apache service could not be started.

    The service did not report an error.

    More help is available by typing NET HELPMST 3534.
    i seem to be having the same issue as Xyzy…
    please and info on which direction to go

  9. I got everything running great..I dont know what to do now..I downloaded the registration page and inserted that and that comes up now when i type in http://localhost..Can someone point me in the right direction..thnks a bunch

  10. so i set up the apache server and go to that localhost website, but what do i do now? What do i need to do to get my friends connected and what do they need to do?

  11. Any 1 manage to get the simple sign up working. Please if u have can u msn me at [email protected].

    I have been goin for hours changin shit and nothing seems to work. The server is fine, the DB is fine it all works, just cannot get signup working.

    thanks in advance.

  12. # elliott

    No .conf file ? are you sure ? that files actually always be there or else the httpd process won’t run at all

  13. yo gm levels are actually 1-3 for me cuz moderator=1 game master=2 and administrator=3 and for gm commands in the game press enter type in .commands all the gm commands will pop up that are at you are able to use according to your gm level (p.s. i am using an older mangos thing for client 2.1.3 works great and higher versions connect succsessfully)

  14. Well, fixed that problem, only to come upon a new problem during “net start apache.”

    The Apache service is starting.
    The Apache service could not be started.

    The service did not report an error.

    More help is available by typing NET HELPMST 3534.

  15. Update:

    I must have made a typo with the “net helpmsg 3547,” because it says this:

    A service specific error occurred: ***.


    A service-specific error occurred.


    Refer to the Help or documentation for that service to determine the problem.

  16. When I try to net start apache 2.2, I get the following error message:

    A service specific error occurred: 1.

    More help is available by typing NET HELPMSG 3547.

    When I type that, this message appears:

    The *** service is stopping

    I have a feeling it may have to do with the fact that I cannot find an addmodule section in the http.conf.