Hi. I started with the documentation here https://docs.espocrm.com/administration/websocket/
I have a local install on https://localhost/crm2022 with WAMP SERVER and PHP 8.0.26.
I think I managed the zero MQ extension for PHP.
As wen can see there is a green arrow at php_zmq.
But when I start php commands like php --ini from the windows console it shows:
Warning: PHP Startup: Unable to load dynamic library 'php_zmq.dll' (tried: c:/wamp643/bin/php/php8.0.26/ext/php_zmq.dll (Das angegebene Modul wurde nicht gefunden), c:/wamp643/bin/php/php8.0.26/ext/php_php_zmq.dll.dll (Das angegebene Modul wurde nicht gefunden)) in Unknown on line 0
And when I enable Websocket im Espo it shows there errors in the Browser Console:
Firefox - no - connection to wss://localhost/wss?authToken=05f0cf225004f189541fb939b25c169f&use rId=6200d10bd84b39e5b .
the websocket url should different I think. I also added this in httpd.ssl.conf
CustomLog "${SRVROOT}/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x "%r\" %b"
<IfModule proxy_module>
ProxyRequests Off
<Location /wss>
ProxyPass ws://http://localhost:3308/crm2022
ProxyPassReverse ws://localhost:3308/crm2022
</Location>
</IfModule>
</VirtualHost>
My Server has also a differrent port. I already tried without.
But this seems to take no effekt.
Can someone help me how to setup websocket with wamp please?
I have problems to adapt this part from the linux instructions to windows with wamp.
Using systemd¶
Create a file /etc/systemd/system/espocrm-websocket.service.
[Unit] Description=EspoCRM WebSocket Service Requires=mysql.service After=mysql.service StartLimitIntervalSec=0 [Service] Type=simple Restart=always RestartSec=5 User=www-data ExecStart=/usr/bin/php /path/to/espocrm/websocket.php StandardError=/path/to/espocrm/data/logs/websocket.log [Install] WantedBy=default.target
I like to know how to do this. I understand to create a file. but where on my computer this should be?
The next question is how to make WAMP server or apache have the service started on startup.
I have SLL enabled with local generated cert. But I do not know how to implement the proxy tunnel for the webservice.
Thank you very much for your time and I will love to read your solutions.
I have a local install on https://localhost/crm2022 with WAMP SERVER and PHP 8.0.26.
I think I managed the zero MQ extension for PHP.
As wen can see there is a green arrow at php_zmq.
But when I start php commands like php --ini from the windows console it shows:
Warning: PHP Startup: Unable to load dynamic library 'php_zmq.dll' (tried: c:/wamp643/bin/php/php8.0.26/ext/php_zmq.dll (Das angegebene Modul wurde nicht gefunden), c:/wamp643/bin/php/php8.0.26/ext/php_php_zmq.dll.dll (Das angegebene Modul wurde nicht gefunden)) in Unknown on line 0
And when I enable Websocket im Espo it shows there errors in the Browser Console:
Firefox - no - connection to wss://localhost/wss?authToken=05f0cf225004f189541fb939b25c169f&use rId=6200d10bd84b39e5b .
the websocket url should different I think. I also added this in httpd.ssl.conf
CustomLog "${SRVROOT}/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x "%r\" %b"
<IfModule proxy_module>
ProxyRequests Off
<Location /wss>
ProxyPass ws://http://localhost:3308/crm2022
ProxyPassReverse ws://localhost:3308/crm2022
</Location>
</IfModule>
</VirtualHost>
My Server has also a differrent port. I already tried without.
But this seems to take no effekt.
Can someone help me how to setup websocket with wamp please?
I have problems to adapt this part from the linux instructions to windows with wamp.
Using systemd¶
Create a file /etc/systemd/system/espocrm-websocket.service.
[Unit] Description=EspoCRM WebSocket Service Requires=mysql.service After=mysql.service StartLimitIntervalSec=0 [Service] Type=simple Restart=always RestartSec=5 User=www-data ExecStart=/usr/bin/php /path/to/espocrm/websocket.php StandardError=/path/to/espocrm/data/logs/websocket.log [Install] WantedBy=default.target
I like to know how to do this. I understand to create a file. but where on my computer this should be?
The next question is how to make WAMP server or apache have the service started on startup.
I have SLL enabled with local generated cert. But I do not know how to implement the proxy tunnel for the webservice.
Thank you very much for your time and I will love to read your solutions.
Comment