Jump to content


Photo

how to change php.ini PATH


  • Please log in to reply
1 reply to this topic

#1 richard smooth

richard smooth
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 18 October 2006 - 02:34 PM

Need help with php error!

I have installed ZCS Open Source Edition (on suse linux) with success but received php error trying to install oscommerce catalog and phpmyadmin :
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/extensions/mysql.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0.
PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'libmysqlclient.so' in Unknown on line 0

I have tried possible solutions like copying both files to my extentions dir and uncommenting the directives in php.ini but no success so far. I have read somewhere that I might have to recompile php but I have no idea how this will affect my zimbra and it's already running services.

My phpinfo() is pointing to /opt/zimbra/php-5.0.5/lib/php.ini for my php.ini PATH while my php.ini was actually in /etc/php.ini. I have tried copying php.ini to /opt/zimbra/php-5.0.5/lib/ as indicated by phpinfo() but it doest work.

How do I change the env path for php to read /etc/php.in as this is where my php.ini is located?
What do I need to do to sort this out guys? Please help!  Thanks.

#2 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 20 October 2006 - 10:32 AM

Make sure you restart the webserver after editing php.ini




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users