XMR PHAR File path

CMS Version

4.2.1

Installation Method

Manual Installation

Operating System

Rocky Linux 9.5

Issue

I have installed Xibo CMS 4.2.1 and now I want to install XMR on the same Server. I left the PHAR file as it is in /var/www/xibo/vendor/bin/xmr.phar and created a config.json in the same directory with the following content (IP Adress Replaced):

{
“sockets”: {
“ws”: “192.168.1.1:8080”,
“api”: “192.168.1.1:8081”,
“zmq”: [“tcp://192.168.1.1:9505”]
},
“debug”: true
}

But when I want to run the PHAR File, I get following Error

[root@HOSTNAME_REPLACED xibo]# php /var/www/xibo/vendor/bin/xmr.phar
PHP Fatal error: Uncaught InvalidArgumentException: Missing /var/www/xibo/vendor/xibosignage/xibo-xmr/bin/config.json file, please create one in /var/www/xibo/vendor/xibosignage/xibo-xmr/bin in phar:///var/www/xibo/vendor/xibosignage/xibo-xmr/bin/xmr.phar/index.php:46
Stack trace:
#0 /var/www/xibo/vendor/xibosignage/xibo-xmr/bin/xmr.phar(14): require()
#1 /var/www/xibo/vendor/bin/xmr.phar(119): include(‘…’)
#2 {main}
thrown in phar:///var/www/xibo/vendor/xibosignage/xibo-xmr/bin/xmr.phar/index.php on line 46

But the Xibo Docs say, that the config.json has to be in the same directory. What is true now?

Additionally, I am confused by this Github Issue, do I have to replace my PHAR file or not? XMR: the PHAR file with 1.0 release is an older version · Issue #3604 · xibosignage/xibo · GitHub

I have the exact same issue and need urgent help

1 Like

Distributing the PHAR file inside the CMS was a mistake which has been corrected in 4.2.1; we will update the documentation.

As you are installing manually, you should get your XMR release from the XMR releases page: Releases · xibosignage/xibo-xmr · GitHub. You can either take the container or the PHAR file, its up to you.

The config.json file should be in the same directory as your PHAR file.

Thanks for your answer!

Yes please update the docs, since I have an upcoming school project and a requirement is to install Xibo according to the documentation. I am not allowed to use docker.

My current status is: I have replaced the /var/www/xibo/vendor/bin/xmr.phar with the xmr.phar from the Github Release (Version 1.0). I have placed the config.json (same content as mentioned above) in the same directory as the xmr.phar (you have said under “Websockets configuration in 4.2” that you’d recommend another directory but I did it before your answer and since you said it is totally possible in the same directory, this shouldn’t change anything for my issue now.) Now when I run “php xmr.phar”, it seems to work, I get the following:

[root@HOSTNAME_REPLACED bin]# php xmr.phar
[2025-03-24 12:14:51] xmr.INFO: HTTP listening
[2025-03-24 12:14:51] xmr.INFO: WS listening on 192.168.1.1:8080
[2025-03-24 12:14:51] xmr.INFO: Legacy: handling old messages
[2025-03-24 12:14:51] xmr.INFO: Bind to tcp://192.168.1.1:9505 for Publish.
[2025-03-24 12:14:51] xmr.DEBUG: Adding a queue processor for every 5 seconds
[2025-03-24 12:15:21] xmr.DEBUG: Heartbeat…

In my Xibo Web interface, I have the follwowing settings:

XMR Private Address: http://192.168.1.1:8081
XMR WebSocket Address: ws://192.168.1.1:8080
XMR Public Address: tcp://192.168.1.1:9505

I have installed the newest Windows Player on a notebook and authorised it. I also made sure to deactivate “Force HTTPS” in the Windows Display Profile since I haven’t configured https yet.

But XMR still doesn’t seem to work. When request a screenshot, it doesn’t show up quickly like it should. When I click i on the player, I see the follwoing:

XMR Status: Connected (tcp://192.168.1.1:9505), Waiting for messages

So it isn’t even connected to WS (but you said in the other post that WS isn’t even working yet? didn’t quite get it there what the current status is)

When I request a Screenshot, I instantly see in the player that it changes from:

Connected (tcp://192.168.1.1:9505), Waiting for messages

to

Connected (tcp://192.168.1.1:9505), last activity: date and time

So the communication somehow works but still doesn’t because I don’t get a screenshot.

I have tested the following on the Windows Player via Powershell and it is successful, so no network or firewall problems there:

Test-NetConnection 192.168.1.1 -Port 8080

What am I doing wrong?

@dan Hi, do you have any response on this? How do I manage to run XMR on a manual Installation, even if it is via ZeroMQ?

Hey Mohamed
I’ve managed to run XMR (Websockets). I’m using this phar: Releases · xibosignage/xibo-xmr · GitHub and replaced the one in /vendor/bin/xmr.phar

Greetings