Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Ubuntu server guide VERY Detailed

Experienced Elementalist
Joined
Nov 17, 2009
Messages
233
Reaction score
26
yeah 127.0.0.1 is localhost, if you look inside your jetty folder it should say localhost for your host, which is defined in your hosts file as

127.0.0.1 localhost

so when they say localhost it is = to 127.0.0.1
 
Newbie Spellweaver
Joined
May 7, 2010
Messages
50
Reaction score
0
can someone upload the jetty script for me? Im on mac Os so i cant download pwtools cuz is a exe file.

Ill apreciate if someone upload it for me. I already have the pwadmin 1.8 but i forgot to download the jetty script, and ronny add the pwadmin files on pwtolls...

well thank in advance.
 
Newbie Spellweaver
Joined
May 7, 2010
Messages
50
Reaction score
0
ok, i get the jetty script

but the authd doesnt start.

stay offline, i try to put the java folder in the usr (like someone sad) but still offline

and i already try to the ''apt-get install sun-java6-jdk libmysql-java''
but the package doesnt work to. I have conection its something in the installation package if i get it right.

So if someone help me with authd.
The jetty script is solved. =]
 
Experienced Elementalist
Joined
Nov 17, 2009
Messages
233
Reaction score
26
did you skip any steps? modify any files in your usr location of the server? im hardly on this forum anymore so i might get back to you late.
 
Newbie Spellweaver
Joined
Jul 23, 2011
Messages
10
Reaction score
0
my operating system is 32 bit and i cant use ubuntu 64 bit, can you give me a solution please? thnx you
i tryed the 32 bit and i got some error in the files and some settings
 
Newbie Spellweaver
Joined
Aug 11, 2011
Messages
34
Reaction score
0
ok so i did all...but i cant start jetty when i tipe in ubunt ./jetty start it says:
-bash: ./jetty: No such file or directory

please help..
 
Last edited:
Newbie Spellweaver
Joined
Aug 6, 2011
Messages
23
Reaction score
0
Put the jetty folder to your PWServer folder, and put the jetty scriptin the </root> folder.
reboot
/jetty start!!!!!!!!!!!NOT ./jetty start!!!!!!!
 
Initiate Mage
Joined
Oct 6, 2011
Messages
3
Reaction score
0
I've followed the guide step by step til I get to where I need to start Jetty.... Unable to access start.jar and unable to create logs/jetty.log.

Other then that it's a Great guide :)

Now could someone explain what I may have done wrong? Oh also the usr files, when I go into the usr folder I find 2 more file folders, which each has more inside them. Now do I open each file folder to add the contents into the /root/usr folder or just the first set of folders which are called local and java?
I am completely new to this and I've had no training what so ever. Messing with files and such is just a hobby.
 
Newbie Spellweaver
Joined
Jan 18, 2011
Messages
6
Reaction score
1
Was doing great until I got to this part...

"now scroll down to the bottom of this post and download pwdb.sql
i got this sql file from Das1007's server files so i dont know the source of the files so ill just thank das for it."

I scrolled down to download it and the link doesn't work for me. All I get is a blank page.
 
Newbie Spellweaver
Joined
Jan 18, 2011
Messages
6
Reaction score
1
Help ! How to use pwadmin to start server?

Hi.

Assuming that you have correctly installed the server and can access it though a browser by typing in which opens a php info page with links to pwAdmin and Adminer at the very top just click on the pwAdmin link and it will open up a page for the PW server control. You need to type in a new password to allow you to log in. Then just click server control to open up the server services page. click start server and the page will go through a long refresh then come back with all the services lit up with a green 'online'. The only map that starts then is the world map. You have to manually start all the instance maps but keep in mind how much free RAM your machine has.

Once you get to the server control panels it's fairly intuitive.
 
Newbie Spellweaver
Joined
Jul 12, 2007
Messages
65
Reaction score
0
thank jburr36.

Anyone, I need help ! Now my server started but some service become offline : Auth Daemo, Faction Daemo, Map Service. what's happen?
 
Last edited:
Newbie Spellweaver
Joined
Jan 18, 2011
Messages
6
Reaction score
1
thank jburr36.

Anyone, I need help ! Now my server started but some service become offline : Auth Daemo, Faction Daemo, Map Service. what's happen?

Last time I caused that kind of error was when I replaced the gshop.data and the elements.data task_npc.data tasks.data aipolicy.data and the domain.data with one from another pw server. If those data files don't match the maps and the daemons I think the server won't run. I never was able to get this PW server installation going properly because there are a lot of mismatched files floating around out there for this server and client. I'm working on 343's pw server installation now. It is here --> http://forum.ragezone.com/f694/complete-pw-package-736572/

I stopped installing the server in this guide because 343's installation has a matching client with it. It is also popular at the moment as he really put a lot of work into making it work. Also, others have been contributing to cleaning up the bugs. One of my main frustrations with building servers from the guides on this forum is that there are so many with customizations and differences in how the server are installed that we have so many mismatched servers and client files everywhere. It's difficult and time consumining to piece it all together and make it work properly.

I think it would benefit the community as a whole is we started promoting a 'standardized' server-client package so that more of us on on the same page when we run into trouble. Once we get the basic server-client running we can customize it to our liking.

But if you like the challenge of making this server work I wish you all the luck as it really is a great way to learn how it all works.
 
Newbie Spellweaver
Joined
Jan 24, 2010
Messages
7
Reaction score
0
hi anyone can help me in this error?

when i type: "/etc/phpmyadmin/apache2 restart" (without "") say:

Syntax error on line 231 of /etc/apache2/apache.conf:
inavild command '/etc/phpmyadmin/apache.conf', perhapsmiassllep or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have information.
...fail!

hi anyone can help me in this error?

when i type: "/etc/phpmyadmin/apache2 restart" (without "") say:

Syntax error on line 231 of /etc/apache2/apache.conf:
inavild command '/etc/phpmyadmin/apache.conf', perhapsmiassllep or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have information.
...fail!

i fix the problem... thanks anyway :blushing:
 
Newbie Spellweaver
Joined
Jun 7, 2011
Messages
35
Reaction score
0
This guide is for complete beginners, im making this guide because this is how i learned to make a server in the past and its always worked for me, and when people ask me questions they can use this guide and ill know exactly what to help them fix, cause everyones server image is diffrent and i cant really explain everything from someone elses work.

recommend you have 4 gigs of ram or more, but you can use 2 if you really want to push it.

before we begin, download We use this to add files to your server after we set it up. but dont install it yet.

first
download

second
download

make sure you download the 64bit server image, just click download afterwards and save the image "iso"

last
we download beasties server files.


ok, now assuming you have Vbox downloaded, install it.
during installation do this
next
next
next
yes
install

now it should ask you "Would you like to install this device software?"
keep clicking install until it finnaly works
if it only shows up once then good. just click it once, for me it showed up 4 times.

click finish

now it should pop up with a blank server list, go to new.
next
put a name for your server "can be anything doesnt matter"
change operating system to linux
change verison to ubuntu 64bit
next
now depending on how much ram you have try to divide it by half,
if you have 4 gigs use 2048 ram, if you have 2 use 1024
remember this isnt going to be a real server for everyone to play on, just you can play on it so it doesnt need alot of ram.
this is giving you the basic idea on how to build a pw server.

after setting the ram
next
next
next
next
next
finish
finish

now you have an image made.
now right click your image, and click settings
next go to storage
and click on empty
now where it says attributes "CD/DVD Drive: IDE Secondary Master"
click the small cd picture next to it and click
"choose a virtual CD/DVD disk file"
select your ubuntu server image you downloaded.
then click ok at the bottom.

double click your server image to turn it on
a box will turn on
and an installation will pop up in it

click into the box
remember to get out of the box hit the right control button.
now ill explain the install you should do
English
Install Ubuntu Server
English
Any one you want "location"
No "to the keyboard layout"
Usa
Usa

let it install
when its ready
it will ask for a hostname
add anything this will be the name of your server
i do
ubuntu
even if the timezone is incorrect just do
yes
Guided - Use entire Disk
SCSI3 (0,0,0) (sda) - 8.6 GBATA VBOX HARDDISK "hit the enter key"
it will ask to write changes click yes

let it install

now it will ask for a full name for new user
add a small simple name
continue
now it will ask for "Username for your account:
just continue, make sure it doesnt have an upper case letter or it will not let you continue til is removed
now it will ask for a password, remember your password, you will need it alot for the future.
after entering a password continue
re-enter password continue
depending on your password it might ask if you want to use the weak password
Yes
it will ask to "encrypt your home directory?"
No
ignore the HTTP proxy information
continue
let it install
next choose No automatic updates

