Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7499335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:47:39+00:00 2026-05-29T19:47:39+00:00

I am using ZeroMQ socket library in my web application. I have configured php.ini

  • 0

I am using ZeroMQ socket library in my web application. I have configured php.ini so Apache can use ZMQ but I dont know how phpunit can use it.

Dont phpunit use the same php.ini which apache uses?

In phpunit I get following error.

PHP Fatal error: Class 'ZMQContext' not found in /home/idlecool/checker/testcases/checkerTest.php on line 53

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T19:47:41+00:00Added an answer on May 29, 2026 at 7:47 pm

    Which php.ini file is used for Apache and command-line generally depends on your Linux distribution ; if using Debian or Ubuntu, you’ll generally have :

    • /etc/php5/apache2/php.ini for Apache
    • and /etc/php5/cli/php.ini for command-line — and PHPUnit runs as a command-line application.

    But note that quite often (it’s true on Ubuntu, by default), all .ini files from the /etc/php5/conf.d/ directory will be loaded in both Apache and CLI modes.

    Which means that, if you want an extension to be loaded in both modes, you should create a .ini file in that directory, loading and configuring it.

    For example, you could have a /etc/php5/conf.d/zmq.ini file, containing something like :

    extension=zmq.so
    

    (of course, you’ll have to put the name of the right .so file)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using a ZMQ.SocketType.REP (reply) messaging socket with ZeroMQ, I am receiving messages and then
I alreay can implement chat daemons using gevent and zeromq, but I'd like to
i'm using zeromq with php bindings to connect to the zmq module in Freeswitch
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using android 2.3.3, I have a background Service which has a socket connection. There's
I can't get ZeroMQ C++ wrapper to receive multipart messages. The same code using
I have a simple pub-sub setup on a mid-sized network, using ZMQ 2.1. Although
I'm attempting to use the ZeroMQ library in an iPhone app developed in C#
I am using django and pyzmq, also ZeroMQ PUB and SUB sockets with configured
Using Android TelephonyManager an application can obtain the state of data activity over the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.