Jump to content

[HELP] Installing MTA server in a VPS


Recommended Posts

Hello,

So I got a VPS. And I'm testing stuff with it.

I've installed a MTA server, following this guide: https://wiki.multitheftauto.com/wiki/In ... _GNU_Linux

It's ok, I can connect to the server, etc. But there's one thing.. Where are all the default resources? When you buy a server from a hosting company they give you a default server, it has some resources, mine doesn't have any at all.

in the mods/deathmatch folder there are the following files:

acl.xml

dbconmy.so

deathmatch.so

mtaserver.config

vehiclecolors.config

How / Where can I obtain the default resources?

Thanks.

+ I had founded a good tutorial and there was the answer of what I was looking for. But now I cannot find it back! I lost it :?

Link to comment

Ye.. well... That's kinda outdated.

I've set up the server and I have it running normally.

But now I was wondering, how can I open the MTA's Server Console again in PuTTy?

Because I'm starting the server in the background so that it doesn't close when I exit PuTTy. But doing it this way, the console is not shown.

Also. To install a 2nd server, I just have to follow the same steps? I tried some days ago but they got mixed.. (The 2 servers I created on it).

Link to comment

You can use "screen" command to manage windows.

Install it using:

#sudo apt-get install screen screen-profiles screen-profiles-extras

to list the screens:

#screen

to choose:

#screen -S [screen Number]

Wish I'm being correct.

Just to point out the ports thing [each server different ports].

Link to comment

I currently have just 1 server in the VPS.

And yesterday I could do this by starting the server using the screen feature (screen -dmS VPS1 ./mta-server)

And now I can open the server's console by (screen -r SCREEN_ID) anytime.

I'm wondering, whenever I want to open another server in the same VPS, do I do the exact thing I made for setting up the first one? and then just change the server's port in mta-server.conf?

I tried to do it some days ago but I totally failed. The first server got kinda mixed with the new one.. (Changed the server's name, gamemode, etc...) But the resources were still there (not started but they were uploaded).

Link to comment

Ok I've installed another server with another dir.

By default: These were the server and http ports

22003

22005

Then, as you told me to change the port, I changed it to 22004 and tried to start the server. But it didn't work. It said something about the HTTP port. Then I went back to mta-server.conf and changed the http port to 22004 (The same as server-port) And it did work. Everything is fine now.

But I got one question. If for this 2nd server installed in the VPS I had to change server and http port and also set them both to 22004. Why am I running the 1st server which has severport 22003 and HTTP port 22005 ?

Link to comment
  • MTA Team

Server port and HTTP port can be the same. Defaults are 22003 and 22005. As you installed the secondary server you had a conflict there. So then you change it to 22004 & 22004. It could also just be, 22004 & 22006 or anything you want that doesn't cause conflict. It's you're choice on that matter.

Regards.

Link to comment

When you are changing the server port you need to change the HTTP Port according to it, for example:

If you changed the server port to 22004 (means +1 than default [22003])

you need to change the HTTP also +1 so it will be 22006 (as 22005 was default)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...