Results 1 to 7 of 7

Thread: php5-mbstring === how to get to work?

  1. #1
    Join Date
    Nov 2010
    Location
    Nizhyn, Ukraine
    Posts
    15

    Default php5-mbstring === how to get to work?

    Hi.

    There are installed software:
    SuSe Linux 10. Linux version 2.6.16.21-0.8-smp
    php5 - PHP5 Core Files Installed Version 5.3.2-28.1
    php5-mbstring - PHP5 Extension Module, Installed Version 5.3.2-28.1

    But php5-mbstring don't work.
    The command php5 -m and phpinfo() show that a extension php5-mbstring not present, but in the Yast2 this extension installed (Installed Version 5.3.2-28.1)???

  2. #2

    Default Re: php5-mbstring === how to get to work?

    i think you know, support for 10.x has ended?

    first: check all available error logs:

    - /var/log/apache2/
    - if configured, the php error log

    if you find an error, post it.

    also, please post the extension's location:

    Code:
    find / -mount -iname "<php-extension-name>" 2> /dev/null
    remember its location. then check if it's correctly put down in your php.ini (please remember that there is a php.ini for web and one for cli [possibly more])

    Code:
    # grep <php-extension-name> /path/to/php.ini
    if not, fix.

  3. #3
    Join Date
    Nov 2010
    Location
    Nizhyn, Ukraine
    Posts
    15

    Default Re: php5-mbstring === how to get to work?

    Quote Originally Posted by brian_j View Post
    first: check all available error logs:

    - /var/log/apache2/
    - if configured, the php error log
    Yes. error in path to extantions
    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/extensions/mbstring.so' - 
    /usr/lib/php5/extensions/mbstring.so: cannot open shared object file: 
    No such file or directory in Unknown on line 0
    Real extention in this
    Code:
    rpm -ql php5-mbstring
    /etc/php5/conf.d/mbstring.ini
    /usr/lib64/php5/extensions/mbstring.so

  4. #4

    Default Re: php5-mbstring === how to get to work?

    make a link (this is quick and dirty):

    Code:
    ln /usr/lib64/extensions/mbstring.so /usr/lib/php5/extensions/mbstring.so

  5. #5
    Join Date
    Nov 2010
    Location
    Nizhyn, Ukraine
    Posts
    15

    Default Re: php5-mbstring === how to get to work?

    Quote Originally Posted by brian_j View Post
    make a link (this is quick and dirty):

    Code:
    ln /usr/lib64/extensions/mbstring.so /usr/lib/php5/extensions/mbstring.so
    There are many extensions in /usr/lib64/extensions/ folder
    may be I do settings in php.ini like it
    Code:
    extension_dir = "/usr/lib64/php5/extensions/"

  6. #6
    Join Date
    Nov 2010
    Location
    Nizhyn, Ukraine
    Posts
    15

    Default Re: php5-mbstring === how to get to work?

    So I have set
    in php.ini
    Code:
    extension_dir = /usr/lib64/php5/extensions
    After this apache generete new error in eroor.log
    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library 
    '/usr/lib64/php5/extensions/mbstring.so' - /usr/lib64/php5/extensions/mbstring.so:
    wrong ELF class: ELFCLASS64 in Unknown on line 0

  7. #7
    Join Date
    Nov 2010
    Location
    Nizhyn, Ukraine
    Posts
    15

    Default Re: php5-mbstring === how to get to work?

    Solved
    I reinstall Apache to i586 architecture. Adn the problem was resolved.
    Thank all.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •