|
|
| Michael Temeschinko 2007-10-09, 8:01 am |
| Hello,
I want use memcache with PHP
but configure says:
Notice: Following unknown configure options were used:
--enable-memcache
how do I install memcache-functions in php 5.2.4?
http://de.php.net/manual/de/ref.memcache.php
mfg - micha
| |
|
| Michael Temeschinko <mt@amorebio.de> wrote:
> Hello,
>
> I want use memcache with PHP
>
> but configure says:
>
> Notice: Following unknown configure options were used:
>
> --enable-memcache
>
> how do I install memcache-functions in php 5.2.4?
>
> http://de.php.net/manual/de/ref.memcache.php
>
>
> mfg - micha
try to compile it statically
The memcache extension is not bundled with PHP.
So, there is two way to use memcache with PHP :
1) Build separate .so file (recommended)
Download memcache extension at http://pecl.php.net/get/memcache-2.2.0.tgz
Untar the archive
Build the .so file and install it :
phpize
../configure --enable-memcache
make
make install
2) Add it to php sources to compile memcache extension statically
Download php sources
Download memcache extension
Untar both archives
Copy the memcache source to /path/to/src/php-x.y.z/ext/memcache
Build php executable and install it :
../buildconf --force
../configure --enable-memcache
make
make install
Hope that helps.
-Mazzu
| |
|
| Mazzu <confins_de_l_univers@yahoo.fr> wrote:
> Michael Temeschinko <mt@amorebio.de> wrote:
>
> try to compile it statically
>
> The memcache extension is not bundled with PHP.
>
> So, there is two way to use memcache with PHP :
>
> 1) Build separate .so file (recommended)
> Download memcache extension at http://pecl.php.net/get/memcache-2.2.0.tgz
> Untar the archive
> Build the .so file and install it :
> phpize
> ./configure --enable-memcache
> make
> make install
>
> 2) Add it to php sources to compile memcache extension statically
> Download php sources
> Download memcache extension
> Untar both archives
> Copy the memcache source to /path/to/src/php-x.y.z/ext/memcache
> Build php executable and install it :
> ./buildconf --force
> ./configure --enable-memcache
> make
> make install
>
> Hope that helps.
>
> -Mazzu
The first sentence is a mistake.
Don't try to compile statically if possible.
| |
| Michael Temeschinko 2007-10-09, 7:03 pm |
| Mazzu schrieb:
[color=darkred]
yes this extension i installed with
pecl install memcache
and i enabled it in the php.ini
extension=memcache.so
the pecl installer copy the file to
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/memcache.so
which seems right to me (there are no errors if i start php) but I can't
use the Memcached function
now i set
display_startup_errors = On
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613
nothing :-(
if i start my test (have no expierence w/ memcache)
<?php
$memcache = new Memcache;
$memc...
..
..
?>
Fatal error: Class 'Memcache' not found in test.php on line 3
now I try your second way (what makes buildconf --force?
thank you for helping me
greetings from here
micha
| |
| Michael Temeschinko 2007-10-09, 7:03 pm |
| now it works!
thank you for helping me
greetings from here
micha
|
|
|
|