Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
php doesn't see mysql *solved*
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
azlan
Guru
Guru


Joined: 11 Nov 2002
Posts: 381
Location: Seattle WA USA

PostPosted: Mon May 17, 2004 1:16 am    Post subject: php doesn't see mysql *solved* Reply with quote

First I would like to say, I am a bit new to php, and mysql.

I have created a new web site for a project me and some freinds are working on and I wanted to add a nice message board. (phpBB)

I have set up an apache server before so no prob there.

I emerged mysql, did the simple setup(root, passwd, etc.). I emerged, php, php_mod. Did the configure stuff.

So then I tried to run the phpBB install and it couldn't connect to mysql.

ok I just wrote this and stuck into /var/www/localhost/htdocs/test

Code:
<html>
<body>

<?php

phpinfo();

?>

</body>
</html>


And then I pull that up on my browser. Supposedly, I should have a section "Extensions" that has mysql in it. But No, I don't.

My use flags are:USE="3dnow X aalib alsa apm arts avi berkdb bonobo cdr crypt cups curl dvd dvdr encode esd foomaticdb gdbm gif gpm gtk gtk2 hpoj imlib jack jpeg kde libg++ libwww linguas_de linguas_en linguas_fr linguas_ru linguas_sp mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl slang spell ssh ssl svga tcltk tcpd truetype usb x86 xml xml2 xmms xv zlib"

I might mention that this is a test machine, not the server I will be running it on.
_________________
there is no crazy, only violet and non violet..


Last edited by azlan on Mon May 17, 2004 2:36 am; edited 1 time in total
Back to top
View user's profile Send private message
jbrazio
Apprentice
Apprentice


Joined: 13 Dec 2002
Posts: 232
Location: .pt

PostPosted: Mon May 17, 2004 1:43 am    Post subject: Reply with quote

Code:
# USE="mysql" emerge mod_php


I've had one similar problem but with ncurces, I couldn’t emerge PHP/CLI with ncurses support built in. The only way to solve this was by adding an explicit USE flag at emerge.
_________________
"Assim como falham as palavras quando querem exprimir qualquer
pensamento, assim falham os pensamentos quando querem exprimir
qualquer realidade." -- Fernando Pessoa
Back to top
View user's profile Send private message
azlan
Guru
Guru


Joined: 11 Nov 2002
Posts: 381
Location: Seattle WA USA

PostPosted: Mon May 17, 2004 2:05 am    Post subject: Reply with quote

I have mysql in my use, but I'll try it. I think that has happend to me before too.
_________________
there is no crazy, only violet and non violet..
Back to top
View user's profile Send private message
azlan
Guru
Guru


Joined: 11 Nov 2002
Posts: 381
Location: Seattle WA USA

PostPosted: Mon May 17, 2004 2:20 am    Post subject: Reply with quote

nope, no va, niet, nien. php still can't see mysql

php version is 4.3.6

mysql version is 4.0.18
_________________
there is no crazy, only violet and non violet..
Back to top
View user's profile Send private message
jbrazio
Apprentice
Apprentice


Joined: 13 Dec 2002
Posts: 232
Location: .pt

PostPosted: Mon May 17, 2004 2:28 am    Post subject: Reply with quote

I've got no more ideas.. soz.
:cry:
_________________
"Assim como falham as palavras quando querem exprimir qualquer
pensamento, assim falham os pensamentos quando querem exprimir
qualquer realidade." -- Fernando Pessoa
Back to top
View user's profile Send private message
azlan
Guru
Guru


Joined: 11 Nov 2002
Posts: 381
Location: Seattle WA USA

PostPosted: Mon May 17, 2004 2:36 am    Post subject: Reply with quote

NO, wait, I rechecked phpinfo() and voila, it was there!

Then I wen't back and tried phpbb again and it installed!

I think my browser was using chache, so it didn't see the change the first time, although it shouldn't, when I do a reload. ....weird
_________________
there is no crazy, only violet and non violet..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum