Re: [PHP] Installing extensions

2011-09-20 Thread tamouse mailing lists
On Mon, Sep 19, 2011 at 9:03 AM, Daniel Brown danbr...@php.net wrote:
    You have to add the extensions to your php.ini file,

Yeah, did that, still not working.

 and - if
 using them on the web - remember to restart Apache.

Using lighty and fastcgi.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Installing extensions

2011-09-20 Thread Tommy Pham
On Tue, Sep 20, 2011 at 12:43 AM, tamouse mailing lists 
tamouse.li...@gmail.com wrote:

 On Mon, Sep 19, 2011 at 9:03 AM, Daniel Brown danbr...@php.net wrote:
 You have to add the extensions to your php.ini file,

 Yeah, did that, still not working.

  and - if
  using them on the web - remember to restart Apache.

 Using lighty and fastcgi.


Create a phpinfo.php file:

?php phpinfo(); ?


Browse it:

http://localhost/path/to/file/phpinfo.php

Look at Loaded Configuration File and extension_dir (both local and
master).  What you think and what actually happened are 2 different things.
Always confirm.


Regards,
Tommy


Re: [PHP] Installing extensions

2011-09-19 Thread Daniel Brown
On Sun, Sep 18, 2011 at 15:21, tamouse mailing lists
tamouse.li...@gmail.com wrote:
 I'm having a bit of trouble installing PHP extensions.

 I have the following in php.ini:

  extension_dir =
 .:/usr/local/lib/php/extensions:/usr/local/lib/php/extensions/no-debug-non-zts-20090626

 In /usr/local/lib/php/extensions/no-debug-non-zts-20090626, i have the
 following:

  -rwxr-xr-x  1 root  wheel   25652 Sep 18 13:04 geoip.so*
  -rwxr-xr-x  1 root  wheel  115536 Jul 13 16:55 iconv.a*
  -rwxr-xr-x  1 root  wheel   40556 Jul 13 16:55 iconv.so*

 but if I do php -i | grep -E '(iconv|geoip)' , i get nothing.

 So apparently the extensions aren't being added as I thought.

 System info:
  Mac OSX 10.5.8
  php 5.3.6

 Any clues will be greatly appreciated!

You have to add the extensions to your php.ini file, and - if
using them on the web - remember to restart Apache.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Installing extensions

2011-09-18 Thread Gregor Mitzka
Why don't you use MacPorts? There you can extension in a quite simple way.

Gregor Mitzka

2011/9/18 tamouse mailing lists tamouse.li...@gmail.com

 I'm having a bit of trouble installing PHP extensions.

 I have the following in php.ini:

  extension_dir =

 .:/usr/local/lib/php/extensions:/usr/local/lib/php/extensions/no-debug-non-zts-20090626

 In /usr/local/lib/php/extensions/no-debug-non-zts-20090626, i have the
 following:

  -rwxr-xr-x  1 root  wheel   25652 Sep 18 13:04 geoip.so*
  -rwxr-xr-x  1 root  wheel  115536 Jul 13 16:55 iconv.a*
  -rwxr-xr-x  1 root  wheel   40556 Jul 13 16:55 iconv.so*

 but if I do php -i | grep -E '(iconv|geoip)' , i get nothing.

 So apparently the extensions aren't being added as I thought.

 System info:
  Mac OSX 10.5.8
  php 5.3.6

 Any clues will be greatly appreciated!

 --
 Tamara Temple
 -- aka tamouse__

 May you never see a stranger's face in the mirror.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Installing extensions

2011-09-18 Thread Benjamin Hawkes-Lewis
On Sun, Sep 18, 2011 at 8:21 PM, tamouse mailing lists
tamouse.li...@gmail.com wrote:
 I'm having a bit of trouble installing PHP extensions.

 I have the following in php.ini:

  extension_dir =
 .:/usr/local/lib/php/extensions:/usr/local/lib/php/extensions/no-debug-non-zts-20090626

 In /usr/local/lib/php/extensions/no-debug-non-zts-20090626, i have the
 following:

  -rwxr-xr-x  1 root  wheel   25652 Sep 18 13:04 geoip.so*
  -rwxr-xr-x  1 root  wheel  115536 Jul 13 16:55 iconv.a*
  -rwxr-xr-x  1 root  wheel   40556 Jul 13 16:55 iconv.so*

 but if I do php -i | grep -E '(iconv|geoip)' , i get nothing.

 So apparently the extensions aren't being added as I thought.

 System info:
  Mac OSX 10.5.8
  php 5.3.6

extension_dir controls where PHP looks for extensions that _could_
be dynamically loaded.

It does not dictate which extensions it loads at startup - that's extension.

http://php.net/manual/en/ini.core.php

http://www.php.net/manual/en/install.pecl.intro.php

--
Benjamin Hawkes-Lewis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Installing extensions