now it will ask to choose software to install
hit the down button all the way down to manual package selection
and continue

let it install

it will ask you to download grub boot loader
Yes
continue
it will now reboot
now after it loads, log into your account
the password may seem like its not working but it is.
ok
now first
type
sudo passwd
add your password 3 times
and it will finnaly say
passwd: password updated successfully
now type
logout
username root
password your password
you are now root
now before we continue
at the top left of your linux server it says
"machine - devices - help"
choose devices
then network adapters...
where it says "attached to:
change it to Bridged adapter
then click ok
type in your linux server
init 6
this will do a quick restart
after it loads
log into root again
now type
apt-get install openssh-server
when it asks hit Y then enter
after it finishes
type
apt-get install apache2
when it asks hit Y then enter
after it finishes
type
apt-get install mysql-server mysql-client
when it asks hit Y then enter
after it finishes
type
enter a password
re-enter password
after that
type
apt-get install ia32-libs
when it asks hit Y then enter
this will take a minute to install
after its finished
type
apt-get install php5-cgi
when it asks hit Y then enter
after its finished
type
apt-get install openjdk-6-jre
when it asks hit Y then enter
this will take about 3 minutes
after thats over
type
apt-get install phpmyadmin
when it asks hit Y then enter
select apache2 then continue
it will now ask to "configure database for phpmyadmin with dbconfig-common"
Yes
enter your password you used for your mysql
enter your password
re-enter password
now
heres where winscp steps in.
run the setup.
it will ask for a language just click ok
next
next
next
install
now it will ask to restart your computer
click no and then finish.
if winscp gives you issues restart your computer they should go away, i for one never had issues with it without restarting.
now
open it up
it will ask for a host name
go to your linux server
and type ifconfig
where it says
inet addr:
is your ip address
type that into the hostname of winscp
for username type root
then for password type your password
now save and it will ask if you want to save password
check it and click ok
now it should say
root@ip
double click it
it will pop up a window with too much text to read
now click yes
if successfull you will see two file locations your desktop on the left, your server on the right.
we are only going to deal with the right side
double click .. above .aptitude
go to etc, then apache2 double click apache2.conf
scroll all the way down
and at the very bottom add this line
Include /etc/phpmyadmin/apache.conf
save and close.
one last thing for phpmyadmin, your apache2 wont work with phpmyadmin without this lovely mod
apt-get install libapache2-mod-php5
if it asks to install type Y then continue
now
we are going to do something to prevent problems in the future
in winscp at the top go to options
then preferences then go to transfer now look for "upload options" set permissions, its unchecked, check it, in the text box below it, replace it with this rwsrwsr-t
click ok at the bottom to apply.
this will set permissions to 7775
now close the options.
go back to your linux machine and type
/etc/init.d/apache2 restart
this restarts apache2
after doing this your phpmyadmin will work.
now go to your phpmyadmin page

log into your phpmyadmin using root for the username
and password for your password.
go to import at the top

now scroll down to the bottom of this post and download pwdb.sql
i got this sql file from Das1007's server files so i dont know the source of the files so ill just thank das for it.

after downloading the file add it to your desktop
click browse in your phpmyadmin's import page and select pwdb.sql
then click go on the right side of the page.
now you have a pw database on the left of your screen.
you do not need to touch these.
now get out of phpmyadmin
and get back on winscp
go to your server files from beasties files
and go to beastie136pw folder
you have 5 folders in here
etc
lib
pwserver
root-ignore root
usr
now
open the etc folder

i recommend wordpad, cause it puts all the text into an
easier readable format

open authd.conf and change 192.168.0.50 to your servers ip
save quit
open gmopen.xml then scroll all the way down and change
192.168.0.50 to your ip's, save quit

now open GMserver.conf
and change 192.168.0.50 to your servers ip, save and quit
now open hosts wordpad and change all 192.168.0.50 to your ip
save and quit

now open iweb.conf and change all 192.168.0.50 to your ip
save and quit

now open table.xml with wordpad and change mysql://127.0.0.1/dbo?
to
mysql://127.0.0.1/pw?
then find password and change it to your password
save and exit
now go back to your beastie136pw folder and go into
PWServer

here is the fun part...
open the folder gacd
open gamesys.conf with word pad and change only the ips with 192.168.0.50 to your ip. leave the other ones alone.
save quit

