[How To] Create A Linux Ascent Server With Registration Page -
04-27-2008
Thanks To Sebkinne of Ragezone for this guide.
-------------
Hello everyone, since so many people have been requesting a tut, here it is : >
Firstly, i would recomend debian for running an ascent wow server.
I will firstly only explain for debian and debian based OSs', so you might have to modify the commands a little.
first, go into your terminal and type:
Quote:
sudo apt-get update
This updates your os.
Now we will need to get a few packages that are required for the compiling proccess of your ascent server.
1.1. mysql. this is of course very important
if you do not have it set up, do:
Quote:
sudo apt-get install mysql
Quote:
sudo apt-get install libmysql++-dev
1.2. now you will want to set a mysql passwrd
Quote:
mysql -u root
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');
SET PASSWORD FOR 'root'@'%' = PASSWORD('newpwd');
write your password into the newpwd.
if you are having problems, please post here, ill help individually.
1.3.Now you will need to get create a db. do this by executing these in the mysql promt.
Quote:
create database world;
Quote:
create database logon;
Quote:
create database characters;
Quote:
quit
1.4 Now some of us will need the ssl package. Get this by typing:
Quote:
sudo apt-get install openssl
2. you will need the build essentials for compiling so:
Quote:
sudo apt-get install build-essential
OR
Quote:
sudo apt-get install build-essentials
3. you will need subversion (to get the source)
Quote:
sudo apt-get install subversion
4. you will need automake and make if they are not currently installed:
Quote:
sudo apt-get install make
Quote:
sudo apt-get install automake
4.1. Some of you will need to get the libtool.
Quote:
sudo apt-get install libtool
5. now we will want to get the source. do:
Quote:
cd /dir/you/choose/your/server/to/be/in/
Quote:
svn co [Only registered and activated users can see links. ]
If it promts you for a password, the user is: anonymous
and the pass is left blank
6. Now we will start to compile.
-choose what rev u wna compile, i would suggest the trunk
-so:
Quote:
cd trunk
-make the dirs.
Quote:
mkdir bin
Quote:
mkdir etc
-
Quote:
autoreconf --force --install
- now we need it to configure the comming compile:
Quote:
./configure
- now do:
Quote:
make
This may take a while!
-
Quote:
make install
7. after this is done, cd into the bin folder.
copy conf files to the newly made "etc" directory
example : cp src/*.conf etc/
8. now you wna edit your conf files so:
Quote:
vim ascent-world.conf
edit this by pressing " i " (to get out of editing press esc) change the conf to your needs.
do this for all your confs, and thats it for them. To then save the file:
Quote:
:wq!
9. now copy your "DBC", "maps", and "scripts" folders into the trunk/bin/ folder. [Only registered and activated users can see links. ] [Only registered and activated users can see links. ]
The scripts i do not currently have here, ill post later.
10.Now we will need to import the sql files. Lets start with the world file
do this by executing the following command:
Quote:
mysql -h localhost -u root -p world < /path/to/your/sql-file/2785_world_structure.sql
Now our logon db (also called account db):
Quote:
mysql -h localhost -u root -p logon < /path/to/your/sql-file/2785_logon_structure.sql
And finally your character db:
Quote:
mysql -h localhost -u root -p character < /path/to/your/sql-file/2785_character_structure.sql
Normally your path is where_your_ascent_is/trunk/sql/
11. Now forward the ports on your router to make it accessible. you might have to forward a couple of other ports if it doesnt work.
3724 - 3724
80 - 80
3306 - 3306
8129 - 8129
8093 - 8093
6112 - 6112
6881 - 6999
3036 - 3036
8050 - 8050
12. great. start ur server.
Quote:
cd trunk/bin/
Quote:
./ascent-logonserver
Quote:
./ascent-world
°°°°°Creating a Web-server that runs SPORA°°°°°
firstly, you will need to get apache2.
Quote:
sudo apt-get install apache2
Then you will want to install php5 (u will need that to display a SPORA page)
Quote:
sudo apt-get install php5
Now u will have a new directory called /var/www .
there is your web-dir. u can put your website (if you have a pre-made one) or the SPORA in there. i would recomend you gettign SPORA if you are a beginner.
Quote:
cd /var/www/
Quote:
wget [Only registered and activated users can see links. ]
If you do not have unrar:
Quote:
sudo apt-get install unrar
Quote:
unrar x spora-server-page.rar
Now you will want to edit your SPORA conf:
Quote:
vim index.php
press I to edit and esc to get out of editing mode. save with
Quote:
:wq!
Please let me know if i helped you, or if you have problems! Ill do my best to help :>
Thank you all,
Sebkinne
-------------
Original : [Only registered and activated users can see links. ]
All Credit Goes To Sebkinne of Ragezone.
Edit if you get:
Quote:
configure: error: Couldn't find pcre library. Make sure your pcre path is correct.
When running ./configure
Then do:
Quote:
sudo apt-get install libpcre3-dev
Last edited by Dragonshadow; 04-27-2008 at 01:00 PM.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 2
Reputation: 1
Posts: 11
Join Date: Jan 2007
Location: Norway
06-04-2008
Quote:
Quote:
autoreconf --force --install
- now we need it to configure the comming compile:
Quote:
./configure
Ok, getting an error at this step, here's the error thingy:
Code:
debian:/home/wow/ascent-raw/ascent/trunk# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking uname -s for detecting host operating system... Linux
checking uname -m for detecting host operating system architecture... x86 oh noes i ran out of address space
checking whether byte ordering is bigendian... no
checking for svn... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for compress in -lz... no
configure: error: Missing zlib
debian:/home/wow/ascent-raw/ascent/trunk# make
make: *** No targets specified and no makefile found. Stop.
debian:/home/wow/ascent-raw/ascent/trunk# apt-get install zlib
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package zlib
Other than that, awesome! !
Last edited by Exona; 06-04-2008 at 09:02 AM.
Reason: pewpew