Hey!
I am trying to make moodle chat server daemon to work on our server. The steps I have made so far:
1. Using iptables I allowed TCP in and out on port 9111
2.from /mod/chat I used the following command line to start the php script: php chatd.php --start & and I get the following message: Started Moodle chatd on port 9111, listening socket Resource id #71 which would confirm that everything is ok. I can see that the script is running using " lsof -i:9111 " command
3.from the site Plugins>Activity modules>Chat, chat method is set to Chat server daemon.
Server port is configured for port 9111. Server IP: localhost; ServerName: MyMoodleSite.com
I am always getting the following error when I try to get in a chat activity: MyMoodleSite.com took too long to respond.
Even if I change the ServerName with the IP or I insert the hostname of the server or any possible combination I still get the error and I can't make it work.
Please advise what should I do in order to make it work. I have googled everything without success
Thank you!