13.12.2013, 21:04
Sorry if this is wrong section or if this is already posted but i did not see any.
Here Is a small tutorial on how to create a server using VPS i hope this helps everyone to create a server using VPS
I have not seen the same topic in samp forums so i decided to post 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.
http://imageshack.us/f/832/8mzx.jpg/
2.It will ask for a username and password also once you connect. This will usually be the username 'root' and your password you gave (Unless they generated one and sent you one in the email) Note that when you will type in the password it will not appear so carry on typing it.
http://imageshack.us/photo/my-images/577/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.com/samp03xsvr_R1-2.tar.gz
That will download the .tar.gz for linux. Let it download.
http://imageshack.us/photo/my-images/841/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.
http://imageshack.us/photo/my-images/29/66bb.jpg/
Hit Enter to execute the command.
Next go into the folder you just extracted by typing: cd samp03
http://imageshack.us/photo/my-images/844/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).
http://imageshack.us/photo/my-images/202/2jej.jpg/
Put Your IP(your vps ip) , Username : root ( by default ) and password : your vps root password.
Locate to the samp03 folder and edit server.cfg to whatever you want.
http://imageshack.us/photo/my-images/801/7al0.jpg/
Open it, you'll see this :
http://imageshack.us/photo/my-images/138/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)
http://imageshack.us/photo/my-images/27/0y3e.jpg/
Done installing samp on your vps,
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 : http://pastebin.com/xYuEqTsk
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 &
Here Is a small tutorial on how to create a server using VPS i hope this helps everyone to create a server using VPS
I have not seen the same topic in samp forums so i decided to post 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.
http://imageshack.us/f/832/8mzx.jpg/
2.It will ask for a username and password also once you connect. This will usually be the username 'root' and your password you gave (Unless they generated one and sent you one in the email) Note that when you will type in the password it will not appear so carry on typing it.
http://imageshack.us/photo/my-images/577/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.com/samp03xsvr_R1-2.tar.gz
That will download the .tar.gz for linux. Let it download.
http://imageshack.us/photo/my-images/841/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.
http://imageshack.us/photo/my-images/29/66bb.jpg/
Hit Enter to execute the command.
Next go into the folder you just extracted by typing: cd samp03
http://imageshack.us/photo/my-images/844/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).
http://imageshack.us/photo/my-images/202/2jej.jpg/
Put Your IP(your vps ip) , Username : root ( by default ) and password : your vps root password.
Locate to the samp03 folder and edit server.cfg to whatever you want.
http://imageshack.us/photo/my-images/801/7al0.jpg/
Open it, you'll see this :
http://imageshack.us/photo/my-images/138/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)
http://imageshack.us/photo/my-images/27/0y3e.jpg/
Done installing samp on your vps,
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 : http://pastebin.com/xYuEqTsk
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 &