473,545 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2625
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_d evelopment_file s.

Thanks
Gary Quiring


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

Jan 23 '08 #2

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

Similar topics

2
3912
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 it's very time consuming to do the updates over the network. I have a local copy of all of the updated rpms. Would it be reasonable to do something...
2
3027
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
3848
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 that I'd really like to use Mysql5, but when I install it via MySQL-client-standard-5.0.26-0.rhel4.i386.rpm and...
0
4844
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: http://www.law.emory.edu/~bchapman/tomcat5.html 1. I installed jpackage-utils by yum from jpackage repo 2. rpmbuild --rebuild...
10
1941
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 log(FILE *fp,const char *fmt, ...) { if(!debugFlag) return; va_list argp;
0
1135
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 page again.. Did I forget something to set in my php.ini?? Im sure that my codes are alright... As this system that im running is working fine in...
8
2703
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
938
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 apperciated. # ./seamonkey-installer ./seamonkey-installer-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such...
0
5377
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. thanks in advance.
0
7680
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7934
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7446
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7778
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6003
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5349
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3476
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3459
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
731
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.