Separate names with a comma.
Discussion in 'General Discussion' started by DN-Paul, Jul 14, 2004.
Anyone got MMcache working on PHP 4.3.8?
Apache fails whenever I try to install mmcache on 4.3.8
It's working okay for me (not using it with Zend accelerator):
MMCache 2.4.6 [shm:sysvipc sem:spinlock], PHP 4.3.8 [ZE 1.3.0], Apache [Apache/1.3.31 (Unix) mod_throttle/3.1.2 mod_gzip/18.104.22.168a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.8 FrontPage/22.214.171.12434a mod_ssl/2.8.18 OpenSSL/0.9.7d]
Although, I couldn't get Hardened-PHP to work, haven't quite figured out what the conflict is there yet. Did you do a clean Turck install?
Originally had zend opt and mmcache installed, upgraded to php 4.3.8, apache refused to start, removed the mmcache lines from php.ini and apache worked, so I removed mmcache fully then re-installed it and apache refused to start again.
To get Turck to work I had to:
remove from php.ini
easyapache w/new php
reinsert into php.ini
Voila. Works like a charm.
Just a follow up note for anyone else trying to get PHP 4.3.8 working with Hardened-PHP and Turck MMCache, I had to use the "--disable-hardened-php-hash-protect" option while compiling PHP to get it work.
Got it working on 3 boxes now - seems like it just needed the cache directory clearing out before re-compiling mmcache.
turck mmcache is not starting here too
i followed this HOW-TO (worked for PHP 4.3.3):
What the heck is Hardened-PHP?
"Hardened-PHP adds security hardening features to PHP to protect your servers on the one hand against a number of well known problems in hastily written PHP scripts and on the other hand against potential unknown vulnerabilities within the engine itself."
It's several patches to the PHP source to add a few more protections, as well as PHP 5's input filter backported for 4.x.
(And the author did fix the problem I was having in the 0.2.2 release.)
is it possible to install hardened-php with the easyapache script? Like, can I somehow add it somewhere to get easyapache to do it - I know there is no option for it.
The MMCache and Zend Optimizer combo refuses to work with Hardened-PHP patched source. It gives segmentation faults on apache restarts.
Not at present, maybe I should file a request for them to add it via Bugzilla. If you have some comfort with the command line, it shouldn't be terribly difficult to add yourself.
Here are the basic steps I use (from memory... should be close):
wget http://www.hardened-php.net/hardened-php-4.3.8-0.2.2.patch.gz (or appropriate version from http://www.hardened-php.net/download.php)
mv php-4.3.8 php-4.3.8.previous (backup the old directory)
tar -zxvf php-4.3.8.tar.gz (to create a fresh new php-4.3.8 directory)
patch -p 1 < ../hardened-php-4.3.8-0.2.2.patch (It should apply cleanly)
Get your current /configure line for your current php compile from a phpinfo() script call (just strip out the ', so you have ./configure --with .... ) . Run that from the command line.
Then run make, and if it all goes well, make install.
If you use something like Turck MMCache, you may also need to recompile that. I'm not using Zend's optimizer thing with Turck, but if you are, it may not work right (as per goodmove's post).
If Apache won't restart, just remove the new php directory, rename the php-4.3.8.previous back to php-4.3.8, and make install from there. Should just copy everything back how it was before.
There are versions for php 4.3.8 or 5
as I know the standard cPanel installation is running PHP as CGI. The README from MMCache says "Turck MMCache does not work in CGI mode". So, is there something similar out there, that also runs in CGI ?
Only phpsuexec installations will make php run in CGI mode. With phpsuexec installed, you cannot run Turck. I am running 4.3.8 with MMcache with no issues. I use it as a zend extension, so even zend encoded files are usable on the server.
The howto on ev1servers is your best bet to get it installed
I tried to install MMcache on my box with WHM 9.4.0 cPanel 9.4.1-R64
root@alpha [/mmcache/turck-mmcache-2.4.6]# $PHP_PREFIX/bin/phpize
/usr/local/bin/phpize: line 48: cd: /usr/local/lib/php/build: No such file or directory
/usr/local/bin/phpize: line 49: cd: /usr/local/lib/php/build: No such file or directory
/usr/local/bin/phpize: line 52: /usr/local/lib/php/build/phpize.m4: No such file or directory
aclocal: `configure.ac' or `configure.in' is required
I heard somewhere i need PHP-devel installed for this to work, but I tried to install it using WHM, it gave me :
There was a fatal RPM install error. The message was:
There was a rpm unpack error installing the package: httpd-2.0.46-38.ent
???? How to install mmcache^^? Thanks!
I think easyapache must change something....
I have few servers with 4.3.8 works with mmcache which upgraded to 4.3.8 as soon as it out, but if I try to install at a new setuped server, it won't work after ran easyapache ...
And for aezs:
maybe is the wrong path ...
Are you able to use the zend encoded files without loading Zend?
MMcache on cPanel server
Above worked for me on RedHat with cPanel installed.
Hope that helps