[documentation] need help with PDO requirement

TechnoSophos technosophos at gmail.com
Fri Aug 21 14:11:59 UTC 2009


On Fri, Aug 21, 2009 at 8:19 AM, adept digital
evolution<techlists at ade.pt> wrote:

> I honestly think this new PDO requirement will send 99% of the general
> public packing (i.e., looking for something to use besides Drupal).

PDO should be included with PHP in just about every normal PHP5
distribution. Hopefully, it will not be an issue for 99% of the
general public.

CentOS and RHEL may be exceptions, because they do not come with PHP
5.2 out of the box. (They're a few years behind on that.) So if your
server is running PHP < 5.2, you need to look for instructions on
updating *PHP*, not *PDO*.

> In my phpinfo() results I see this in the "Configure Command" row of the
> table:
>>
>> './configure' '--disable-pdo' '--enable-bcmath' '--enable-calendar'
>> '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml'
>> '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr/local'
>> '--with-apxs2=/usr/local/apache/bin/apxs' '--with-freetype-dir=/usr'
>> '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr'
>> '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/'
>> '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock'
>> '--with-png-dir=/usr' '--with-ttf' '--with-xpm-dir=/usr' '--with-zlib'
>> '--with-zlib-dir=/usr'
>
> Further down the page there is now a PDO section that shows the pdo_mysql
> driver is loaded.
>
> But I'm imagining that I have to edit some document to change
> "--disable-pdo" to "--enable-pdo". Where is that doc. In my earlier message
> I noted: 'I have seen references to something like "./configure". What is
> that? Where do I find it? '
>
> so,
>
>
> I have seen references to something like "./configure". What is that? Where
> do I find it? How do I edit it? I tried typing "locate ./configure" at the
> command prompt but that didn't work to help me find where to do this.

Basically, the above tells you what flags were set BEFORE the PHP
source code was compiled. To change a configure flag, you basically
need to get the source code and start from scratch. My guess is that
you do not want to do that (nor should you need to).

Check your PHP version and make sure it is high enough to meet D7's
minimal requirements. That's probably the best way to start.

Matt Butcher



-- 
http://technosophos.com
http://querypath.org


More information about the documentation mailing list