2011-09-18 Thread Sharl.Jimh.Tsin
在 2011-09-18日的 14:21 -0500,tamouse mailing lists写道:
 I'm having a bit of trouble installing PHP extensions.
 
 I have the following in php.ini:
 
  extension_dir =
 .:/usr/local/lib/php/extensions:/usr/local/lib/php/extensions/no-debug-non-zts-20090626
 
 In /usr/local/lib/php/extensions/no-debug-non-zts-20090626, i have the
 following:
 
  -rwxr-xr-x  1 root  wheel   25652 Sep 18 13:04 geoip.so*
  -rwxr-xr-x  1 root  wheel  115536 Jul 13 16:55 iconv.a*
  -rwxr-xr-x  1 root  wheel   40556 Jul 13 16:55 iconv.so*
 
 but if I do php -i | grep -E '(iconv|geoip)' , i get nothing.
 
 So apparently the extensions aren't being added as I thought.
 
 System info:
   Mac OSX 10.5.8
   php 5.3.6
 
 Any clues will be greatly appreciated!
 
 --
 Tamara Temple
  -- aka tamouse__
 
 May you never see a stranger's face in the mirror.
 
well,i know less about MacOS,is the extension *.so lib only work under
GNU/Linux  BSD series?
-- 
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)

Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?10073.


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


Re: [PHP] Installing extensions

2011-09-18 Thread tamouse mailing lists
On Sun, Sep 18, 2011 at 4:22 PM, Gregor Mitzka gregor.mit...@online.de wrote:
 Why don't you use MacPorts? There you can extension in a quite simple way.
 Gregor Mitzka

I DID use MacPorts!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Installing extensions

2011-09-18 Thread tamouse mailing lists
On Sun, Sep 18, 2011 at 4:36 PM, Benjamin Hawkes-Lewis
bhawkesle...@googlemail.com wrote:
 On Sun, Sep 18, 2011 at 8:21 PM, tamouse mailing lists
 tamouse.li...@gmail.com wrote:
 I'm having a bit of trouble installing PHP extensions.

 I have the following in php.ini:

  extension_dir =
 .:/usr/local/lib/php/extensions:/usr/local/lib/php/extensions/no-debug-non-zts-20090626

 In /usr/local/lib/php/extensions/no-debug-non-zts-20090626, i have the
 following:

  -rwxr-xr-x  1 root  wheel   25652 Sep 18 13:04 geoip.so*
  -rwxr-xr-x  1 root  wheel  115536 Jul 13 16:55 iconv.a*
  -rwxr-xr-x  1 root  wheel   40556 Jul 13 16:55 iconv.so*

 but if I do php -i | grep -E '(iconv|geoip)' , i get nothing.

 So apparently the extensions aren't being added as I thought.

 System info:
  Mac OSX 10.5.8
  php 5.3.6

 extension_dir controls where PHP looks for extensions that _could_
 be dynamically loaded.

 It does not dictate which extensions it loads at startup - that's extension.

 http://php.net/manual/en/ini.core.php

 http://www.php.net/manual/en/install.pecl.intro.php

 --
 Benjamin Hawkes-Lewis


Ah, ok, great. I have added the following two lines:

 extension=iconv.so
 extension=geoip.so

Now, php -i|grep -E '(iconv|geoip)' reveals:

miishka:.calendar tamara$ php -i|grep -E '(iconv|geoip)'
 Registered Stream Filters = zlib.*, convert.iconv.*, string.rot13,
string.toupper, string.tolower, string.strip_tags, convert.*, consumed
 iconv
 iconv support = enabled
 iconv implementation = libiconv
 iconv library version = 1.11
 iconv.input_encoding = ISO-8859-1 = ISO-8859-1
 iconv.internal_encoding = ISO-8859-1 = ISO-8859-1
 iconv.output_encoding = ISO-8859-1 = ISO-8859-1

But still no geoip love.

Installed the geoip extension from: https://github.com/Zakay/geoip
following the instruction in the README, modified to use version 5.3.6
in /usr/local/:

OSX (MacPorts):
sudo port install libgeoip

Then after unpacking:
/usr/local/bin/phpize
./configure --prefix=/usr/local 
--with-php-config=/usr/local/bin/php-config
make
sudo make install

Clearly, something isn't getting in the right place. Running a find:

 miishka:.calendar tamara$ find /opt/local -name 'libGeoIP*'
 /opt/local/lib/libGeoIP.1.dylib
 /opt/local/lib/libGeoIP.a
 /opt/local/lib/libGeoIP.dylib
 /opt/local/lib/libGeoIP.la
 /opt/local/lib/libGeoIPUpdate.0.dylib
 /opt/local/lib/libGeoIPUpdate.a
 /opt/local/lib/libGeoIPUpdate.dylib
 /opt/local/lib/libGeoIPUpdate.la

Shows the install libGeoIP. I'm suspicious about my configure invocation above.

I captured the script of my build here: http://pastebin.com/8KJ5ShnK

Please let me know what I've forgotten or misplaced.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php