WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: PHP needs Mysql and Postgresql  (Read 2153 times)

Offline justauser

  • Newbie
  • *
  • Posts: 17
PHP needs Mysql and Postgresql
« on: January 02, 2013, 08:33:09 AM »
I am trying to install a web app.  I have the MySQL extension added in my php.ini but the app checks and doesn't find mysql_connect function.  I do have the MySQL.so included as an extension in my php.ini.  The app also supports postgresql but I don't see any postgresql support or module in php.  Can these be added?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: PHP needs Mysql and Postgresql
« Reply #1 on: January 03, 2013, 11:06:28 AM »
Hi justauser
Quote
I have the MySQL extension added in my php.ini
If that means you added the phrase  "mysql.tcz"  to the php.ini file, that won't work. See if this is of any help:
http://stackoverflow.com/questions/5121360/command-line-php-mysql-connect-error
Quote
The app also supports postgresql but I don't see any postgresql support or module in php.
Maybe you need to install  postgresql.tcz ?

Offline justauser

  • Newbie
  • *
  • Posts: 17
Re: PHP needs Mysql and Postgresql
« Reply #2 on: January 05, 2013, 08:31:55 AM »
thanks for the reply, but I had obviously done all of that.  php -m showed MySQL.  I can't see a php lib to interface to postgresql and I do have postgresql installed.  The /usr/local/lib/php directory has no postgresql.so linrary.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: PHP needs Mysql and Postgresql
« Reply #3 on: January 05, 2013, 10:56:39 AM »
Hi justauser
Quote
but I had obviously done all of that
Since I can't see your screen, if you don't explicitly state what you've done, it's not obvious.
Quote
The /usr/local/lib/php directory has no postgresql.so linrary.
Looking at this post:
http://forum.tinycorelinux.net/index.php/topic,8645.msg46941.html#msg46941
I see:
Code: [Select]
; requires postgresql-lib.tcz
;extension=pgsql.so
I think you might want  pgsql.so  not  postgresql.so.