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?

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.