Click to See Complete Forum and Search --> : recompile php to use mysql?
james_s
10-29-2001, 08:26 AM
I have a RedHat 7.2 server which I configured using the automatic configuaration GUI. It is running apache 1.3.20, mysql 3.23.41,and php 4.0.6. Apache and php are working fine but I created the phpinof.php page and it is missing any reference to mysql. I am real new to linux but someone I know who is helping me suggested I need to recompile php to integrate mysql and apxs. Is this true and if so how do I do it? I searched the forum and a while back found this but I need to know is this right and if could some one interpret it for me!
"./configure --with-axps --with-mysql"
"make"
"make install"
Thanks
mithril
10-29-2001, 09:28 AM
James,
I don't think you're going to need to recompile. For one, Redhat's "automatic configuaration GUI" doesn't use source files.... uses RPM's (basically pre-compiled binaries). Thus, you probably don't have the source readily available and would need to download it. That's not a big problem though:)
More to the point, AFAIK, the RPM's are compiled using apxs and the --with-mysql option is default (you have to manually specify that you *don't* want MySQL support). Your best and easiest bet is to add one or more RPM ftp servers into the sources list of the PRM Manager (don't ask me how.... I don't use Redhat) and run a search for php-mysql. It'll turn up a bunch of hits (probably on the installation cd's as well) for the php-mysql rpm, just select it and install it.
In answer to your other question, the make options you've given in your post are valid and won't cause the make to barf and die (assuming you've got MySQL and APXS installed on your box). Personally I find it's useful to place the "make clean" command before the ./configure options. It ensures you're running a fresh install and not using an old cached config script.
-geoff
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.