evlad
May 8, 2017, 6:54am
1
Hey I made a simple web console that reads the logs and can rcon commands.
Edit config.php
with your configuration.
You need to write the server’s logs into a file to BE ABLE to read it in the console.
(Linux example ./run.sh > folder/other_folder/output.txt
)
3 Likes
Yoan
May 8, 2017, 11:49am
2
how to lunch run.sh and output.txt ?
evlad
May 8, 2017, 2:08pm
5
link your log file in the config
how i can start this from windows ?
evlad
May 8, 2017, 2:18pm
7
Only if you find a way to write the output into a file
this is the output.txt or not ?
evlad
May 8, 2017, 3:02pm
9
the git’s one is just an example. You have to write your server’s logs into a file, for linux: ./run.sh > my_log_file.txt
and nothing for Windows yet
<?php
$address = "193.X.X.X"; // Example - "127.0.0.1" or "localhost"
$port = 30120; // Default - 30120
$rcon_password = "Mypassword"; // Found in citmp-server file
$log_file = "http://my-website.com/Myfolder/output.txt"; // Example - "http://my-website.com/log_1337.log"
?>
Actually, you can output log to file in Windows. Check NLog.config in server folder.
Yoan
May 18, 2017, 6:05pm
13
No work for me print “…” in the log file
evlad
May 18, 2017, 6:21pm
14
Then you are doing things wrong
1 Like
evlad
May 18, 2017, 10:07pm
16
$log_file
(in config.php) should be folder/My_output_file.txt
…
Floshy
May 20, 2017, 7:00pm
17
Hello, I currently have your script,
I made all possible changes (more than a dozen times) and it always marks me in the file output.txt this:
"… … "
I have reinstalled the rcon several times and nothing changes . Could you help me? Thank you
evlad
May 21, 2017, 11:16am
18
You are doing things wrong…
Are you using Linux?
The server and website are on the same machine?
Start your server with ./run.sh > /my/website/folder/output.txt
OR
Use this NLog.config and change the path of the output.txt file.
Then in config.php
change $logfile
to your output.txt path.
That’s it.
Floshy
May 21, 2017, 11:37am
19
Hello,
I use Linux and my server and website is on the same machine
Nice ! It’s correct ! Thanks eVlad
1 Like
Hello for new maj fxserver 21/07/2017
There would be way to update the script? Thank you very much for your work
1 Like