Subject: Re: PHP not talking to MySQL
To: Frank DeChellis <frankd@iaw.on.ca>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-pkg
Date: 02/06/2003 21:39:21
Perhaps try adding
extension=mysql.so
to your php.ini file? Normally located under /usr/pkg/etc/php.ini.
You'd need to add
extension=pcre.so
and
extension=session.so
to your php.init as well in order to have it working.
Jaromir
Frank DeChellis wrote:
[ Charset ISO-8859-1 unsupported, converting... ]
> Hi!
>
> We have NetBSD 1.6_STABLE, PHP 4.1.2 and MySQL 3.23.
>
> For some reason, PHP works fine until you try and do anything with MySQL.
> MySQL works fine at the command prompt. IS there a file that we need to
> edit to configure PHP to use MySQL.
>
> Any help you can offer is appreciated.
>
> Thanks
> Frank
>
> Here are the packages we have installed.
>
> php-4.1.2 HTML-embedded scripting language
> php-pcre-4.1.2 PHP4 extension for Perl-compatible regular expressions
> php-session-4.1.2nb1 PHP4 extension for session-handling
> php-gettext-4.1.2 PHP4 extension for gettext support
> php-xml-4.1.2 PHP4 extension for parsing XML
> php-imap-4.1.2 PHP4 extension for IMAP (Internet Mailbox Access
> Protocol)
> ap-php-4.1.2 Apache module for PHP4
> php-mysql-4.1.2 PHP4 extension for MySQL databases
> phpmyadmin-2.2.0 Set of PHP-scripts to adminstrate MySQL over the WWW
> mysql-client-3.23.49nb1 MySQL, a free SQL database (client)
> mysql-server-3.23.49 MySQL, a free SQL database (server)
> php-mysql-4.1.2 PHP4 extension for MySQL databases
>
> ---------------------------------------------
> Frank DeChellis, President
> Internet Access Worldwide
> 3 East Main St. Welland, ON, Canada
> 1-905-714-1400 http://www.iaw.com
> ---------------------------------------------
>
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-