Turck MMCache, ein GPL PHP-Accelerator

Open-Source-Projekte unserer User
adjustman
Posts: 1132
Joined: 2003-03-26 23:29
Location: SA
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by adjustman »

:-D aah ja. Hab ich schon. Bringt nix. Noch ne Idee?
Anonymous
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by Anonymous »

adjustMan wrote:

Code: Select all

extension=/usr/lib/php4/20010901/mmcache.so
mmcache.shm_size="16"
mmcache.cache_dir="/tmp/mmcache"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter=""
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.shm_only="0"
mmcache.compress="1"
mache aus:
extension=/usr/lib/php4/20010901/mmcache.so
ein:
extension=mmcache.so

suche in deiner php.ini
nach extension_dir
da sollte jetzt stehen:
extension_dir = ./
mache daraus:
extension_dir=/usr/lib/php4/20010901/

und wenn es immer noch nicht geht lösche:
extension=/usr/lib/php4/20010901/mmcache.so
und mache daraus ein:

zend_extension=/usr/lib/php4/20010901/mmcache.so
adjustman
Posts: 1132
Joined: 2003-03-26 23:29
Location: SA
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by adjustman »

:-D das hab ich übersehen.
ich hab jetzt aus extension_dir = ./ => extension_dir = gemacht. Geht. Danke.
maoliter
Posts: 12
Joined: 2003-12-21 17:39
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by maoliter »

Gibts da nicht schon mmcache für php4.3.5=< ?
odysseus
Posts: 115
Joined: 2003-02-07 10:21
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by odysseus »

Bei mir läuft mmcache 2.4.6 und PHP 4.3.6 ...
metrix
Posts: 94
Joined: 2002-10-26 15:52
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by metrix »

tut sich da etwa doch noch was:
http://turck-mmcache.sourceforge.net/
as-n
Posts: 196
Joined: 2002-12-19 17:42
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by as-n »

Code: Select all

h7466:~/turck-mmcache-2.4.6 # php mmcache.php
PHP Warning:  [Turck MMCache] This build of "Turck MMCache" was compiled for PHP version 4.3.7. Rebuild it for your PHP version (4.3.8) or download precompiled binaries.
 in Unknown on line 0
PHP Warning:  Unknown(): Unable to initialize module 'Turck MMCache' in Unknown on line 0
Ich habe es aber mit/für 4.3.8 compiliert. :?:
Last edited by as-n on 2004-07-20 23:53, edited 1 time in total.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by Roger Wilco »

AS-N wrote:Was ist dass denn jetzt?
Installiere Autoconf...
as-n
Posts: 196
Joined: 2002-12-19 17:42
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by as-n »

Ja, war wieder mal zu schnell udn selber den Fehler gefunden, aber jetzt kommt obiges.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by Roger Wilco »

AS-N wrote:

Code: Select all

h7466:~/turck-mmcache-2.4.6 # php mmcache.php
PHP Warning:  [Turck MMCache] This build of "Turck MMCache" was compiled for PHP version 4.3.7. Rebuild it for your PHP version (4.3.8) or download precompiled binaries.
 in Unknown on line 0
PHP Warning:  Unknown(): Unable to initialize module 'Turck MMCache' in Unknown on line 0
Ich habe es aber mit/für 4.3.8 compiliert. :?:
Sind auch die richtigen Header installiert (die von PHP 4.3.8)?
Was steht in /usr/include/php/main/php_version.h?
as-n
Posts: 196
Joined: 2002-12-19 17:42
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by as-n »

Danke, es waren tatsächlich noch die alten Headerfiles drin, jetzt läuft es.

Ciao
AS-N
metrix
Posts: 94
Joined: 2002-10-26 15:52
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by metrix »

sollte es hier noch mal was geben?
auf der seite prangert seit wochen: SITE IS UNDER RECONSTRUCTION!

hat einer gute alternativen gefunden oder ist einem bekannt, ob es noch mal weitergeht?
andreask2
Posts: 696
Joined: 2004-01-27 14:16
Location: Aachen
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by andreask2 »

eAccelerator ist eine Weiterentwicklung des Turck MMCache: http://eaccelerator.sourceforge.net/

Installation: http://eaccelerator.sourceforge.net/Bin ... allationUk
konni
Posts: 151
Joined: 2002-12-16 10:05
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by konni »

Ich bekomme folgenden Fehler, wenn ich das configure Script erstellen will:

/usr/local/src/eaccelerator # $PHP_PREFIX/bin/phpize
configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/auto ... ng-aclocal
configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR
configure.in:33: warning: underquoted definition of PHP_EXT_DIR
configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR
configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED
acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C
/usr/share/aclocal/libxml.m4:10: warning: underquoted definition of AM_PATH_XML
/usr/share/aclocal/libxml.m4:205: warning: underquoted definition of AM_PATH_XML2
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
autom4te: unknown language: Autoconf-without-aclocal-m4
aclocal: autom4te failed with exit status: 1
andreask2
Posts: 696
Joined: 2004-01-27 14:16
Location: Aachen
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by andreask2 »

Welche Distribution? Hast Du alle benötigten Pakete installiert (php-devel oder sowas...)? Hast Du es mal der Installation eines binären Paketes versucht?

