LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2007, 02:34 AM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Rep: Reputation: 30
how to reconfigure php?


hai,


how can i installed mysql recently. i want php to accept mysql .how can i reconfigure PHP to recognize mysql.
i had
PHP 4.3.9
MySQL-client-standard-4.1.22-0.rhel4
MySQL-server-standard-4.1.22-0.rhel4


Advise are invited...
 
Old 04-26-2007, 02:52 AM   #2
the_ajp
LQ Newbie
 
Registered: Apr 2007
Location: Groningen
Distribution: Slackware >7 , Ubuntu , Gentoo , Debian
Posts: 20

Rep: Reputation: 0
did you compile from source ??
if so reconfigure with

./config.nice --with-mysql

if you installed a binary package you should make a test page containing

<?php

phpinfo();

?>

and look in there if it has been compiled with mysql bindings.

g'luck.
 
Old 04-26-2007, 02:52 AM   #3
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
Edit your php.ini file, there are many options for mysql.
The most importtant are extension to communicate with your mysql:
Code:
extension=mysql.so
extension=pdo_mysql.so # if you want to use pdo
Of course if it has mysql support compiled in

Last edited by avallach; 04-26-2007 at 02:53 AM.
 
Old 04-26-2007, 04:20 AM   #4
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
hai Avallach,
After i did waht you told above, am getting the following errors. why?
# php -v
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mysql.so' - /usr/lib/php4/mysql.so: file too short in Unknown on line 0
PHP 4.3.9 (cgi) (built: Nov 24 2004 08:48:16)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
[root@mani php4]#
 
Old 04-26-2007, 07:46 AM   #5
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
What distro do you use ? Maybe you don't have php compiled with mysql support have you got libmysqlclient installed AFAIR remember it is also required
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reconfigure Exim TroelsSmit Linux - Newbie 4 06-20-2005 09:09 AM
How to Reconfigure CPAN amer_58 Linux - Newbie 1 04-19-2005 05:47 AM
How do I reconfigure Freeswan? Oxyacetylene Debian 2 02-10-2005 08:54 AM
Apache+Postgresql+PHP. reconfigure? vickr1z Linux - Newbie 2 08-23-2004 02:58 AM
PHP, Apache reconfigure to support Databases aaronsols Programming 0 04-20-2002 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:18 PM.

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