public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Need to add gd and mysql to PHP.
@ 2007-07-23  3:37 Mike Diehl
  2007-07-23  8:52 ` Alex Fansky
  2007-07-23  9:04 ` Hans-Werner Hilse
  0 siblings, 2 replies; 10+ messages in thread
From: Mike Diehl @ 2007-07-23  3:37 UTC (permalink / raw
  To: gentoo-user

Hi all,

I'm needing to update php to include both the gd and mysql extensions.

I believe I have both packages installed.

I emerged php with both extensions in my USE flag.

===============================================
emerge -upDe --verbose php 


[ebuild   R   ] dev-lang/php-4.4.7  USE="apache2 berkdb cli crypt gd gdbm 
iconv imap ipv6 mysql ncurses nls pcre posix postgres readline session snmp 
sqlite ssl unicode xml 
zlib -adabas -bcmath -birdstep -bzip2 -calendar -cdb -cgi -cjk -concurrentmodphp 
-ctype -curl -db2 -dbase -dbmaker -dbx -debug -discard-path -doc -empress 
-empress-bcs -esoob -exif -expat -fastbuild -fdftk -filepro -firebird -flatfile 
-force-cgi-redirect -frontbase -ftp -gd-external -gmp -hyperwave-api -informix 
-inifile -interbase -iodbc -java-external -java-internal -kerberos -ldap -libedit -mcal 
-mcve -memlimit -mhash -ming -mnogosearch -msql -mssql -oci8 -oci8-instant-client
-odbc -oracle7 -overload -pcntl -pfpro -pic -recode -sapdb -sharedext -sharedmem 
-sockets -solid -spell -suhosin -sybase -sybase-ct -sysvipc -threads -tokenizer -truetype 
-wddx -xmlrpc -xpm -xsl -yaz -zip" 0 kB
===============================================

How do I get these to be recognized by php applications?

TIA,

-- 
Mike Diehl
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Need to add gd and mysql to PHP.
  2007-07-23  3:37 [gentoo-user] Need to add gd and mysql to PHP Mike Diehl
@ 2007-07-23  8:52 ` Alex Fansky
  2007-07-23  9:04 ` Hans-Werner Hilse
  1 sibling, 0 replies; 10+ messages in thread
From: Alex Fansky @ 2007-07-23  8:52 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1601 bytes --]

Hello.

Have you tried using it? Please post here your php error message.

I believe it should work without any configuration.


В сообщении от Monday 23 July 2007 06:37:58 Mike Diehl написал(а):
> Hi all,
>
> I'm needing to update php to include both the gd and mysql extensions.
>
> I believe I have both packages installed.
>
> I emerged php with both extensions in my USE flag.
>
> ===============================================
> emerge -upDe --verbose php
>
>
> [ebuild   R   ] dev-lang/php-4.4.7  USE="apache2 berkdb cli crypt gd gdbm
> iconv imap ipv6 mysql ncurses nls pcre posix postgres readline session snmp
> sqlite ssl unicode xml
> zlib -adabas -bcmath -birdstep -bzip2 -calendar -cdb -cgi -cjk
> -concurrentmodphp -ctype -curl -db2 -dbase -dbmaker -dbx -debug
> -discard-path -doc -empress -empress-bcs -esoob -exif -expat -fastbuild
> -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase -ftp
> -gd-external -gmp -hyperwave-api -informix -inifile -interbase -iodbc
> -java-external -java-internal -kerberos -ldap -libedit -mcal -mcve
> -memlimit -mhash -ming -mnogosearch -msql -mssql -oci8 -oci8-instant-client
> -odbc -oracle7 -overload -pcntl -pfpro -pic -recode -sapdb -sharedext
> -sharedmem -sockets -solid -spell -suhosin -sybase -sybase-ct -sysvipc
> -threads -tokenizer -truetype -wddx -xmlrpc -xpm -xsl -yaz -zip" 0 kB
> ===============================================
>
> How do I get these to be recognized by php applications?
>
> TIA,
>
> --
> Mike Diehl



-- 
Alex V. Fansky
Minsk, BSU

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Need to add gd and mysql to PHP.
  2007-07-23  3:37 [gentoo-user] Need to add gd and mysql to PHP Mike Diehl
  2007-07-23  8:52 ` Alex Fansky
@ 2007-07-23  9:04 ` Hans-Werner Hilse
  2007-07-24  0:08   ` Mike Diehl
  1 sibling, 1 reply; 10+ messages in thread
From: Hans-Werner Hilse @ 2007-07-23  9:04 UTC (permalink / raw
  To: gentoo-user

Hi,

On Sun, 22 Jul 2007 21:37:58 -0600 Mike Diehl <mdiehl@diehlnet.com>
wrote:

> I'm needing to update php to include both the gd and mysql extensions.
> 
> I believe I have both packages installed.
> 
> I emerged php with both extensions in my USE flag.
> [...]

Looks alright.

> How do I get these to be recognized by php applications?

They should be configured in /etc/php/php*/php.ini if you want to load
them automatically (extension=mysql.so, extension=gd.so) -- maybe you
just need to run etc-update? (and restart the webserver)

OTOH, you can have your PHP scripts load the extension themselves using
dl() in PHP.

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Need to add gd and mysql to PHP.
  2007-07-23  9:04 ` Hans-Werner Hilse
