469,338 Members | 8,141 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,338 developers. It's quick & easy.

Configure help using CentOS 5.1

I have a new server running CentOS 5.1. I was surprised the stock
PHP excludes MySQL, PDO and a bunch of other popular modules. I
decided to download the source and compile a version with the modules
I need but I used the phpinfo() configure option and modified my
changes. What I don't get is stock configure (no changes) won't
compile on my box. For example in the configure is --with-apxs2=/usr/
sbin/apxs'. I don't even have that binary. How can this run without
that extension?

Next I tried yum list|grep php. I see several packages including php-
mysql.i386 and php-pdo.i386. So I installed them but phpinfo still
does not show MySql support.

So how do I get MySQL into PHP? If I compile it looks like need to
also build Apache. Any direction would be appreciated.

Thanks
Gary Quiring

Jan 23 '08 #1
1 2450
gq******@gmail.com wrote:
I have a new server running CentOS 5.1. I was surprised the stock
PHP excludes MySQL, PDO and a bunch of other popular modules. I
decided to download the source and compile a version with the modules
I need but I used the phpinfo() configure option and modified my
changes. What I don't get is stock configure (no changes) won't
compile on my box. For example in the configure is --with-apxs2=/usr/
sbin/apxs'. I don't even have that binary. How can this run without
that extension?
apxs is used to compile the package. It is not required for running.
It should be part of your Apache installation; depending on what they
shipped you, you may have to install an Apache development package or
similar.

Next I tried yum list|grep php. I see several packages including php-
mysql.i386 and php-pdo.i386. So I installed them but phpinfo still
does not show MySql support.

So how do I get MySQL into PHP? If I compile it looks like need to
also build Apache. Any direction would be appreciated.
You don't need to build Apache, but you need the Apache module to build
PHP. And to add MySQL you use a compile-time flag - I think it's
--with-mysql=/path_to_mysql_development_files.

Thanks
Gary Quiring


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jan 23 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by rbt | last post: by
2 posts views Thread by Andy K | last post: by
reply views Thread by Chen Yang | last post: by
10 posts views Thread by qianz99 | last post: by
reply views Thread by rob6987 | last post: by
sokoun
reply views Thread by sokoun | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.