How to create a working registration page for MaNGOS rev 6399
!!How to install your own personal registration page!!
Requirements: [Only registered and activated users can see links. ] [Only registered and activated users can see links. ] Windows 2k/ME/XP/Vista
.:Instructions:.
1. Wamp installation.
That should lead you through the installation...
2. Now, unpack the files inside the Registration rarfile into wampinstallationpath\www\
3. Go into your wampinstallationpath\www\config.php file and configure it as the following.
Code:
//////////////////////////////////////////
#MAIN HOST - MAIN SERVER
//////////////////////////////////////////
="localhost"; // MAIN HOST for Mangos database
="root"; // MAIN USER for Mangos database
="YOUR PASSWORD"; // MAIN PASS for Mangos database
="mangos"; // MAIN NAME of Mangos database
//////////////////////////////////////////
="localhost"; // MAIN HOST for Realm database
="root"; // MAIN USER for Realm database
="YOUR PASSWORD"; // MAIN PASS for Realm database
="realmd"; // MAIN NAME of Real database
//////////////////////////////////////////
#HOST MAIN - REALM ONE
//////////////////////////////////////////
="localhost"; // MAIN HOST for Characters database
="root"; // MAIN USER for Characters database
="YOUR PASSWORD"; // MAIN PASS for Characters database
="characters"; // MAIN NAME of Characters database
/////////////////////////////////
#HOST TWO - REALM TWO
/////////////////////////////////
="localhost"; // 2. HOST for Characters database
="root"; // 2. USER for Characters database
="YOUR PASSWORD"; // 2. PASS for Characters database
="characters"; // 2. NAME of Characters database
/////////////////////////////////
#HOST THREE - REALM THREE
/////////////////////////////////
="localhost"; // 3. HOST for Characters database
="root"; // 3. USER for Characters database
="YOUR PASSWORD"; // 3. PASS for Characters database
="characters"; // 3. NAME of Characters database
////////////////////////////////
#HOST FOUR - REALM FOUR
/////////////////////////////////
="localhost"; // 4. HOST for Characters database
="root"; // 4. USER for Characters database
="YOUR PASSWORD"; // 4. PASS for Characters database
="characters"; // 4. NAME of Characters database
//////////////////////////////////////////
#REALM STATUS CHECK OPTIONS
//////////////////////////////////////////
= 'CP1251'; // Set character encoding for MySQL
= "localhost"; // MAIN HOST adress (for realm status)
= "localhost"; // 2. HOST adress (for realm status)
= "localhost"; // 3. HOST adress (for realm status)
= "localhost"; // 4. HOST adress (for realm status)
= "8085"; // Server port (for all realms status) 8085 or 3724
//////////////////////////////////////////
4. Change the RED parts to your serverip.
Change the PINK parts to your MySQL password.
5. You should be up and running with a functioning Wamp/Registration page for your MaNGOS rev 6300+
6.(Only if it's not working.)
If peopple still can't connect, but you're able to.
Make sure that Port 80 is used as the listen port and that it isnt't blocked by your ISP, Firewall, Router or anything.
To change your port, open the httpd.conf file and edit as following...
(The httpd.conf file is found inside wampinstallationpath\bin\apache\apache2.2.8\conf)
Change the orange part to your new listen port, but make sure that it's open all through, otherwise you'll have the same problem as before.
Code:
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
Hope I was able to help you with this simple guide.
Not to much trouble to do it, but I know how hard it is to find a proper guide.
Best regards, Insanity.
Last edited by Insanity; 08-09-2008 at 11:58 AM.
Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.
Adding something to that, if still people can't connect and you can connect, check to make sure that Port 80 is the listen port and that it isn't blocked by your ISP like me, I had to change my listen port to 81. To change it, edit the httpd.conf File and edit the Listenport you get in there, but I'm pretty sure most of the ISP's won't block port 80, so don't panic a lot.
Adding something to that, if still people can't connect and you can connect, check to make sure that Port 80 is the listen port and that it isn't blocked by your ISP like me, I had to change my listen port to 81. To change it, edit the httpd.conf File and edit the Listenport you get in there, but I'm pretty sure most of the ISP's won't block port 80, so don't panic a lot.
6.(Only if it's not working.)
If peopple still can't connect, but you're able to.
Make sure that Port 80 is used as the listen port and that it isnt't blocked by your ISP, Firewall, Router or anything.
To change your port, open the httpd.conf file and edit as following...
(The httpd.conf file is found inside wampinstallationpath\bin\apache\apache2.2.8\conf)
Change the orange part to your new listen port, but make sure that it's open all through, otherwise you'll have the same problem as before.
if ($this->link_id)
{
if (@mysql_select_db($db_name, $this->link_id))
return $this->link_id;
else
error('Unable to select database. MySQL reported:'.mysql_error(), __FILE__, __LINE__);
}
else
error('Unable to connect to MySQL server. MySQL reported: '.mysql_error(), __FILE__, __LINE__);
}
function query($sql)
{
$this->query_result = @mysql_query($sql, $this->link_id);