473,748 Members | 2,353 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 2633
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
3918
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 like this to upgrade them locally and more quickly than over the network??? updated_rpms =
2
3035
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
3868
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 MySQL-server-standard-5.0.26-0.rhel4.i386.rpm, there doesn't appear to be a "mysql_config" file installed anywhere on the system. This...
0
4850
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 /usr/local/src/java-1.5.0-sun-1.5.0.11-1jpp.nosrc.rpm
10
1958
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
1144
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 a windows environment..
8
2712
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
946
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 file or directory rob6987
0
5387
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
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9552
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9376
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9249
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8245
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2215
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.