@ 2007-07-24  0:08   ` Mike Diehl
  2007-07-24  0:32     ` Norberto Bensa
  0 siblings, 1 reply; 10+ messages in thread
From: Mike Diehl @ 2007-07-24  0:08 UTC (permalink / raw
  To: gentoo-user

On Monday 23 July 2007 03:04:05 am Hans-Werner Hilse wrote:
> Hi,
>
> On Sun, 22 Jul 2007 21:37:58 -0600 Mike Diehl <mdiehl@diehlnet.com>
> > How do I get these to be recognized by php applications?
>
> They should be configured in /etc/php/php*/php.ini if you want to load
> them automatically (extension=mysql.so, extension=gd.so) -- maybe you
> just need to run etc-update? (and restart the webserver)

I don't have anything that looks like that:

# pwd
/etc/php


# ls -la
total 28
drwxr-xr-x  6 root root 4096 Jul 19 00:27 .
drwxr-xr-x 71 root root 8192 Jul 23 17:57 ..
drwxr-xr-x  4 root root 4096 Jul 23 17:57 apache2-php4
drwxr-xr-x  4 root root 4096 Jul 23 17:59 apache2-php5
drwxr-xr-x  4 root root 4096 Jul 23 18:02 cli-php4
drwxr-xr-x  4 root root 4096 Jul 23 18:01 cli-php5

Looks like I've got something really dorked up....

Any ideas?


> OTOH, you can have your PHP scripts load the extension themselves using
> dl() in PHP.

I'm trying to upgrade OpenGroupware, so it's not my program to modify.

-- 
Mike Diehl
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Need to add gd and mysql to PHP.
  2007-07-24  0:08   ` Mike Diehl
@ 2007-07-24  0:32     ` Norberto Bensa
  2007-07-24  0:50       ` Mike Diehl
  0 siblings, 1 reply; 10+ messages in thread
From: Norberto Bensa @ 2007-07-24  0:32 UTC (permalink / raw
  To: gentoo-user; +Cc: Mike Diehl

Mike Diehl wrote:
> drwxr-xr-x  4 root root 4096 Jul 23 17:59 apache2-php5
>

There you have it ;-)

Look inside...


Regards

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Need to add gd and mysql to PHP.
  2007-07-24  0:32     ` Norberto Bensa
@ 2007-07-24  0:50       ` Mike Diehl
  2007-07-24  1:05         ` Norberto Bensa
  2007-07-24  8:47         ` Hans-Werner Hilse
  0 siblings, 2 replies; 10+ messages in thread
From: Mike Diehl @ 2007-07-24  0:50 UTC (permalink / raw
  To: Norberto Bensa; +Cc: gentoo-user

On Monday 23 July 2007 06:32:53 pm Norberto Bensa wrote:
> Mike Diehl wrote:
> > drwxr-xr-x  4 root root 4096 Jul 23 17:59 apache2-php5
>
> There you have it ;-)
>
> Look inside...
>
>
> Regards

Well, I'm getting closer, then.

I looked inside the php.ini file in the apache2-php5 directory.  It has an 
extension_dir line:

extension_dir = /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030

I looked at the contents of this directory:
# ls -la /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030

And this is all I saw:
-rwxr-xr-x 1 root root 12744 Jun 23  2006 phpcups.so


So, how do I install the php mysql extension?

Thanx again,

-- 
Mike Diehl
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Need to add gd and mysql to PHP.
  2007-07-24  0:50       ` Mike Diehl
@ 2007-07-24  1:05         ` Norberto Bensa
  2007-07-24  3:35           ` Mike Diehl
  2007-07-24  8:47         ` Hans-Werner Hilse
  1 sibling, 1 reply; 10+ messages in thread
From: Norberto Bensa @ 2007-07-24  1:05 UTC (permalink / raw
  To: Mike Diehl; +Cc: gentoo-user

Mike Diehl wrote:
>
> So, how do I install the php mysql extension?
>
> Thanx again,

You don't. Just emerge php with mysql, and whatever USE flags you want.

Best regards,
Norberto
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Need to add gd and mysql to PHP.
  2007-07-24  1:05         ` Norberto Bensa
@ 2007-07-24  3:35           ` Mike Diehl
  2007-07-24  3:52             ` Norberto Bensa
  0 siblings, 1 reply; 10+ messages in thread
From: Mike Diehl @ 2007-07-24  3:35 UTC (permalink / raw
  To: gentoo-user; +Cc: Norberto Bensa

On Monday 23 July 2007 07:05:21 pm Norberto Bensa wrote:
> Mike Diehl wrote:
> > So, how do I install the php mysql extension?
> >
> > Thanx again,
>
> You don't. Just emerge php with mysql, and whatever USE flags you want.
>
> Best regards,
> Norberto

Well, I got rid of php with:

emerge -C php

Then I re-emerged php and got php5 installed with this use flag:

USE="apache2 berkdb cli crypt gd gdbm iconv imap ipv6 mysql ncurses nls pcre 
posix postgres readline session snmp sqlite ssl unicode xml 
zlib -adabas -bcmath -birdstep -bzip2 -calendar -cdb -cgi -cjk -concurrentmodphp
 -ctype -curl -db2 -dbase -dbmaker -dbx -debug -discard-path -doc -empress 
-empress-bcs -esoob -exif -expat -fastbuild -fdftk -filepro -firebird -flatfile 
-force-cgi-redirect -frontbase -ftp -gd-external -gmp -hyperwave-api -informix 
-inifile -interbase -iodbc -java-external -java-internal -kerberos -ldap -libedit 
-mcal -mcve -memlimit -mhash -ming -mnogosearch -msql -mssql -oci8 
-oci8-instant-client -odbc -oracle7 -overload -pcntl -pfpro -pic -recode -sapdb 
-sharedext -sharedmem -sockets -solid -spell -suhosin -sybase -sybase-ct -sysvipc 
-threads -tokenizer -truetype -wddx -xmlrpc -xpm -xsl -yaz -zip" 0 kB [0]

This output shows that I have mysql and gd included.  But I still don't have 
mysql or gd support.

What else can I do?

-- 
Mike Diehl
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Need to add gd and mysql to PHP.
  2007-07-24  3:35           ` Mike Diehl
@ 2007-07-24  3:52             ` Norberto Bensa
  0 siblings, 0 replies; 10+ messages in thread
From: Norberto Bensa @ 2007-07-24  3:52 UTC (permalink / raw
  To: Mike Diehl; +Cc: gentoo-user

Mike Diehl wrote:
> But I still don't
> have mysql or gd support.

How do you know you didn't got mysql/gd? What does:

<?php
phpinfo();
?>

say? Does it show mysql/gd?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Need to add gd and mysql to PHP.
  2007-07-24  0:50       ` Mike Diehl
  2007-07-24  1:05         ` Norberto Bensa
@ 2007-07-24  8:47         ` Hans-Werner Hilse
  1 sibling, 0 replies; 10+ messages in thread
From: Hans-Werner Hilse @ 2007-07-24  8:47 UTC (permalink / raw
  To: gentoo-user

Hi,

On Mon, 23 Jul 2007 18:50:52 -0600 Mike Diehl <mdiehl@diehlnet.com>
wrote:

> On Monday 23 July 2007 06:32:53 pm Norberto Bensa wrote:
> > Mike Diehl wrote:
> > > drwxr-xr-x  4 root root 4096 Jul 23 17:59 apache2-php5
> >
> > There you have it ;-)
> >
> > Look inside...
> 
> Well, I'm getting closer, then.

Errm, yes, sorry, I didn't really look before writing "php*".

> I looked inside the php.ini file in the apache2-php5 directory.  It
> has an extension_dir line:
> 
> extension_dir
> = /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030
> 
> I looked at the contents of this directory:
> # ls -la /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030
> 
> And this is all I saw:
> -rwxr-xr-x 1 root root 12744 Jun 23  2006 phpcups.so
> 
> 
> So, how do I install the php mysql extension?

Hm, is this an old extension dir? My Zend-ABI-version for PHP (5.2.1)
is 20060613.

But it should not matter -- you emerged PHP with the "sharedext" USE
flag unset. In that case, those extensions should be compiled into the
PHP binary, rather than being shared objects in the mentioned extension
path. So first do as Noberto sugested and check if the extension really
is not enabled (what is it that makes you think so?).

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-07-24  8:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23  3:37 [gentoo-user] Need to add gd and mysql to PHP Mike Diehl
2007-07-23  8:52 ` Alex Fansky
2007-07-23  9:04 ` Hans-Werner Hilse
2007-07-24  0:08   ` Mike Diehl
2007-07-24  0:32     ` Norberto Bensa
2007-07-24  0:50       ` Mike Diehl
2007-07-24  1:05         ` Norberto Bensa
2007-07-24  3:35           ` Mike Diehl
2007-07-24  3:52             ` Norberto Bensa
2007-07-24  8:47         ` Hans-Werner Hilse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox