PHP don't load extensions

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
adrianc.grigoras
Forum Newbie
Posts: 5
Joined: Tue Feb 17, 2009 1:40 pm

PHP don't load extensions

Post 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
Oxidiser
Forum Newbie
Posts: 15
Joined: Wed Feb 18, 2009 5:00 am
Location: The Netherlands

Re: PHP don't load extensions

Post 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
 
adrianc.grigoras
Forum Newbie
Posts: 5
Joined: Tue Feb 17, 2009 1:40 pm

Re: PHP don't load extensions

Post 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?
Oxidiser
Forum Newbie
Posts: 15
Joined: Wed Feb 18, 2009 5:00 am
Location: The Netherlands

Re: PHP don't load extensions

Post 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
adrianc.grigoras
Forum Newbie
Posts: 5
Joined: Tue Feb 17, 2009 1:40 pm

Re: PHP don't load extensions

Post 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?
Oxidiser
Forum Newbie
Posts: 15
Joined: Wed Feb 18, 2009 5:00 am
Location: The Netherlands

Re: PHP don't load extensions

Post by Oxidiser »

Check out this page for compiling info: http://nl2.php.net/manual/en/xslt.installation.php
Post Reply