[FX-Server][Tutorial] How To Setup FX-Server On Linux - From Start To Finish

I have a problem with my server

here is console : http://prntscr.com/idwzqr
here is folder patch : http://prntscr.com/idwzyc and http://prntscr.com/idx009
here is my server.cfg : http://prntscr.com/idx08d

The problem is that I start the server but I was trying to connect from Direct Connect with ip and port and its not working. https://image.prntscr.com/image/nnB8yAFBQuufa4gG5C1N8g.png

@FREAK, not sure if using your public ip in place of 0.0.0.0 is causing you issues. I don’t see your server online. Are you still having issues?

Finally, is this a VPS, home server, VM, Linux Container, Docker?

I suggest to use the command " nohup bash /home/fx-server/run.sh +exec server.cfg " This will keep the server running in background :slight_smile:

This is useful if you make the server in cloud services like Google Cloud or AWS :slight_smile:

Have you fixed it? Where is your server hosted maybe I can help :wink:

Worked great. I just switched from Windows to Linux (doubled my RAM, processors, and hd space for only $2 more than I was paying). I have never used Linux before so I knew there would be a learning curve but your instructions have me up and running. Great job and a HUGE thank you for this tutorial!

You need the Git Client first to run that line.
install this in your home dir

sudo apt -y install git-core

Been using this method all month and still like it but I went to update the server today and done something wrong. Had to start over. Would you be willing to give this Linux noob (and others like me) the proper instructions on how to update the server with the latest fivem build?

I have the same issue as @FREAK . Installed the latest server and started it without any errors.
The server sends heartbeats as well.

Running a Leaseweb VPS, Ubuntu 16.04.
I can run other servers on the machine with no issues (i.e. web server, Rust, etc). I disabled the firewalls as well. I just cannot connect to it (direct connect) nor I can see it in FiveM server list. I tried replacing the endpoints in the server.cfg with my public IP and also use different ports, but still didnt work.

1 Like

I don’t have the cert-sync thing for Step 3, using CentOS 7

You can skip this step, it’s not needed anymore.

i would think you can not run it as root.
instead make a user and you dont even need to sudo it ^^
in general you should always avoid acting as user root on your linux box.
first there is no need for, second it collides with rules, third ist a huge source of problems coming from that.

When I try start this comes back:
/home/fx-server/run.sh: line 8: /home/fx-server/alpine/opt/cfx-server/ld-musl-x86_64.so.1: cannot execute binary file
/home/fx-server/run.sh: line 8: /home/fx-server/alpine/opt/cfx-server/ld-musl-x86_64.so.1: Success

Im using CentOS 6

Hi guys! I have a problem with my server.
i run a dedicated server at soyoustart ( debian8+). i installed everything and the server is running, but i can NOT direct connect to it, neither see it in the list.

i did not changed the server.cfg ports and have the # to display it in the list.

all ports are open. Any ideas? thx for your help!

How did you open the ports? Can you provide the output of iptables -L

target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            

That looks right. I’m not super familiar with Debian8. Is ufw installed or running? Maybe completely (temporarily) disable all firewalls, so service iptables stop and service ufw stop. Then try, just out of curiosity.

ufw is not installed. using iptables. how to completly disable it?

sudo service iptables stop

nothing changed :confused:

I’m having this same issue. Contacted my VPS provider they stated my firewall, ports, etc… all look correct.

I’m in this exact same boat at the moment.