Arma 2

Arma 2

64 ratings
[How To] Setup A DayZ Server [Highly Detailed 70+ Steps]
By Goose
After reading a couple of guides on setting up a DayZ Server for people to play on I have noticed that many tutorials have missing information or the user is left with different error messages to deal with or ignore.

The following tutorial is based on my knowledge, trial and error, debugging and contact with different users on the issue. I hope to provide the most detailed, and easy-to-follow tutorial on the web.
   
Award
Favorite
Favorited
Unfavorite
Files Required
Prerequisites
  • A Computer with atleast 2GB Ram for a smooth experience for about 24 players. (4GB for around 60 players.)
  • Harddrive of atleast 25GB for the game files.
  • A Good connection (40Mbit Upload / Download)
  • Atleast a Two-Core CPU.
Creating your server
  • If you have any of the games installed previously, I would recommend deleting them to not face any problems in the future.
  • Install the C++ Redistributable Packages and restart your computer/box. (I recommend to install both x64 and x86 if you have a 64bit Operating system.
  • Create a folder, preferably on your Desktop called "Dayz Epoch Server".
  • Launch steam, login.
  • Download Arma 2.
  • Download Arma 2 : Operation Arrowhead.
  • Wait until they are complete.
  • Launch Arma 2 in windowed mode, wait until you are at the main menu, then close the game.
  • Do the same for Arma 2 : Operation Arrowhead.
  • Launch DayZ Commander.
  • Click "install/update" in the top right of the window.
  • Install the Arma 2 Beta Patch





  • Wait until that is complete.
  • Now, go to your Steam Folder. Usually C:\Program Files (x86)\Steam\SteamApps\common\
  • Copy everything from inside your "Arma 2" Folder inside the "DayZ Epoch Server" folder we created on your desktop in the first step.
  • Do the same for your "Arma 2 Operation Arrowhead" Folder EXCEPT any folders starting with an @.
  • Click "Yes" to any popups asking you to overwrite the files.
  • Take a deep breath. The easy part is now done.
  • Take the Epoch Client and Server files that you downloaded earlier and put them on your Desktop.
  • Open them up with WinRar







  • Copy "@DayZ_Epoch" from the Client files into "DayZ Epoch Server" on your Desktop.
  • Copy "@DayZ_Epoch_Server" from the Server files into "DayZ Epoch Server" on your Desktop.
  • Copy the "Keys" folder from the Server files into "DayZ Epoch Server".
  • Open the "Battleye" folder inside the Server files and copy everything inside into the "BattlEye" folder inside the "DayZ Epoch Server folder" on your Desktop. (Note the difference in Capitalization.)
  • Copy all the 4 ".dll" files from your Server files into the "Dayz Epoch Server" folder.












  • Open up "MPMissions" from your Server files and find the mission that you want. I will be using "DayZ_Epoch_11.Chernarus" for this tutorial.
  • Copy that to your "MPMissions" folder inside the "Dayz Epoch Server" folder that is on your Desktop.
  • Open "Config-Examples" from your Server files, then copy the matching instance number as your Mission to your "Dayz Epoch Server" folder. We will use "instance_11_Charnarus".
  • Copy "DayZ_Epoch_instance_11_Chernarus.bat" from that same folder into the "Dayz Epoch Server" on your Desktop.
  • Setup and install XAMPP, then make sure mysql and apache are started.
  • Click the "Admin" button next to MySQL in the XAMPP control panel.
  • Once the phpMyAdmin page is loaded, at the top, click "Users".
  • Under the Users overview, click Add user.
  • Enter "Epoch_User" as the User name. (without the "" ).
  • As the Host, select "Local" from the dropdown box.
  • Enter a password. I will use "password123" but please make sure to use something more secure.
  • Scroll down and click "Check All" from the Global privileges then remove ALL Administration privileges like GRANT and SUPER.
  • At the bottom, click Go on the right.
  • Now you have your user created. Click "Databases" at the top.
  • Under Create database, type in "Epoch_Database" as the Database name then click Create.
  • Now you have your database. You can go ahead and stop Apache from the XAMPP control panel, you dont need it enabled anymore.
  • Inside your Server files, open up the SQL folder and copy "epoch.sql" to your Desktop.
  • Open HeidySQL.
  • As the session name in the top left, we will have it just named as "DayZ Server SQL"
  • Hostname / IP should be "127.0.0.1".
  • User should be "Epoch_User"
  • Password is "password123" or whatever you specified in your user setup.
  • Click "Save" at the bottom left. then click Open.
  • On the left hand side, you should see "Epoch_Database" go ahead and double click it.
  • It should say "Database: Epoch_Database" at the middle tab on top.
  • Click the "Query" tab.
  • You should be presented with a text box, just drag your "epoch.sql" from your desktop into that textbox.
  • Click the blue Play button above the Query tab or press F9.
  • It should start executing the SQL into your database. You might get a "3 Warnings" popup at the end, ignore that.
  • Restart HeidySQL and double click your database on the left, you should see some tables created.


















  • Close HeidySQL.
  • Take another deep breath. The hard part is now done, you are nearly finished with your server!
  • Go to your desktop and open your DayZ Epoch Server folder. It should look something like this.


















  • Open up your instance_11_Chernarus folder.
  • Open "config.cfg" with Notepad++.
  • Edit this file to your liking, and set a "passwordAdmin" value for you to be able to login as an admin from ingame.
  • Add requiredSecureId = 2; under BattlEye = 1; This is to prevent the UID spoofing.
  • At the bottom, change your difficulty="veteran"; to difficulty="regular";
  • Save and close.
  • Open up "HiveExt.ini" with Notepad++.
  • Scroll down to the [Database] section.
  • Make sure Host = 127.0.0.1
  • Same with Database = Epoch_Database
  • The same with Username = Epoch_User
  • And finally, Password = password123
  • Save and close.
  • Run DayZ_Epoch_instance_11_Chernarus.bat to start your server.
Final Notes
  • (Optional) Open up "cmd" from your start menu and type ipconfig to get your server's ip. Put that into DayZ Commander as a favorite so you can connect easily.
  • (Note) If your MySQL hosting is provided by your host, you can skip the MySQL setup part and not download XAMPP / Wamp and just use that info from your host.
I hope that my tutorial has covered any questions you may have, and good luck with all your servers!
19 Comments
Whilburg Jun 3, 2018 @ 5:46pm 
@claudineijoseprill ¿Fuiste portuario al 3202?
Whilburg Jun 3, 2018 @ 5:44pm 
Did the entire thing and at the very last step I realized I didn't copy over the DayZ_Epoch_instance_11_Chernarus.bat. I was like ok whatever, then copied it over and launched it. This is what pops up "Windows cannot find' Expansion\beta\arma2oaserver.exe'. Make sure you typed the name correctly, and then try again."

Also, I can install DayZ Commander and launch it. I go and click install/update, It says "DAYZ COMMANDER: 0.9.1.117 (Up to date)" then right under that it says "VIEW CHANGE LOG" in a box. Under that is where my question begins. It says "ARMA 2: 131129 (Up to date)" then (here is the crucial part). To the right of that, it doesnt give me a prompt to download a patch, but it just says "VERIFY ARMA 2", and "VERIFY ARMA 2 OA" in their respective boxes. This means that I cannot get the "arma2oaserver.exe" and I am completely screwed.

If anyone has a fix, please tell me and thanks in advance.
Whilburg Jun 3, 2018 @ 5:36pm 
@Kimastar just download the latest one (7.1.4)
Kimastar Jun 9, 2017 @ 7:13pm 
what version of XAMPP i need to download for windos??? i see 3 tab:
5.6.30 / PHP 5.6.30
7.0.18 / PHP 7.0.18
7.1.4 / PHP 7.1.4
im really confused about it because in your guide u didnt exlpain...>.<
also the download tab is for 32 bit but i have 64 bit version.
And u make a good guide but not really accured like u said because u dont explain alot of thing like after u made everything u need to have heidiSQL open?
also im did everything u said but im cannot join in the game because it tell me i dont have some file like: u cannot play/edit this misison it depend on downlodable content that as benn deleted. map.eu, dayz_anim, dayz code, dayz comunityassets, and bla bla bla.....and also your guide is out of date because dayz commander isnt working anymore...so how i can fix this problem?
claudineijoseprill Mar 25, 2017 @ 6:20pm 
olaa, mi servidor arma 2 dayz epoch solo aparece en lan y no aparece online, porque eso?
Goose  [author] Aug 21, 2016 @ 2:03am 
@Meme Hell you have to import the database SQL and run it.
WhenYouHaveAIDSButShowMustGoOn Aug 7, 2016 @ 5:45pm 
Did I do something wrong, because epoch_database is empty on HeidiSQL?
asdfc Nov 16, 2015 @ 5:23pm 
i did exactly all the steps but I'm having this problem when i join my server http://epochmod.com/forum/index.php?/topic/11409-local-host-server-mysql-database/
just1CE May 28, 2015 @ 1:45pm 
Is this nowadays applicable? Because when I follow the steps and start to login on my server, the loading stops at 'waiting for host'.

I asked around other servers and they said that you couldnt make an own server, but you must rent it...
Timo_ Apr 17, 2015 @ 6:58am 
Thanks for the write -up, I plan on giving this a shot in the next week or so :)