Jump to content



Photo

Setting UP GTA SA:MP On Your VPS

sa-mp host server haphost free samp server how to make server host samp on vps install samp on vps free vps

  • Please log in to reply
48 replies to this topic

#1 Khevin

Khevin

    Advanced Member

  • Members
  • PipPipPip
  • 235 posts
  • LocationMauritius

Posted 05 August 2014 - 04:40 PM

Hello there, i see many of you keeps on asking if its possible to host a GTA SA:MP server on the Haphost vps, YES it is possible to make this. here is a very simple tutorial about how to make this.

Installing a SA-MP Server is pretty simple.
Here you see the OS am using is centos.

First you will want a SSH client like PuTTY

1.Install, and enter the IP of your VPS which you should have gotten from your host.
8mzx.jpg


2.It will ask for a username and password also once you connect. Do not use root for this, please create a user for it as here i created a user to run the samp server named undefined. Note that when you will type in the password it will not appear so carry on typing it.
zeyg.jpg


*first thing you want to make sure is that your in the main directory by typing cd ~


3.Once done well we're ready to download SA:MP now
then type: wget http://files.sa-mp.c...svr_R1-2.tar.gz
That will download the .tar.gz for linux. Let it download.
p0q2.jpg
As you can see it's downloaded.


You will now what to extract the tar.gz by typing: tar -zxf samp03xsvr_R1-2.tar.gz
Here it will extract the downloaded file.
66bb.jpg
Hit Enter to execute the command.

Next go into the folder you just extracted by typing: cd samp03
2tzs.jpg
The picture shows we're in the right cd samp03 directory

Now to make things easier, download a program called WinSCP . This is basically FTP for linux. Install and connect to your VPS (Pretty simple).
2jej.jpg
Put Your IP(your vps ip) , Username : undefined ( your username here/user created for samp ) and password : that user password password.

Locate to the samp03 folder and edit server.cfg to whatever you want.
7al0.jpg
Open it, you'll see this :
gwge.jpg
Make any changes you want , upload your own gamemodes and scriptfiles, plugins etc,
At last make sure to edit the server.cfg well.


Once done with the editing we come back to PuTTY,
Type : chmod +x samp-npc samp03svr announce
Followed by nohup ./samp03svr & This will start the server (nohup makes the server still run even when you quit PuTTY)
0y3e.jpg
Done installing samp on your vps,

nf09.jpg

And that's pretty much it.

Edit: Oh and if you get permission errors type (make sure your in the samp03 folder): chmod 700 *

NOTE: This thread has been made with all latest realease of SA:MP , Putty and WinSCP. you can just copy paste to set up your server.


UPDATE 2 : Usual Known Issues :
Getting problem with putty ? as soon as you clos putty your server stops ?
well here's the solution , it's a starter scripts that will make the server to start automatically.
Link to download script : server-starter.sh - Pastebin.com

open it and edit the line :
samp="/root/samp/samp01/samp03svr"
to your samp03svr location

and then edit the line :
cd /root/samp/samp01/
to your folder location

and edit the line :
mv /root/samp/samp01/server_log.txt /root/samp/samp01/logs/server_log.
for the server log.


Once done save it and set chmod to 755.
Make sure you've stopped your running sa:mp server first by : killall samp03svr
now you're ready to trigger the starter script with : nohup ./server-starter.sh &

Done


Undefined/Khevin | Haphost Support Administrator

Grab Your Free VPS And Web Hosting Here!

Follow Us On Facebook Twitter Google+ LinkedIn Youtube


#2 JasperNL

JasperNL

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 05 August 2014 - 04:47 PM

Topics like these makes me cry.

For every type of gameserver, it's hardly disrecommended to launch gameservers as root user (because of security issues).

Root users have full read and write access to all resources of the VPS. Running gameservers like this yields security issues as stated above.

You shouldn't encourage people to start managing their servers like this...



#3 Khevin

Khevin

    Advanced Member

  • Members
  • PipPipPip
  • 235 posts
  • LocationMauritius

Posted 05 August 2014 - 04:54 PM

Topics like these makes me cry.

For every type of gameserver, it's hardly disrecommended to launch gameservers as root user (because of security issues).

Root users have full read and write access to all resources of the VPS. Running gameservers like this yields security issues as stated above.

You shouldn't encourage people to start managing their servers like this...

Hello there,

Thanks for this, i updated the thread.

 

Best Regards,

Undefined.


Undefined/Khevin | Haphost Support Administrator

Grab Your Free VPS And Web Hosting Here!

Follow Us On Facebook Twitter Google+ LinkedIn Youtube


