473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

mysql support missing

I install rpms for php and mysql and php-mysql on rhel5. however phpinfo is
showing --without-mysql'

any idea on how i can enable mysql support?
Jul 11 '07 #1
9 2602
nobody wrote:
I install rpms for php and mysql and php-mysql on rhel5. however phpinfo is
showing --without-mysql'

any idea on how i can enable mysql support?
Sounds like php is running with the server home path set where
phpinfo.php resides. I think you need to change that in the apache
config file, forget the name httpconf? Am I understanding your question?

--
Paul Furman Photography
http://www.edgehill.net/1
Bay Natives Nursery
http://www.baynatives.com
Jul 11 '07 #2
Paul Furman wrote:
nobody wrote:
>I install rpms for php and mysql and php-mysql on rhel5. however
phpinfo is showing --without-mysql'

any idea on how i can enable mysql support?


Sounds like php is running with the server home path set where
phpinfo.php resides.
Nevermind, I don't think phpinfo requires mysql at all.
Jul 11 '07 #3
But in the phpinfo.php page,

it shows '--without-mysql' '--without-gd' '--without-odbc' '
how do I change that to with-mysql?

it has no support for mysql right now

"Paul Furman" <paul-@-edgehill.netwrote in message
news:Fh*****************@newssvr22.news.prodigy.ne t...
Paul Furman wrote:
>nobody wrote:
>>I install rpms for php and mysql and php-mysql on rhel5. however phpinfo
is showing --without-mysql'

any idea on how i can enable mysql support?


Sounds like php is running with the server home path set where
phpinfo.php resides.

Nevermind, I don't think phpinfo requires mysql at all.

Jul 11 '07 #4
In our last episode,
<f7**********@news.Stanford.EDU>,
the lovely and talented nobody
broadcast on comp.lang.php:
I install rpms for php and mysql and php-mysql on rhel5. however phpinfo is
showing --without-mysql'
any idea on how i can enable mysql support?
did the mysql module get registered in extensions.ini? Several installation
tools get something wrong with extensions.ini although it often is multiply
registering something which can give some ugly "already loaded" messages
when nothing really is wrong. If you have mysql.so (and it is the php
module from your most recent install) feel free to register it yourself.
Study the locate output carefully because some other applications have
mysql.so of their own. It should be clear which one belongs to php.
--
Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
Countdown: 558 days to go.
Friends of Lizbeth: help replace failed a/c at Austin's no-kill shelter
<https://secure.groundspring.org/dn/index.php?aid=12349>
Jul 11 '07 #5
I have mysql.so

its located in /usr/lib64/php/modules/mysql.so

how do i know if its registered? how do i register it?
"Lars Eighner" <us****@larseighner.comwrote in message
news:sl********************@goodwill.larseighner.c om...
In our last episode,
<f7**********@news.Stanford.EDU>,
the lovely and talented nobody
broadcast on comp.lang.php:
>I install rpms for php and mysql and php-mysql on rhel5. however phpinfo
is
showing --without-mysql'
>any idea on how i can enable mysql support?

did the mysql module get registered in extensions.ini? Several
installation
tools get something wrong with extensions.ini although it often is
multiply
registering something which can give some ugly "already loaded" messages
when nothing really is wrong. If you have mysql.so (and it is the php
module from your most recent install) feel free to register it yourself.
Study the locate output carefully because some other applications have
mysql.so of their own. It should be clear which one belongs to php.
--
Lars Eighner <http://larseighner.com/>
<http://myspace.com/larseighner>
Countdown: 558 days to go.
Friends of Lizbeth: help replace failed a/c at Austin's no-kill shelter
<https://secure.groundspring.org/dn/index.php?aid=12349>

Jul 11 '07 #6
nobody wrote:
I have mysql.so
how do i know if its registered? how do i register it?
You should have something like
extension=mysql.so
in your php.ini. phpinfo() will tell you where php.ini is located.

Sjoerd
Jul 11 '07 #7
"nobody" <no****@nobody.comwrote in
news:f7**********@news.Stanford.EDU:
But in the phpinfo.php page,

it shows '--without-mysql' '--without-gd' '--without-odbc' '
how do I change that to with-mysql?

it has no support for mysql right now
i'm pretty sure you have to rebuild/recompile (shoot me, i don't know the
right word) it manually... or whatever this step is:

../configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --disable-
debug --enable-ftp --enable-inline-optimization --enable-magic-quotes --
enable-mbstring --enable-mm=shared --enable-safe-mode --enable-track-vars
--enable-trans-sid --enable-wddx=shared --enable-xml --with-dom --with-
gettext --with-mysql=/usr/local/mysql --with-regex=system --with-xml --
with-zlib-dir=/usr/lib --enable-bcmath --enable-calendar --with-config-
file-path=/usr/local/lib --with-jpg-dir=/usr/local/lib --with-png-
dir=/usr/local/libpng-1.2.12 --with-gd

.... followed with make and make install

Jul 11 '07 #8
nobody wrote:
I have mysql.so

its located in /usr/lib64/php/modules/mysql.so

how do i know if its registered? how do i register it?
May be dl('mysql.so') will help you if enabled.
See http://www.php.net/dl for details.
Jul 11 '07 #9
In our last episode,
<f7**********@news.Stanford.EDU>,
the lovely and talented nobody
broadcast on comp.lang.php:
I have mysql.so
its located in /usr/lib64/php/modules/mysql.so
how do i know if its registered? how do i register it?
if you have a file called extensions.ini -- I'm guess you do if you are
running linux simply add the line
extension=mysql.so
to it. Look at the file, and just make another line like the ones already
in it. This is where php looks to find what modules to load, but it is just
a flat text file. As I mentioned, you can go to this file and remove lines
that are exact duplicates if you ever find "<so-and-soalready loaded"
messages when you fire up php.
--
Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
Countdown: 558 days to go.
Friends of Lizbeth: help replace failed a/c at Austin's no-kill shelter
<https://secure.groundspring.org/dn/index.php?aid=12349>
Jul 12 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: B. Pigman | last post by:
There have been many questions as to the viability of MySQL's assertion that it can dictate what constitutes a derived work in order to use the GPL against developers who don't wish their software...
0
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
133
by: jonathan | last post by:
hey all, I realize that this question might pop up from time to time, but I haven't seen it a while and things might of changed, so - Right now (July 2004) how does mysql stand up in...
29
by: smorrey | last post by:
I've been thinking on this long and hard, and I can't seem to come up with an answer on it. Why is it almost always assumed the MySQL will be the server for nearly any PHP app? Why is it...
175
by: Sai Hertz And Control Systems | last post by:
Dear all, Their was a huge rore about MySQL recently for something in java functions now theirs one more http://www.mysql.com/doc/en/News-5.0.x.html Does this concern anyone. What I...
39
by: Mairhtin O'Feannag | last post by:
Hello, I have a client (customer) who asked the question : "Why would I buy and use UDB, when MySql is free?" I had to say I was stunned. I have no experience with MySql, so I was left sort...
2
by: Ian Baker | last post by:
We have developed an Access/Jet database (2000, XP & 2003 versions) that has been used by clients all around the world for several years and is extremely robust with 55 tables, 172 hard stored...
3
by: John Smith | last post by:
Can someone please help me build php with mysql support on CentOS. Have installed MySql and that works okay. I have downloaded the latest version of php and tried to build it but I keep getting...
12
by: howa | last post by:
any side effect for PHP? what do you think?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.