Und sonst mal auf der eAccelerator Seite unter "Support" nachfragen, am besten die Lösung auch eben hier posten.
konni
Posts: 151
Joined: 2002-12-16 10:05
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by konni »

Also Distri ist Suse 8.2.

Binärpaket fällt insofern flach, da ich php u.a. immer selbst compiliere, und die 8.2 binärpakete sind für das Ã?HÃ? kompiliert, welches suse damals ausgeliefert hatte.

Apache devel usw. ist installiert.

automake, autoconf usw. auch.
konni
Posts: 151
Joined: 2002-12-16 10:05
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by konni »

hah, hab die Lösung gefunden, hab nur ne neuere Version von autoconf oder wars automake gebraucht ;)
sillium123
Posts: 5
Joined: 2006-02-16 11:58
Location: Mainz
 

Habe Probleme mit der Installtion des mmcache

Post by sillium123 »

Mein 1&1 Root-Server:
SUSE 9.1, Apache 2.0.49, PHP 4.3.4

Hier die Fakten der Console:

p88595:/home/httpd/vhosts/domain.com/turck-mmcache-2.4.6 # whereis php
php: /usr/bin/php /etc/php.ini /usr/lib/php /usr/share/php /usr/share/man/man1/php.1.gz

p88595:/home/httpd/vhosts/domain.com/turck-mmcache-2.4.6 # whereis phpize
phpize: /usr/bin/phpize

p88595:/home/httpd/vhosts/domain.com/turck-mmcache-2.4.6 # whereis autoconf
autoconf: /usr/bin/autoconf /usr/share/autoconf /usr/share/man/man1/autoconf.1.gz

p88595:/home/httpd/vhosts/domain.com/turck-mmcache-2.4.6 # whereis libtool
libtool: /usr/bin/libtool /usr/share/libtool

p88595:/home/httpd/vhosts/domain.com/turck-mmcache-2.4.6 # whereis m4
m4: /usr/bin/m4 /usr/share/m4 /usr/share/man/man1/m4.1.gz

p88595:/home/httpd/vhosts/domain.com/turck-mmcache-2.4.6 # export PHP_PREFIX="/usr" $PHP_PREFIX/bin/phpize ./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config make
-bash: export: `/bin/phpize': not a valid identifier
-bash: export: `./configure': not a valid identifier
-bash: export: `--enable-mmcache=shared': not a valid identifier
-bash: export: `--with-php-config=/bin/php-config': not a valid identifier
p88595:/home/httpd/vhosts/domain.com/turck-mmcache-2.4.6 #

Was läuft nur schief?
Danke für eure HILFE!
vevelt
Posts: 122
Joined: 2003-08-01 12:18
Location: Itzehoe
Contact:
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by vevelt »

Vielleicht solltest du die Kommandos einmal der Reihe nach ausführen :wink:

Code: Select all

export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
Achso, und zudem mal einen Blick auf eAccelerator werfen. TurckMMCache wird nicht weiterentwickelt, für PHP4 ist eAccelerator momentan die Wahl...

Gruß, Vevelt.
art-media
Posts: 13
Joined: 2005-02-09 13:12
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by art-media »

weiss jemand ob mensch den cache auch zusammen mit plesk benutzen kann obwohl dort script mit dem zend encoded sind?
Anonymous
 

eaccelerator

Post by Anonymous »

Hallo zusammen,

ich habe auch versucht eaccelerator zu installieren und bin so vorgegangen:

Code: Select all

export PHP_PREFIX=/bin/phpize
Das hatte noch funktioniert aber dann das:

h1039020:/tmp/eaccelerator-0.9.5 # ./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config
-bash: ./configure: No such file or directory
was mach ich falsch? Kann mir bitte einer weiterhelfen. Ich bin leider nicht so firm.

Viele Grüße
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by Roger Wilco »

Dein /tmp ist vermutlich mit der Option noexec eingehängt.
Anonymous
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by Anonymous »

Ich habe es nochmal aus dem root raus probiert, immer noch das gleiche:

Code: Select all

h1039020:/eaccelerator-0.9.5 # ./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config
-bash: ./configure: No such file or directory
Hast Du mir vielleicht nochmal einen Tip?

nochmal Danke
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by Roger Wilco »

Das Configure-Skript hat das X-Bit nicht gesetzt. Probiers mal mit `bash configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config ` oder setze das X-Bit (-> `man chmod`).

EDIT: Existiert die Datei "configure" überhaupt in dem Verzeichnis?
squize
Userprojekt
Userprojekt
Posts: 729
Joined: 2003-05-19 16:46
Location: Karlsruhe
Contact:
 

Re: Turck MMCache, ein GPL PHP-Accelerator

Post by squize »

Das confiure existiert wahrscheinlich nicht, da es erst durch phpize erzeugt wird.
export PHP_PREFIX=/bin/phpize
Damit wirst du nicht weit kommen. In der Installationsanleitung steht es so auch nicht drin:
export PHP_PREFIX="/usr"

$PHP_PREFIX/bin/phpize

./configure
--enable-eaccelerator=shared
--with-php-config=$PHP_PREFIX/bin/php-config

make

You must specify the real prefix where PHP is installed in the "export"
command. It may be "/usr" "/usr/local", or something else.
Damit solltest du es hinbekommen

Gruss Marc
Post Reply