#4 Riste

Riste

    Member

  • Members
  • PipPip
  • 18 posts

Posted 09 August 2014 - 12:56 AM

Pretty usefully for peoples which doesn't know.
 
As i saw at images
- The ping makes me laugh :D
- Tutorial looks old.


#5 EEiYP

EEiYP

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 09 August 2014 - 01:42 PM

i dont know why but i can only login as root..i have create the user but cannot login.always access denied.can u help me?



#6 Khevin

Khevin

    Advanced Member

  • Members
  • PipPipPip
  • 235 posts
  • LocationMauritius

Posted 09 August 2014 - 02:35 PM

i dont know why but i can only login as root..i have create the user but cannot login.always access denied.can u help me?

Hello there,

Have you set a password to that new user you added ?

 

Best Regards,

Undefined


Undefined/Khevin | Haphost Support Administrator

Grab Your Free VPS And Web Hosting Here!

Follow Us On Facebook Twitter Google+ LinkedIn Youtube


#7 EEiYP

EEiYP

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 09 August 2014 - 02:43 PM

Hello there,

Have you set a password to that new user you added ?

 

Best Regards,

Undefined

Oh you late bro.i already solved this problem.thanks btw. :)



#8 EEiYP

EEiYP

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 09 August 2014 - 03:06 PM

eh 1 question.is there any command to restart server?



#9 Anonyme252

Anonyme252

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 09 August 2014 - 07:57 PM

thank you for the topic 



#10 adiXM

adiXM

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 11 August 2014 - 08:43 PM

What is the maximum number of users online possible?



#11 Khevin

Khevin

    Advanced Member

  • Members
  • PipPipPip
  • 235 posts
  • LocationMauritius

Posted 12 August 2014 - 04:42 PM

You can easily support up to 35 players and depeding on the type of gm you're using it might be more and less too.

 

Best Regards,

Undefined.


Undefined/Khevin | Haphost Support Administrator

Grab Your Free VPS And Web Hosting Here!

Follow Us On Facebook Twitter Google+ LinkedIn Youtube


#12 thagame2

thagame2

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 13 August 2014 - 11:03 AM

when i use password it says Access Denied!Why i didn't used root plz tell me



#13 Khevin

Khevin

    Advanced Member

  • Members
  • PipPipPip
  • 235 posts
  • LocationMauritius

Posted 13 August 2014 - 02:09 PM

when i use password it says Access Denied!Why i didn't used root plz tell me

have you created a new user ?


Undefined/Khevin | Haphost Support Administrator

Grab Your Free VPS And Web Hosting Here!

Follow Us On Facebook Twitter Google+ LinkedIn Youtube


#14 Fahadking07

Fahadking07

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 13 August 2014 - 02:31 PM

eh 1 question.is there any command to restart server?

 

http://wiki.sa-mp.co...ki/Linux_Server


  • Fahadking07 likes this

#15 thagame2

thagame2

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 13 August 2014 - 02:37 PM

How! to create new user



#16 Arctic

Arctic

    Haphost Staff

  • Moderators
  • 341 posts
  • LocationGermany

Posted 14 August 2014 - 07:44 AM

How! to create new user

 

omg why they get a VPS if they can not even the basic functions?

sudo adduser YOUUSERNAME

  • Mike likes this

any support PM's be Ignored please use the Support section for it

 

Support


#17 thagame2

thagame2

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 15 August 2014 - 03:33 AM

Hey Form where shall i create user I am first time vps xD



#18 Tween73

Tween73

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 24 August 2014 - 06:14 PM

vps:  samp-server.exe ? 

 

./samp-server.exe ? 



#19 Khevin

Khevin

    Advanced Member

  • Members
  • PipPipPip
  • 235 posts
  • LocationMauritius

Posted 25 August 2014 - 12:54 PM

Hello Tween73,

There's no exe in linux.

The proper command to start the server is nohup ./samp03svr &

 

Best Regards,

Undefined


Undefined/Khevin | Haphost Support Administrator

Grab Your Free VPS And Web Hosting Here!

Follow Us On Facebook Twitter Google+ LinkedIn Youtube


#20 StormSpirite

StormSpirite

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 30 August 2014 - 07:27 PM

Hi Guys , I Joined haphost today and i find it the best way to get a vps for free and good service , I created an vps but i'm still waiting for admin to accept , how long does it take? (I sent the request about 4 hours ago) I need help please :)

Thanks 







Also tagged with one or more of these keywords: sa-mp, host server, haphost, free samp server, how to make server, host samp on vps, install samp on vps, free, vps

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users