• Sync ULX Logs to Webserver?
    5 replies, posted
I have a webserver and I was wondering if there was some way I could sync the folder /data/ulx_logs/ from my game server to my web server. Does anyone know how to do this? My host is NFOservers if that helps.
If your game server and web server are on the same machine then you can just symlink `/data/ulx_logs` into some place inside of the root directory of your web server. If they are not on the same machine it's a lot more complicated. You'll have to somehow set up automatic periodical upload of the log files onto the web server, which would probably involve writing custom programs to do this.
[QUOTE=mijyuoon;51688050]If your game server and web server are on the same machine then you can just symlink `/data/ulx_logs` into some place inside of the root directory of your web server. If they are not on the same machine it's a lot more complicated. You'll have to somehow set up automatic periodical upload of the log files onto the web server, which would probably involve writing custom programs to do this.[/QUOTE] Yeah they're on different machines... I was wondering if there was some way you could change the websync to pick up the file. It doesn't need to be a live version, just something that updates every day.
One option is to have the logs be saved in a MySQL database, allowing them to be accessed from any machine with the correct credentials. There's probably already a ULX mod that does this for you automatically.
[QUOTE=James xX;51694337]One option is to have the logs be saved in a MySQL database, allowing them to be accessed from any machine with the correct credentials. There's probably already a ULX mod that does this for you automatically.[/QUOTE] Oh interesting! I'll search around for this if it exists.
[QUOTE=deadvcr;51694737]Oh interesting! I'll search around for this if it exists.[/QUOTE] or take that great opportunity of learning how to properly use SQL and do it yourself for the experience
Sorry, you need to Log In to post a reply to this thread.