arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Install sa-mp server on VPS (Centos/Debain/Ubuntu)
#1
1.First connect to your VPS using Putty With Root Privileges.

2.Then make a user account for samp server.Note that Do not use root for this, please create a 
user (because of security issues).

Creating A User:

useradd samptut
passwd samptut

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

3.Then 
*first thing you want to make sure is that your in the main directory by typing cd ~ after
relogging to your vps using your useraccount crendentials.

4.Once done well we're ready to download SA:MP now
then type: wget http://files.sa-mp.com/samp037svr_R2-1.tar.gz
That will download the .tar.gz for linux. Let it download.
 
5.You will now need to extract the tar.gz by typing: tar -zxf samp037svr_R2-1.tar.gz

6.Next go into the folder you just extracted by typing cd samp03

7.Now to make things easier, download a program called FileZilla Ftp Client . 
This is basically FTP for linux. Install and connect to your VPS (Pretty simple).

Put Your IP(your vps ip) Protocol : SFTP (SSH File Transfer Protocol) Logon type : Normal 
Username : sampsv ( your username here/user created for samp ) password : your linux user pass
and password : that user password password.

8.Then Locate to the samp03 folder through your ftp clientand edit server.cfg to whatever you 
want.

9.Make any changes you want , upload your own gamemodes and scriptfiles, plugins etc,
At last make sure to edit the server.cfg well or use with this cmd 'nano server.cfg' to edit ur server.cfg from putty
A screen looking like that should've popped up.
You'll be happy to know, that you can browse around the server.cfg by using your arrow keys, and just typing to edit the file. Simple stuff, right?

Once you've finished editing the file, hit CTRL+X, press 'Y', then Enter.
Your file is now saved!

Once done with the editing we come back to PuTTY,
chmod 777 samp03svr
chmod 777 announce
chmod 777 samp-npc
or
Type : chmod +x samp-npc samp03svr announce
but we have to chmod all plugins + includes + samp-npc + samp03svr + announce and all the amx file (no need to upload ur pwn files) and all folders to writeable/readable/excuteable (777) and update the OS with 'yum update' to avoid getting 'No Directory or File found' proplem 
Followed by nohup ./samp03svr & This will start the server (nohup makes the server still run 
even when you quit PuTTY)

 
To stop your samp server use pkill samp or killall samp03

for more info Use SA-MP wiki: www.wiki.sa-mp.com/wiki/
Thanks to @Post4VPS & @Hostdare for Providing their VPS Hosting Services: VPS 12




person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting