nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

recompile PHP5 with mysql support in redhat

This is a discussion on recompile PHP5 with mysql support in redhat within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; hi there, I am a newbie. I have been given a test server to install the typo3 cms. but before ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-28-2008, 04:34 AM
Junior Member
User
 
Join Date: May 2008
My distro: Linux version 2.6.18-8.el5 (mockbuild@builder4.centos.org) (gcc version 4.1.1 20070105 (Red Hat 4.1.
Posts: 2
Rep Power: 0
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]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-28-2008, 12:22 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 910
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default Red Hat Install php-gd / php-mysql

No need to recompile anything remove mysql.ini and type the following to install php mysql module:

Code:
rm /etc/php.d/mysql.ini
yum install php-mysql php-gd
Now restart apache and you should have support
Code:
service httpd restart
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 05-29-2008, 02:28 AM
Junior Member
User
 
Join Date: May 2008
My distro: Linux version 2.6.18-8.el5 (mockbuild@builder4.centos.org) (gcc version 4.1.1 20070105 (Red Hat 4.1.
Posts: 2
Rep Power: 0
pr_fj is on a distinguished road
Cool

Hey there,
thanks. is worked for me.

cheers
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Redhat php5 x86_64 install raj Getting started tutorials 0 08-05-2007 07:59 PM
Download php5 source rpm for Redhat Linux 5 sweta Linux software 1 07-31-2007 04:59 AM
NIS Support indan02 Solaris/OpenSolaris 0 09-09-2005 05:00 PM
NIS support indan02 Shell scripting 1 09-08-2005 05:08 PM


All times are GMT +5.5. The time now is 05:03 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36