ZachICU

Well-Known Member
Aug 11, 2001
130
0
316
Before I start placing blame I just want to verify something.

1. The other day my WHM tells me my build is insecure and I need to run ./easyapache

2. Running this updates my PHP to 4.3.1

3. Zend Opt does not support 4.3.1 only 4.3.0

Anyone verify this is correct?

Thanks
Zach
 

iago

Member
Aug 26, 2002
16
0
151
Hello, thats correct. Zend will stop working because of the php version. Zend was suppose to release a patch to this. In the meantime you can do the following. I did it on my server and worked great.

To get Zend Optimizer 2.1.0 to work with 4.3.1 you'll need to edit 1 files and rename (or symlink 1 directory)

$ZENDINSTALL is the directory where you un-packed Zend Optimizer mine are
(On Linux -
ZendOptimizer-2.1.0-Linux_glibc21-i386 ,
On Solaris - ZendOptimizer-2.1.0-Solaris-sparc)

Part 1
-------
edit $ZENDINSTALL/zui_files/install.inc

Search for this section
-----------------------------
$this->php_versions_array = array(
1 => array("PHP 4.0.5/6", "4.0.6"),
2 => array("PHP 4.1.x", "4.1.x"),
3 => array("PHP 4.2.0", "4.2.0"),
4 => array("PHP 4.2.x (other than 4.2.0)", "4.2.x"),
5 => array("PHP 4.3.0", "4.3.0")
);

Change 4.3.0 to 4.3.1 in the array elemen 5
So that line would look like this.
5 => array("PHP 4.3.1", "4.3.1")

Part 2

Change directories to $ZENDINSTALL/data

Symlink or Rename the directory

4_3_0_comp to 4_3_1_comp

ala

mv 4_3_0_comp 4_3_1_comp (or ....)
ln -s 4_3_0_comp 4_3_1_comp

at this point you can now run
$ZENDINSTALL/install
and it should work fine....
thanks to SecuMonger

Regards
 

Altco

Registered
Mar 8, 2003
4
0
151
Another option is to run

./instal.sh

go through the options and when it asks you to verify 4.3.0 put cancel and manually put 4.3.1 and finish the installer. Remember to restart apache :)