Help! I Don't Know What To Do

Hello I was reading from this guide: https://forum.cfx.re/t/fx-server-tutorial-how-to-setup-fx-server-on-linux-from-start-to-finish/

and When i do the command bash /home/fx-server/run.sh +exec server.cfg it says:
/home/fx-server/run.sh: line 8: /home/fx-server/alpine/opt/cfx-server/ld-musl-x86_64.so.1: cannot execute binary file: Exec format error
/home/fx-server/run.sh: line 8: /home/fx-server/alpine/opt/cfx-server/ld-musl-x86_64.so.1: Success
can someone try to help me!

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the FiveM community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

read the tutorial very carefully, you are trying to start the server from the wrong directory.

I just tried again bash /home/fx-server/run.sh +exec server.cfg and it didnt work it came up with:
/home/fx-server/run.sh: line 8: /home/fx-server/alpine/opt/cfx-server/ld-musl-x86_64.so.1: cannot execute binary file: Exec format error
/home/fx-server/run.sh: line 8: /home/fx-server/alpine/opt/cfx-server/ld-musl-x86_64.so.1: Success
i thought about it do i need to edit

save the script directory

SCRIPT=$(readlink -f “$0”)
SCRIPTPATH=$(dirname “$SCRIPT”)
to say like the directory or what i didnt get what you meant?

are you doing exactly this and are doing this command from within the fx-server-data folder?

1 Like

Yes i am sure here is a screen shot

Read the system requirements:

Server system requirements : x86-64 system running Linux or Windows (7/2008 R2+), decent upstream connectivity, multi-core processor recommended.

You’re probably not running on an x86-64 system.

ohhh ok thanks i guess ill have to try and find a new system

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.