473,320 Members | 1,839 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,320 software developers and data experts.

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 2617
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rbt | last post by:
Not really a Python question, but I thought some on this list may be able to answer.... so here goes: I have several machines on which I must install CentOS. There are many updates to CentOS and...
2
by: Andy K | last post by:
Hi I would like to know if it is possible to install UDB / DB2 on CentOs. TIA. Andy
1
by: Eric West | last post by:
Hello gurus of the internet- I'm trying to install PHP on a system with MySQL I've had success using MySQL which was installed via "yum install mysql" on my CentOS 4.3 system. My problem is...
0
by: Chen Yang | last post by:
Hi all, I have been working on this problem for two days, any suggestion would be very appreciated. I am installing Tomcat5 on CentOS 4.2 with the following instructions:...
10
by: qianz99 | last post by:
I have a code. I can compile well in redhat. but when I swich to CentOS I ran into problems. MAPlib.c:16: error: incompatible type for argument 1 of `log' while my log is defined as void...
0
by: CandyClaire | last post by:
hello, I need help here... My index.php page wont submit even after clicking the submit button in a Linux(CentOS) environment.... It would sort of just refresh and then it goes back to the same...
8
by: MacRules | last post by:
In office, I can have RedHat AS 4.0. And I like to configure a DB2 for home lab system. Which one is better OpenSuse 10.3 or CentOS?
0
by: rob6987 | last post by:
when I run this command I recieve this error message and I am not sure if I nedd to download a patch to run this or if Seamonkey has a problem running on centos 5.1. Any solution while be...
0
sokoun
by: sokoun | last post by:
Hi all, I have a public ip address 15.2.3.100 and I want to resolve my ip address to the name mysite.com . How can I configure it? how can it resolve by the web hosting? please help me. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.