First of all, yes, I know that there is a very similar question, but the answer given there does not apply to my situation, and there is no indication that he also fixed the problem of another person.
I have ZMQ installed on my Apache server according to the manual contained in the Racthet documentation. I put everything to success after many disappointments, and I am ready to give an example. A simple PHP script is placed in post.php and has this line (after some pretty trivial PHP setting variables, etc.):
$context = new ZMQContext();
However, this causes this error:
Fatal error: Class 'ZMQContext' not found in /home/lights/public_html/apps/post.php on line 12
I included extension=zmq.so at the end of my only used php.ini file, as the zeromq documentation suggested. To verify that Apache loads the same php.ini as the page, I checked. Apache gave me exactly the same information as phpinfo () on the page:
Configuration File (php.ini) Path /usr/local/lib Loaded Configuration File /usr/local/lib/php.ini
From this, I came to the conclusion that the same error should appear if I ran php post.php from the terminal. However, in this case no error was shown - it seems that the PHP code has done its part. So, I have eliminated the only possible reason that I have found in my search so far, and I am looking for an alternative.
Does anyone have a solution, suggestion, idea, anything at all that could help clarify this?
jovan source share