Turck MMCache, ein GPL PHP-Accelerator
Re: Turck MMCache, ein GPL PHP-Accelerator
:-D aah ja. Hab ich schon. Bringt nix. Noch ne Idee?
Re: Turck MMCache, ein GPL PHP-Accelerator
mache aus: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"
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
Re: Turck MMCache, ein GPL PHP-Accelerator
:-D das hab ich übersehen.
ich hab jetzt aus extension_dir = ./ => extension_dir = gemacht. Geht. Danke.
ich hab jetzt aus extension_dir = ./ => extension_dir = gemacht. Geht. Danke.
Re: Turck MMCache, ein GPL PHP-Accelerator
Gibts da nicht schon mmcache für php4.3.5=< ?
Re: Turck MMCache, ein GPL PHP-Accelerator
Bei mir läuft mmcache 2.4.6 und PHP 4.3.6 ...
Re: Turck MMCache, ein GPL PHP-Accelerator
tut sich da etwa doch noch was:
http://turck-mmcache.sourceforge.net/
http://turck-mmcache.sourceforge.net/
Re: Turck MMCache, ein GPL PHP-Accelerator
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
Last edited by as-n on 2004-07-20 23:53, edited 1 time in total.
-
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: Turck MMCache, ein GPL PHP-Accelerator
Installiere Autoconf...AS-N wrote:Was ist dass denn jetzt?
Re: Turck MMCache, ein GPL PHP-Accelerator
Ja, war wieder mal zu schnell udn selber den Fehler gefunden, aber jetzt kommt obiges.
-
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: Turck MMCache, ein GPL PHP-Accelerator
Sind auch die richtigen Header installiert (die von PHP 4.3.8)?AS-N wrote:Ich habe es aber mit/für 4.3.8 compiliert. :?: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
Was steht in /usr/include/php/main/php_version.h?
Re: Turck MMCache, ein GPL PHP-Accelerator
Danke, es waren tatsächlich noch die alten Headerfiles drin, jetzt läuft es.
Ciao
AS-N
Ciao
AS-N
Re: Turck MMCache, ein GPL PHP-Accelerator
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?
auf der seite prangert seit wochen: SITE IS UNDER RECONSTRUCTION!
hat einer gute alternativen gefunden oder ist einem bekannt, ob es noch mal weitergeht?
Re: Turck MMCache, ein GPL PHP-Accelerator
eAccelerator ist eine Weiterentwicklung des Turck MMCache: http://eaccelerator.sourceforge.net/
Installation: http://eaccelerator.sourceforge.net/Bin ... allationUk
Installation: http://eaccelerator.sourceforge.net/Bin ... allationUk
Re: Turck MMCache, ein GPL PHP-Accelerator
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
/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
Re: Turck MMCache, ein GPL PHP-Accelerator
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.
Und sonst mal auf der eAccelerator Seite unter "Support" nachfragen, am besten die Lösung auch eben hier posten.
Re: Turck MMCache, ein GPL PHP-Accelerator
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.
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.
Re: Turck MMCache, ein GPL PHP-Accelerator
hah, hab die Lösung gefunden, hab nur ne neuere Version von autoconf oder wars automake gebraucht ;)
-
- Posts: 5
- Joined: 2006-02-16 11:58
- Location: Mainz
Habe Probleme mit der Installtion des mmcache
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!
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!
Re: Turck MMCache, ein GPL PHP-Accelerator
Vielleicht solltest du die Kommandos einmal der Reihe nach ausführen
Achso, und zudem mal einen Blick auf eAccelerator werfen. TurckMMCache wird nicht weiterentwickelt, für PHP4 ist eAccelerator momentan die Wahl...
Gruß, Vevelt.
Code: Select all
export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
Gruß, Vevelt.
Re: Turck MMCache, ein GPL PHP-Accelerator
weiss jemand ob mensch den cache auch zusammen mit plesk benutzen kann obwohl dort script mit dem zend encoded sind?
eaccelerator
Hallo zusammen,
ich habe auch versucht eaccelerator zu installieren und bin so vorgegangen:
was mach ich falsch? Kann mir bitte einer weiterhelfen. Ich bin leider nicht so firm.
Viele Grüße
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
Viele Grüße
-
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: Turck MMCache, ein GPL PHP-Accelerator
Dein /tmp ist vermutlich mit der Option noexec eingehängt.
Re: Turck MMCache, ein GPL PHP-Accelerator
Ich habe es nochmal aus dem root raus probiert, immer noch das gleiche:
Hast Du mir vielleicht nochmal einen Tip?
nochmal Danke
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
nochmal Danke
-
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: Turck MMCache, ein GPL PHP-Accelerator
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?
EDIT: Existiert die Datei "configure" überhaupt in dem Verzeichnis?
Re: Turck MMCache, ein GPL PHP-Accelerator
Das confiure existiert wahrscheinlich nicht, da es erst durch phpize erzeugt wird.
Gruss Marc
Damit wirst du nicht weit kommen. In der Installationsanleitung steht es so auch nicht drin:export PHP_PREFIX=/bin/phpize
Damit solltest du es hinbekommenexport 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.
Gruss Marc