Beans0063 Posted December 10, 2007 Share Posted December 10, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/81022-configuring-php-with-additional-packages-and-also-zend-core-extensions/ Share on other sites More sharing options...
trq Posted December 10, 2007 Share Posted December 10, 2007 Ive never looked at it, but its probably easiest to install the pre-packaged php with Zendcore, then build the extra extensions you want seperately. Quote Link to comment https://forums.phpfreaks.com/topic/81022-configuring-php-with-additional-packages-and-also-zend-core-extensions/#findComment-411057 Share on other sites More sharing options...
Beans0063 Posted December 10, 2007 Author Share Posted December 10, 2007 How would you do that? I need to add the modules below. '--with-gd' '--enable-xmlreader' '--enable-xmlwriter' '--with-mbstring' Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/81022-configuring-php-with-additional-packages-and-also-zend-core-extensions/#findComment-411099 Share on other sites More sharing options...
trq Posted December 10, 2007 Share Posted December 10, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/81022-configuring-php-with-additional-packages-and-also-zend-core-extensions/#findComment-411109 Share on other sites More sharing options...
Beans0063 Posted December 10, 2007 Author Share Posted December 10, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/81022-configuring-php-with-additional-packages-and-also-zend-core-extensions/#findComment-411364 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.