Page 1 of 1

PHP don't load extensions

Posted: Wed Feb 18, 2009 5:06 am
by adrianc.grigoras
I have under:


/usr/local/lib/php/ext/no-debug-non-zts-20020429

all the extensions:
- mmcache.so
- oci8.so
- sql_relay.so

But when I hit php -m, they are not displayed.

I change in php.in the extension_dir to point to this one:/usr/local/lib/php/ext/no-debug-non-zts-20020429

What else I need to do?

Thank you

Re: PHP don't load extensions

Posted: Wed Feb 18, 2009 5:16 am
by Oxidiser
You should also explicitly include the extensions in your php.ini file.

Code: Select all

 
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example:
;
;   extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.
 
So you should add these lines to your php.ini:

Code: Select all

 
extension=mmcache.so
extension=oci8.so
extension=sql_relay.so
 

Re: PHP don't load extensions

Posted: Wed Feb 18, 2009 7:58 am
by adrianc.grigoras
Thank you. I activate them from php.ini, but I can't find xslt.so. I need to recompile the Php. If I do this, I need to recompile after this all other extensions (mmcache, sql_relay, oci8) or the compile will just do an add?

Re: PHP don't load extensions

Posted: Wed Feb 18, 2009 8:23 am
by Oxidiser
What version of php do you run? You could use the XSL extension If you run php5. http://nl3.php.net/manual/en/book.xsl.php

Re: PHP don't load extensions

Posted: Wed Feb 18, 2009 8:31 am
by adrianc.grigoras
I run Php-4.4.8

Can I go to php_source_dir/ext/xlst

I run

1. phpize
2. ./configure
3. make
4. make install?

Re: PHP don't load extensions

Posted: Wed Feb 18, 2009 8:34 am
by Oxidiser
Check out this page for compiling info: http://nl2.php.net/manual/en/xslt.installation.php