go back to PWServer
open
gamed open gmserver.conf
edit only the 192.168.0.50 to your ip
save quit

now open gs.conf
scroll down til you find the ip 192.168.0.50, change it to your ip then save and quit

now open gs_rollback.conf, scroll down til you find the ip
192.168.0.50, change it to your servers ip then save and quit.

see ptemplate.conf? that file allows you to change your server rates, modify it to your liking just the exp/sp and gold rate nothing else.
now save edit

now go back to PWServer
go to gamedbd and open cashstat.conf and change
192.168.0.50 to your ip and save/quit

now open gamesys.conf and change all 192.168.0.50 to your ip then save/quit

go back to PWServer

now go to gdeliveryd
open gamesys.conf and change all 192.168.0.50 to your servers ip, save/quit

go back to PWServer

now go to gfactiond
open gamesys.conf and change all 192.168.0.50 to your servers ip, save/quit

go back to PWServer

now go to glinkd
now open gamesys.conf and change all 192.168.0.50 to your servers ip, save/quit

go back to PWServer

now go to logservice
now open logservice.conf and change all 192.168.0.50 to your servers ip, save/quit

go back to PWServer

go to uniquenamed
open gamesys.conf and change all 192.168.0.50 to your servers ip, save/quit

go back to beastie136pw folder
now we are ready to add some files to your linux machine
go to winscp go all the way back til you see /<root> above your servers files you will see
bin
boot
dev
etc
and so on
add the files inside of etc to your
linux servers etc folder
when finished
add lib folder's files to your linux servers lib32 folder
when finished add the folder PWServer to your linux machine, dont put it in any folders in the linux machine just add it in.
after its finished
add the usr folders files to your linux machines usr folder
now we are almost done adding files.
after adding that we will add pwadmin go to ronnies pwadmin page

go to download pwadmin,and the jetty script, you put the jetty script in the /root folder and put jetty-7.2.0 in your pwserver directory
go into jetty-7.2.0
then go into webapps
then go into pwadmin
then go into WEB-INF
open .pwconf.conf file in wordpad and change all the ip's to your servers ip
then open .pwadminconf.jsp with wordpad and change the database information to yours "db = database"
so host = ip
port keep the same
user is your root username
password is your password
database is pw
now at the top of this file you will see
String iweb_password = "abunch of numbers mixed together";
make sure it says
string iweb_password = "63a9f0ea7bb98050796b649e85481845"
your password is root in pwadmin.

now your done
when you want to start
pwadmin type ./jetty start
then go to

then go to control server, and start it
your server is now started.

also dont use this guide to make a server public as this is only meant for private use, this guide has no security in it so be smart and understand what your doing before you attempt to make one public.



---------- Post added at 08:20 PM ---------- Previous post was at 08:20 PM ----------

Reserved for client guide.

Also if you already have the client make sure to check
Glinkd go to the first login server and change the line below the ip that says
10301 to 10306 save restart and then log in.

heres the client files




all 4 parts to the client enjoy
what you need to do is unrar it, go into element/data/server and take the elements.data, tasks.data and gshop.data and add it to the servers pwserver/gamed/config folder and replace it, restart server then go into the clients userdata/server/ serverlist.txt file and change it to your servers ip, save then load the client and connect, that is all enjoy.

ALSO you need to go into /pwserver/glinkd/gamesys.conf and change all 10301 to 10306 then save. without modifying this you will recieve the "server maintainance"

This guide look nice but i have windows xp OS 32 bits and vm workstation and ubuntu server, please let me know what i can change to use your guide
 
Newbie Spellweaver
Joined
Jul 25, 2011
Messages
16
Reaction score
3
This guide look nice but i have windows xp OS 32 bits and vm workstation and ubuntu server, please let me know what i can change to use your guide

Please stop spamming the forum. You're not going to get anyone here to feed you what to do, if you can't take what's already available and adapt it to your needs.

Running a server requires at least a modicum of common sense and problem solving skills. So far, you have shown that you lack both.

Being able to read and comprehend what is in a thread is also useful. In the thread you posted, not one of these you've bumped, you've already been given a big hint as to where to start.
 
Initiate Mage
Joined
Apr 12, 2012
Messages
2
Reaction score
0
start-stop-daemon: unable to chdir ()to PWserver/jetty-7.4.2
(no such file or directory)
error i get at the last part
anyone know what's wrong?
:/
 
Back
Top