How can I make the Apache web server and Mysql database connect to a game server and work every time the Linux VPS is restarted, and in addition, we can get the sources in a GitHub repository automatically after the server is restarted?
How can I make the Apache web server and Mysql database connect to a game server and work every time the Linux VPS is restarted, and in addition, we can get the sources in a GitHub repository automatically after the server is restarted?
Pulling code automatically from a github repo that isn't under your control is extremely dangerous. There are far too many examples where that method hacked the server after other projects were poisoned with C&C code or worse.
You'll need to be clearer on what you mean by "make the Apache web server and Mysql database connect to a game server and work every time". Both are servers, so I'm confused about having a server connect to general use https or DBMS servers. Usually, it is the other way around.
Apache would connect to the app-server which would connect to the DBMS. For this to happen, you just need to start the DBMS first, then the app-server, followed by apache last.
A few days ago, an example happened: https://www.phoronix.com/news/XZ-CVE-2024-3094 . This one isn't THAT bad, unless you use beta Linux versions.
If you use python, https://arstechnica.com/security/202...-chain-attack/
Almost every coding language gets hit with some important repos that are hosted publicly being modified with hacked code.
https://arstechnica.com/security/202...ngoing-attack/
Canonical's snap packages have been hit a few times with malicious code:
https://www.theregister.com/2024/03/...p_store_scams/
Be careful out there.
Bookmarks