Problem with Php5.1.4 and Zend3.0.0 !!

OmaniMan

Member
Feb 12, 2004
14
0
151
Hello all ...
Before a few days ... after I upgraded the Kernel successfully to the latest version ... but I found that GD wasn't working after upgradion ..

After that ... I told the data center to recompile the GD with php again and they did .. and GD library works fine after that 100% ...

But ..

On the forum site .. before the Datacenter recompile GD with PHP .. the encoding config.php that encoded by :
Zend Safe Suite v3.6

was working fine with :
Zend Optimizer v2.6.2

But after recompiling ...
It isn't working ... then I run the installation of Zend again in Shell and it upgrades to 3.0.0 .. just before a few minutes ...

Still encoding file not working !
Zend Optimizer not installed
This file was encoded by the Zend Encoder / Zend SafeGuard Suite

In order to run it, please install the freely available Zend Optimizer, version 2.1.0 or later.

What is the Zend Optimizer?
The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been freely available since the early days of PHP 4. It improves performance by taking PHP's intermediate code through multiple Optimization Passes, which replace inefficient code patterns with efficient code blocks. The replacement code blocks perform exactly the same operations as the original code, only faster.

In addition to performance-improvement, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Encoder or Zend SafeGuard Suite.

The Zend Optimizer is a freely-available product from Zend Technologies. Zend Technologies is the company that develops the scripting engine of PHP, also known as the Zend Engine
It said it's not installed !

But look here (php -v) :
PHP 5.1.4 (cgi) (built: Jul 8 2006 11:20:36)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies
with Zend Optimizer v3.0.0, Copyright (c) 1998-2006, by Zend Technologies
What is problem ?
 

OmaniMan

Member
Feb 12, 2004
14
0
151
Look dear :
[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.0.0
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.0.0
zend_optimizer.version=3.0.0
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
 

OmaniMan

Member
Feb 12, 2004
14
0
151
Very nice.

However, you didn't say whether you checked for a local php.ini or whether
that's from the global php.ini
from here dear :
/usr/local/lib/php.ini
 

RizyDeWino

Well-Known Member
Aug 1, 2005
74
0
156
Planet Earth
I got this same error fixed but recompiling php without selecting the versioning option. Found this solution on a forum and it worked perfectly.
 

OmaniMan

Member
Feb 12, 2004
14
0
151
RizyDeWino said:
I got this same error fixed but recompiling php without selecting the versioning option. Found this solution on a forum and it worked perfectly.
Can you copy the link of the solution here dear ... ?
 

iCARus

Well-Known Member
Apr 8, 2003
113
0
166
To solve this mistery just compile latest PHP without "versioning". We had to do with all our server and with latest 3.0.1 Zend and everything is working great.

Try.
 

OmaniMan

Member
Feb 12, 2004
14
0
151
iCARus said:
To solve this mistery just compile latest PHP without "versioning". We had to do with all our server and with latest 3.0.1 Zend and everything is working great.

Try.
Can you give an example dear ... Iam really confuse ?
 

dreamwiz

Well-Known Member
Aug 28, 2003
93
0
156
OmaniMan said:
Can you give an example dear ... Iam really confuse ?
Make the following file under your public_html:

pico -w

<?
phpinfo();
?>

CTRL-X, y, phpinfo.php

go to yourdomain.com/phpinfo.php

You see ./configure etc... as the first thing. Copy that line when you are re-compiling your PHP, just remove --enable-versioning.

http://se.php.net/install
 

OmaniMan

Member
Feb 12, 2004
14
0
151
dreamwiz said:
Make the following file under your public_html:

pico -w

<?
phpinfo();
?>

CTRL-X, y, phpinfo.php

go to yourdomain.com/phpinfo.php

You see ./configure etc... as the first thing. Copy that line when you are re-compiling your PHP, just remove --enable-versioning.

http://se.php.net/install
Really thanks dear ..
I'll test it tomorrow ... I need to sleep now :D
 

iCARus

Well-Known Member
Apr 8, 2003
113
0
166
When you run /scripts/easyapache then you under PHP untick sellection where is made for Versioning.

Even if you do update over WHM just untick Versioning and you should be fine.
 

gemby

Well-Known Member
PartnerNOC
Feb 16, 2002
182
0
316
Pula, Croatia
cPanel Access Level
DataCenter Provider
Yes, this problem is here for a while now, i solved it by changing:

my $ver = '3.0.0';

to

my $ver = '3.0.1';

End running /scripts/installzendopt

Btw, zend 3.0.1 is from may this year, so it is not new at all.
 

jamesbond

Well-Known Member
Oct 9, 2002
738
1
168
Isn't 'versioning' only needed if you want to run two versions of PHP on 1 server (PHP4 and PHP5 for example) ? Or does it have any other purposes also?
 

DigitalN

Well-Known Member
Sep 23, 2004
420
1
168
You don't want versioning in php5, with Zend installed.

If you run php4 + php5 as apache modules, then you have to have versioning compiled in, else you get a glibc error and apache won't start. As far as my expreience goes, that's the case.

So, then with versioning support compiled into php5, Zend won't work as expected.
 

ashketchum

Member
Dec 8, 2006
9
0
151
Just wanted to let everyone know that it worked for me too. I dont know why I turned Versioning on. I think I must have seen it somewhere before. LOL! Anyway, Zend Optimizer and ioncube loaders are working fine now.:)
 

yanayun

Member
May 14, 2005
23
0
151
When you run /scripts/easyapache then you under PHP untick sellection where is made for Versioning.

Even if you do update over WHM just untick Versioning and you should be fine.
disable Versioning not affect, Zend optimize still not active with php.ini in home folder.
 

yanayun

Member
May 14, 2005
23
0
151
i was try install php 5.2.3 and php 4.4.7
disable versioning can't resolve this problem.

Please tell me your configuration with success installation :

My configuration below, please review:

Expires Module
Raise FD_SETSIZE to 16384 (System Wide)
Prevent Users from reading other webroots
Frontpage Module
Gzip Module (experimental) (Version 1.3.26.1a)
Raise HARD_SERVER_LIMIT
Php Module


Bc Math
Calendar Support
Curl (Version 7.15.3)
Curl SSL Support (Version 2.8.28)
FTP
GD (Version 2.0.15)
GetText
Imap Module (Version 2004g)
Mb String
Mcrypt (Version 2.5.7)
Mhash (Version 0.8.18)
Magic Quotes
Mysql Module
Openssl Support
Discard Path
Pear
Sockets
Track Vars
Freetype Support
Zlib