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 Mangos-files.de 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 1.3.3.7 (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/mod_rewrite.so

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 ?

Comment?

Note: Comment may not appear right away.

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

  1. this is confusing. I think i’ev downloaded the wrong version of apache since i cannot find 95% of the lines shown in this tutorial. Is this version of apache even availible?

  2. Spectacular blog, by means of fellow that wrote so often. The biggest possibility a affairs that writes to-date information :)

  3. Секретные методы прироста ТИЦ стали доступнее
    скачай описание и узнай как получить ТИЦ бесплатно
    http://augustgeo.com/bestcomplex.rar

    Бесплатный ТИЦ 100 и более за 1 АП теперь реально

  4. Вы попали в самую точку. Мысль хорошая, поддерживаю.
    Принимает дурной оборот.
    Согласен, замечательная штука
    гыыыыыы….. вот так облом
    Извините за то, что вмешиваюсь… Но мне очень близка эта тема. Готов помочь.

  5. Это весьма ценное сообщение
    Пусть будет по-вашему. Делайте, как хотите.
    Мне кажется это блестящая фраза
    Какая замечательная фраза
    Не могу сейчас принять участие в дискуссии – нет свободного времени. Буду свободен – обязательно выскажу своё мнение.

  6. Крупнейший сайт о спорте в Молдове. Трансляции онлайн спортивных событий, статистика, биографии спортсменов, конкурсы и многое другое!

  7. Спасибо автору блога, нашел много полезной информации.
    Кстати а как подписаться на обновления то.

  8. Сайт http://www.avtobest.com.ua фирмы Автобест: прокат автомобилей в Украине. Автобест – прокат и аренда авто, машин разных классов, авто прокат. Адреса пунктов проката. Цены на прокат и аренду автомобилей. Условия проката. Контактная информация.

  9. Сайт investor.ua для опытных инвесторов: акции, опционы, трейдеры, фондовые рынки, продажа акций, интернет-трейдинг. Исчерпывающая информация о финансовых рынках в Украине и мире. Контактная информация. Форум.

  10. can u mail me your registration page that u hav created… so i can work on it… my email:[email protected]
    plz upload to me…

  11. В этом что-то есть. Понятно, большое спасибо за помощь в этом вопросе.

  12. Хостинг webolimp.us про устойчивый хостинг в Европе. Цена за хостинг от 8 рублей в месяц, надежные сервера. Кроме хостинга мы предлагаем следующие интернет услуги: Web-дизайн сайтов, создание web-сайтов, реклама ваших товаров или услуг в сети интернет.

  13. Сайт компании Укрпостач, комплектация промышленной продукции. Комплектаця по Украине: клея, лаки, отвердители, мастика, пластикаты, резиновые смеси. Лаки-АК-113, ФЛ-582, КО-85, КО-815. Смолы, отвердители-Продукт АГМ-3, АГМ-9, К-115, К-153, СЭДМ-6, ЭД-20, Л-20. Резиновые смеси-ИРП-1078 нта, НО-68-1 нта, ИРП-1338 нта.