List Info

Thread: can't connect to mysql from php ,NetBSD 3.0




can't connect to mysql from php ,NetBSD 3.0
user name
2006-03-20 20:00:43
Jahislove wrote:
> hello all ,
> 
> i am under NetBSD 3.0
> and i have installed apache/php/mysql as described on
this wiki
> http://wiki.onetbsd.org/index.php/How_to_install_a
_LAMP_Server
> 
<snip>
> 
> any idea of the problem?
> is it possible that the ap-php isn't working and i
must install a 
> php-mysql module?

Yes, you do need to install databases/php-mysql.

The wiki seems to have skipped that, however php-mysql would
likely be
installed as a dependency of phpBB or whatever else was
installed.

Rowdy

can't connect to mysql from php ,NetBSD 3.0
user name
2006-03-20 21:13:32
i try to install php-mysql as you said , but here is the log
:

===> Installing for php-mysql-4.4.1nb2
===> php-mysql-4.4.1nb2 is already installed - perhaps an
older version?
*** If so, you may use either of:
***  - "pkg_delete php-mysql-4.4.1nb2" and
"/usr/bin/make reinstall" to 
upgrade properly
***  - "/usr/bin/make update" to rebuild the
package and all of its 
dependencies
***  - "/usr/bin/make replace" to replace only
the package without 
re-linking
***    dependencies, risking various problems.
*** Error code 1


by the way , with a phpinfo()in index.php , I get this :

Configure Command 	 './configure' '--without-mysql'
'--without-iconv' 
'--disable-posix' '--with-config-file-path=/usr/pkg/etc'

'--with-exec-dir=/usr/pkg/libexec/php4'
'--with-regex=system' 
'--enable-memory-limit' '--enable-track-vars'
'--enable-ipv6' 
'--with-openssl=/usr' '--with-apxs2=/usr/pkg/sbin/apxs' 
'--prefix=/usr/pkg' '--host=mipsel--netbsd'
'--mandir=/usr/pkg/man'

it seem that php is installed without mysql , but I don't
know how to 
install with mysql .

can you tell me what to do pls?


Rowdy a écrit :
> Jahislove wrote:
>> hello all ,
>>
>> i am under NetBSD 3.0
>> and i have installed apache/php/mysql as described
on this wiki
>> http://wiki.onetbsd.org/index.php/How_to_install_a
_LAMP_Server
>>
> <snip>
>>
>> any idea of the problem?
>> is it possible that the ap-php isn't working and i
must install a 
>> php-mysql module?
> 
> Yes, you do need to install databases/php-mysql.
> 
> The wiki seems to have skipped that, however php-mysql
would likely be
> installed as a dependency of phpBB or whatever else was
installed.
> 
> Rowdy
> 
> 

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )