Jump to content

configuring php with additional packages and also Zend Core extensions


Recommended Posts

I'm trying to use a custom compile of php and also use the Zend debugger.  So far as I can tell, to use the debugger you need to install the prepackaged php that comes with ZendCore, but that's missing the extra packages.

 

When I compile my own version of php, the addition of "zend_extension=ZendDebugger.so" to php.ini seems to have no effect.

 

So my question is, can you custom configure a version of php and also use the Zend Core packages?

Link to comment
Share on other sites

Once php is built as per the instructions for the pre-built package. You'll also need to download the same version of php's source from php.net.

 

Once you have that, unpack and move into the source's directory, within that will be another directory called ext, move into there. From there follow these steps.... (using the foo extension as an example).

 

$ cd foo
$ phpize
$ ./configure --enable-foo
$ make

 

This will create a foo.so file within the modules directory. Simply copy that to your extensions directory (usually /usr/local/lib/php/extensions/ -- you can find it within phpinfo() if not sure), then add the line....

 

extension=foo.so

 

to your php.ini and restart apache. Should be good to go.

Link to comment
Share on other sites

Thank you for all the help.  I went as far as compile a new extension before I realized all the extensions i needed were already in the /lib/php/extensions dir.

 

Upon closer inspection I realized the settings i needed to change were inside zend.ini, not php.ini.  After making the appropriate changes, I'm up and running.

 

Thanks again for the detailed instructions.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.