[SOLVED] "You must have the MySQL PHP module installed&

tamo

Joined: 2004-11-08
Posts: 5
Posted: Sat, 2004-12-18 00:57

Hi all,
i'm a noob and french (sorry, nobody's perfect :lol:)
My G2 A4 says on step 4 "You must have the MySQL PHP module installed"
I don't understand why. My php seems to be well installed, my MySql as well. I've PHPMyAdmin 2.6.1 who works fine.

In my phpinfo the php Mysql module seems to be installed. I've mysql.so in my ../php/extensions/

I've even restarted MySql Server and httpd2 server.

can someone help me ? I don't find solutions on this forum.

thx

Tamo
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: G2 Alpha4
Apache version: Apache 2.0
PHP version (don't just say PHP 4, please): PHP 4.3.4 & MySQL 4.0.20
Graphics Toolkit:
Operating system: mandrake 10.?
Web browser/version (if applicable):

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sat, 2004-12-18 02:30

Moving to G2 forum.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sat, 2004-12-18 05:02

It might be that you need to add a line to your php.ini file or uncomment a line. Open it up and search for things like "mysql". Also, just because php works and mysql works, doesn't mean that php has mysql support in it. PHP needs to be compiled or configured to provide mysql support. Good luck

 
baschny
baschny's picture

Joined: 2003-01-04
Posts: 328
Posted: Sat, 2004-12-18 15:52

tamo, if phpMyAdmin works, the mysql module should be working too. The installer just checks if the PHP function "mysql_connect" is present to proceed with installation. Create a test.php file with:

<pre><?php echo function_exists('mysql_connect') ? 'YES' : 'NO';
print_r(get_defined_functions()); ?></pre>

And see what you get. The second line in PHP returns a list of defined functions in PHP. Check to see if the Mysql ones are amongst them.

What PHP version/OS are you using?

 
tamo

Joined: 2004-11-08
Posts: 5
Posted: Mon, 2004-12-20 23:17

Hi baschny;

thx for the help. ;)

This is my softs versions :

Quote:
Gallery version: G2 Alpha4
Apache version: Apache 2.0
PHP version (don't just say PHP 4, please): PHP 4.3.4 & MySQL 4.0.20
Graphics Toolkit:
Operating system: mandrake 10.?

The code give me : NO (you can see yourself at http://tamo.no-ip.org/test.php )

All worked fine. I did a large update (update of mandrake by the GUI and the update of G2). After that, G2 crashed. I've deleted Mysql, Apache and PHP (command urpme) then urpmi httpd then urpmi mysql and finally urpmi php-mysql.
I do a last update of phpmyadmin.

Phpmyadmin works fine but not G2.

I think you're right when you say " mysql_connect" is missing look here : http://tamo.no-ip.org/gallery2/main.php

Tamo :roll:

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2004-12-21 01:29

is phpmyadmin running on a different php or webserver? it really doesn't look like the php you're using for G2 was compiled with mysql support.

 
tamo

Joined: 2004-11-08
Posts: 5
Posted: Tue, 2004-12-21 09:37
mindless wrote:
is phpmyadmin running on a different php or webserver? it really doesn't look like the php you're using for G2 was compiled with mysql support.

PhpMyAdmin is on the same server.
I don't use compiled sources but i use urpmi (i'm a noob on linux)

You think i've two web server on the same machine who listen on 2 differents sockets ?

I'll get a look...

Tamo

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2004-12-21 16:39

in any case you'll need to compile or find a php with mysql support in order to use G2 with mysql.. i don't know how your phpmyadmin is working.

 
tamo

Joined: 2004-11-08
Posts: 5
Posted: Tue, 2004-12-21 21:08

I called a friend to look at my linux. He don't understand how my phpmyadmin works nor why my php-mysql looks like installed and G2 doesn't work !!!

I'll continu to search. when i find i share my knowledge ;-)

Tamo

 
tamo

Joined: 2004-11-08
Posts: 5
Posted: Mon, 2004-12-27 00:30

A friend of mine found the solution of my problem :

the 34_mysql.ini wasn't int the good directory.

If you have the same problem, check it with the directory declared in the php.ini

Tamo

 
om1d3
om1d3's picture

Joined: 2005-10-01
Posts: 1
Posted: Sat, 2005-10-01 17:16

what does 34_mysql.ini mean?
I serched my entire HDD for this file, but it doesen't exist.
Please be a little more explicit with your solution.
Thank you.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-10-01 20:09

mysql.ini maybe, don't think there's a 34_mysql.ini, doesn't make sense to me.

 
astro209

Joined: 2005-03-03
Posts: 1
Posted: Fri, 2006-02-03 00:03

This is not enough information to help others (me) with this issue. Please include more information so I can resolve this problem...

Thanks

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-02-03 01:01

what issue? you don't have mysql support in your php? See: http://www.php.net/manual/en/ref.mysql.php

 
aranbenjo

Joined: 2006-03-27
Posts: 1
Posted: Mon, 2006-03-27 21:04

Don't worry, he has signed the right way for us. Follow these steps :

-edit /etc/php{4,5}/apache{1,2}/php.ini
-uncomment this line : ;extension=mysql.so removing the ";" at the beginning
-restart apache : sudo apachectl restart
-turn on gallery2 configuration and continue with step 6

Good Luck,

AranBenjO ... a Bear Lover ^_-

 
janipewter

Joined: 2006-05-20
Posts: 18
Posted: Sat, 2006-09-23 11:36
aranbenjo wrote:
Don't worry, he has signed the right way for us. Follow these steps :

-edit /etc/php{4,5}/apache{1,2}/php.ini
-uncomment this line : ;extension=mysql.so removing the ";" at the beginning
-restart apache : sudo apachectl restart
-turn on gallery2 configuration and continue with step 6

Good Luck,

AranBenjO ... a Bear Lover ^_-

Thanks, that solution worked for me. I'm running Gallery2 on lighttpd.

 
xinxin

Joined: 2006-10-03
Posts: 1
Posted: Tue, 2006-10-03 23:28

I had same issue while doing at that step. Afer uncomment the extension=mysql.so from my php.ini and restart apache2, gallery can keep going on the installation.

-eric