LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-09-2003, 07:33 PM   #1
dsgdevil
Member
 
Registered: Jan 2003
Distribution: RedHat Linux 9
Posts: 126

Rep: Reputation: 15
getting mysql to work with php


hi,i got mysql working but i cant get it working with php,when i try to install phpbb2,i get this error:
The PHP configuration on your server doesn't support the database type that you chose
anyone know what i have to do?thanks
 
Old 02-09-2003, 07:50 PM   #2
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
Install details? You show RH8 as your distro. Did you install both PHP and MySQL as part of Redhat 8 or did you go download and build them or something else? The copies included on the RH8 CDs work together as-is. Redhat does package the portion of PHP that includes the MySQL drivers as a separate package. Make sure this is installed: php-mysql-4.2.2-8.0.5

Other than that, create a simple PHP program that does

phpinfo();

and search the output HTML for mysql and see what you see...
 
Old 02-09-2003, 08:54 PM   #3
dsgdevil
Member
 
Registered: Jan 2003
Distribution: RedHat Linux 9
Posts: 126

Original Poster
Rep: Reputation: 15
here's my phpinfo page
http://24.76.124.120/phpinfo.php
and i dont see a php-mysql-4.2.2-8.0.5 anywhere

Last edited by dsgdevil; 02-09-2003 at 08:57 PM.
 
Old 02-09-2003, 09:12 PM   #4
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
There is an entire section on MySQL not present in your phpinfo that I see on other servers. The php-msyql is an RPM installed package. Search for it in a shell:

# rpm -qa | grep -i php

That will show you all installed packages with php in the name. My guess is it won't be installed...
 
Old 02-09-2003, 09:16 PM   #5
dsgdevil
Member
 
Registered: Jan 2003
Distribution: RedHat Linux 9
Posts: 126

Original Poster
Rep: Reputation: 15
here's what it says when i use that shell:
php-imap-4.2.2-8.0.5
php-4.2.2-8.0.5
php-ldap-4.2.2-8.0.5
 
Old 02-09-2003, 09:20 PM   #6
dsgdevil
Member
 
Registered: Jan 2003
Distribution: RedHat Linux 9
Posts: 126

Original Poster
Rep: Reputation: 15
ok i downloaded that rpm off redhat.com,now the shell script looks like this:
php-imap-4.2.2-8.0.5
php-4.2.2-8.0.5
php-ldap-4.2.2-8.0.5
php-mysql-4.2.2-8.0.5
it should work now right?
 
Old 02-09-2003, 09:23 PM   #7
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
On my RH8 machine:

# rpm -qa | grep -i php
php-pgsql-4.2.2-8.0.5
php-imap-4.2.2-8.0.5
php-mysql-4.2.2-8.0.5
asp2php-gtk-0.76.2-3
php-ldap-4.2.2-8.0.5
php-manual-4.2.2-8.0.5
php-snmp-4.2.2-8.0.5
php-devel-4.2.2-8.0.5
php-4.2.2-8.0.5
asp2php-0.76.2-3
php-odbc-4.2.2-8.0.5

Install what's missing and you'll be good to go...
 
Old 02-09-2003, 09:29 PM   #8
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
Yes.. You may have to restart Apache first though...

# /etc/rc.d/init.d/httpd restart
 
Old 02-09-2003, 09:35 PM   #9
dsgdevil
Member
 
Registered: Jan 2003
Distribution: RedHat Linux 9
Posts: 126

Original Poster
Rep: Reputation: 15
yes!it works now.thanks alot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to get PHP to work with MySQL walterbyrd Linux - Software 1 03-25-2005 10:58 AM
Apache, MySql, PHP work on 10.0 but not 10.1 fireman949 Slackware 3 02-28-2005 11:36 PM
mysql doesn't work with php ivanatora Linux - Software 0 02-26-2004 02:28 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
Just wanting MySQL to work with php edhan Linux - Newbie 5 09-13-2003 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration