GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-May-2008, 18:02
pr_fj pr_fj is offline
New Member
 
Join Date: May 2008
Posts: 2
pr_fj is on a distinguished road
Exclamation

Recompile PHP5 with mysql support in Redhat


hi there,

I am a newbie. I have been given a test server to install the typo3 cms. but before i could start, i need to get something done first.

When i looked at the phpinfo(), i see that it has
Code:
'--without-mysql' '--without-gd' '--without-odbc'
I know that mysql is installed since i can login via command line as root.

in /etc/php.d/ i find that mysql.ini file is not there, so i created one and set the mysql extension hoping that it will work
Code:
[root@webtest php.d]# more mysql.ini ; Enable mysql extension module extension=mysql.so
But it didnt. I still have without-mysql in php. Can someone please help me here. I do not know what to do.
thanks

this is some information

Code:
[root@webtest /]# more /proc/version Linux version 2.6.18-8.el5 (mockbuild@builder4.centos.org) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Thu Mar 15 19:57:35 EDT 2007 [root@webtest /]#mysql --version mysql Ver 14.12 Distrib 5.0.22, for redhat-linux-gnu (i686) using readline 5.0 [root@webtest php.d]# php --version PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - /usr/lib/php/modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 5.1.6 (cli) (built: Sep 20 2007 10:16:10) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies [root@webtest /]# php -m PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - /usr/lib/php/modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 [PHP Modules] bz2 calendar ctype curl date exif ftp gettext gmp hash iconv ldap libxml mime_magic oci8 openssl pcntl pcre posix pspell Reflection session shmop SimpleXML sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml zlib [Zend Modules]
  #2  
Old 27-May-2008, 19:40
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,140
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: recompile PHP5 with mysql support in redhat


We had the same trouble with one of our Redhat servers.

It turned out that, for whatever reason, there are two RPM packages in the distribution, php with mysql, and php without mysql, and the package without mysql is installed by default.

So, it might be a simple matter of uninstalling the current package and installing the other that has the MySQL support built-in. That's all we had to do.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #3  
Old 27-May-2008, 19:48
pr_fj pr_fj is offline
New Member
 
Join Date: May 2008
Posts: 2
pr_fj is on a distinguished road
Cool

Re: recompile PHP5 with mysql support in redhat


well,

after so much searching, this is what i do.

Code:
#yum search php-mysql #yum install php-mysql #service httpd restart
and this got my php and mysql working together.


Code:
#php -m
listed mysql now.

Hope this is useful to those who are trying to solve the same problem.

 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ad-Free + 50GB + PHP + 10 MySQL databases + Easy Website Builder + Domain Support openforbusiness Free Web Hosting 1 30-Jan-2007 21:55
1000 MB/ month with PHP n MySQL support kkvya1 Free Web Hosting 1 25-Nov-2006 07:42
Cpanel downgrade MYSQL 4.1.X to MySQL 4.0.xx Webhosting-live Web Hosting Forum 1 01-Sep-2006 03:54
PHP5 + MySQL 3.23 on RedHat 9 - "mysql_connect" not found Fezzen MySQL / PHP Forum 1 12-Aug-2005 08:26
[Review] SalesCart Pro BobbyDouglas Web Design Forum 0 11-Mar-2004 13:09

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 13:56.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.