Re: [gentoo-user] Need to add gd and mysql to PHP.

2007-07-24 Thread Hans-Werner Hilse
Hi,

On Mon, 23 Jul 2007 18:50:52 -0600 Mike Diehl [EMAIL PROTECTED]
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
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Need to add gd and mysql to PHP.

2007-07-23 Thread Alex Fansky
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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Need to add gd and mysql to PHP.

2007-07-23 Thread Hans-Werner Hilse
Hi,

On Sun, 22 Jul 2007 21:37:58 -0600 Mike Diehl [EMAIL PROTECTED]
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
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Need to add gd and mysql to PHP.

2007-07-23 Thread Mike Diehl
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 [EMAIL PROTECTED]
  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
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Need to add gd and mysql to PHP.

2007-07-23 Thread Norberto Bensa
Mike Diehl wrote:
 drwxr-xr-x  4 root root 4096 Jul 23 17:59 apache2-php5


There you have it ;-)

Look inside...


Regards

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Need to add gd and mysql to PHP.

2007-07-23 Thread Mike Diehl
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
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Need to add gd and mysql to PHP.

2007-07-23 Thread Norberto Bensa
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
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Need to add gd and mysql to PHP.

2007-07-23 Thread Mike Diehl
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
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Need to add gd and mysql to PHP.

2007-07-23 Thread Norberto Bensa
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?

-- 
[EMAIL PROTECTED] mailing list