PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Configure using CentOS 5.1
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Configure using CentOS 5.1

Réponse
 
LinkBack Outils de la discussion
Vieux 23/01/2008, 18h15   #1
gquiring@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Configure 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

  Réponse avec citation
Vieux 23/01/2008, 23h45   #2
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Configure using CentOS 5.1

gquiring@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.
jstucklex@attglobal.net
==================

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h03.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07666 seconds with 10 queries