- Joined
- Jan 18, 2012
- Messages
- 335
- Reaction score
- 119
This is a tutorial on setting up your own Phoenix licence server. Basically, running a licence server allow you to continue using the official Phoenix binary instead of using cracks.
For this tutorial, we will be using BIND, the most popular and stable DNS server. You also need to be running PHP, which you probably already are if you run Phoenix on the same server as your CMS.
Let's begin!
1. Download BIND 9 by clicking
2. Run the BINDInstall.exe file in the extracted directory. Set the target directory to C:\BIND and set a secure service account password. Make sure you keep the username set as "named".
3. Wait for BIND to finish installing. Close the installer.
4. Open a text editor and save this as C:\BIND\etc\named.conf:
5. Open a text editor and save this as C:\BIND\etc\otaku.cm.db, but replace 1.2.3.4 with your server's IP address.
6. Open a command prompt and start BIND by typing net start named:
7. Configure your server's DNS settings by following the steps in this spoiler:
8. In a command prompt, ping otaku.cm. If the IP is anything other than what you set previously, restart your server and try pinging again. It should now be correct.
9. Create a "phx" directory in your web server root (htdocs/www/etc.). Inside that directory, create a licence.php file with this as its contents:
10. Create another file named override.php in the phx directory, and just put the IP of whoever you want to give override status (I recommend 127.0.0.1). No PHP code needed.
11. In your Phoenix config, make sure you have this line, but feel free to replace 1232 with the TCP port of your choice:
12. Run the emulator. Hopefully, everything should work fine.
If you encounter any problems during the tutorial, post them here and I'll get back to you. Enjoy your licence server!
For this tutorial, we will be using BIND, the most popular and stable DNS server. You also need to be running PHP, which you probably already are if you run Phoenix on the same server as your CMS.
Let's begin!
1. Download BIND 9 by clicking
To view the content, you need to sign in or register
. Extract the .zip file somewhere, such as your desktop.2. Run the BINDInstall.exe file in the extracted directory. Set the target directory to C:\BIND and set a secure service account password. Make sure you keep the username set as "named".
3. Wait for BIND to finish installing. Close the installer.
4. Open a text editor and save this as C:\BIND\etc\named.conf:
Code:
options {
directory "C:\BIND\etc";
forwarders {
8.8.8.8; 8.8.4.4;
};
auth-nxdomain no;
listen-on { any; };
allow-query { any; };
};
zone "otaku.cm" {
type master;
file "C:\BIND\etc\otaku.cm.db";
};
5. Open a text editor and save this as C:\BIND\etc\otaku.cm.db, but replace 1.2.3.4 with your server's IP address.
Code:
otaku.cm. IN SOA ns1.otaku.cm. admin.otaku.cm. (
2006081401
28800
3600
604800
38400 )
otaku.cm. IN NS ns1.otaku.cm.
otaku.cm. IN A 1.2.3.4
ns1 IN A 1.2.3.4
6. Open a command prompt and start BIND by typing net start named:
7. Configure your server's DNS settings by following the steps in this spoiler:
1. Enter the Network and Sharing Center by clicking on the network icon in the system tray.
2. Click on the connection, usually it is labeled Local Area Connection.
3. Click on Properties.
4. Click on Internet Protocol Version 4 (TCP/IPv4) in the list, and click Properties.
5. In the bottom pair of input boxes, make sure the Use the following DNS server addresses radio box is checked. In the Preferred DNS server, input 127.0.0.1. In the Alternate DNS server, input 8.8.8.8 (or another DNS server). Do not tick the validate box, then click OK.
2. Click on the connection, usually it is labeled Local Area Connection.
3. Click on Properties.
4. Click on Internet Protocol Version 4 (TCP/IPv4) in the list, and click Properties.
5. In the bottom pair of input boxes, make sure the Use the following DNS server addresses radio box is checked. In the Preferred DNS server, input 127.0.0.1. In the Alternate DNS server, input 8.8.8.8 (or another DNS server). Do not tick the validate box, then click OK.
9. Create a "phx" directory in your web server root (htdocs/www/etc.). Inside that directory, create a licence.php file with this as its contents:
Code:
<?php
if (!function_exists('getallheaders')) {
function getallheaders() {
$headers = '';
foreach ($_SERVER as $name => $value) {
if (substr($name, 0, 5) == 'HTTP_') {
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
}
}
return $headers;
}
}
$res = getallheaders();
if (isset($res['Authname'])) {
$user = $res['Authname'];
} else {
$user = "Bui";
}
if (isset($res['Authpass'])) {
$pass = $res['Authpass'];
} else {
$pass = "nope";
}
$k1 = "CF4E14B54958188F9EC4A75CBE1B2B4C";
$k1 = strtoupper(md5($k1 . $user));
$k1 = strtoupper(md5($k1 . $pass));
$k1 = strtoupper(md5($k1 . strlen($user)));
$k1 = strtoupper(md5($k1 . strlen($pass)));
$k2 = strtoupper(md5(strlen($user) * 14986));
$k3 = strtoupper(md5(strlen($pass) % 14986));
header('AuthU: ' . strlen($user));
header('AuthGen: ' . strtoupper(md5(strlen($user) * strlen($pass))) . 'a669d0dc7051ddb9d102157cca675e57' . $k1 . $k2 . $k3);
header('MinBuild: 14986');
header('CurBuild: 14986');
header('ExtraData: 0.0.0.0:1232:1233');
header('dce: true');
?>
10. Create another file named override.php in the phx directory, and just put the IP of whoever you want to give override status (I recommend 127.0.0.1). No PHP code needed.
11. In your Phoenix config, make sure you have this line, but feel free to replace 1232 with the TCP port of your choice:
Code:
game.tcp.port=1232
12. Run the emulator. Hopefully, everything should work fine.
If you encounter any problems during the tutorial, post them here and I'll get back to you. Enjoy your licence server!
Last edited:

