Page 1 of 2

yum install php-zend-optimizer

Posted: Thu Apr 21, 2011 7:39 pm
by pmeth
When I try to install zend optimizer I get:

Code: Select all

yum install php-zend-optimizer
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * atomic: www5.atomicorp.com
 * base: mirror.team-cymru.org
 * extras: mirror.steadfast.net
 * updates: mirror.team-cymru.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-zend-optimizer.x86_64 1:3.3.9-2.el5.art set to be updated
--> Processing Conflict: php conflicts php-zend-optimizer
--> Finished Dependency Resolution
php-5.3.6-3.el5.art.x86_64 from installed has depsolving problems
  --> php conflicts with php-zend-optimizer
Error: php conflicts with php-zend-optimizer
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
CentOS release 5.6

Any idea of how to resolve this?

Re: yum install php-zend-optimizer

Posted: Thu Apr 21, 2011 9:48 pm
by scott
Unfortunately Zend dropped support for 5.3, they have a new project now called zend guard. I believe it requires a key to use

Re: yum install php-zend-optimizer

Posted: Fri Apr 22, 2011 2:11 am
by lvalics
Then is better to not upgrade php to 5.3 yet :-)

Re: yum install php-zend-optimizer

Posted: Fri Apr 22, 2011 1:32 pm
by hostingguy
we updated and so far no one has noticed or cared that zend optimizer is no longer there.

Re: yum install php-zend-optimizer

Posted: Sat Apr 23, 2011 4:03 pm
by faris
Yeah, I think I posted about this elsewhere but I can't find the post on here.

If you have any apps that required Zend Optimizer under <5.3 solely in order to run encrypted php apps, there's a free download for 5.3 that will restore this functionality. I thought it was called ZendGuard, but if that does need a paid-for key then I'm not sure of my facts anymore.

But I doubt Zend would expect anyone just wanting to run encrypted code to have to buy a key - lots of commercial scripts (used to) use Zend encryption.

Re: yum install php-zend-optimizer

Posted: Sat Apr 23, 2011 4:33 pm
by hostingguy
Maybe SourceGuardian? Or is that something else?

Re: yum install php-zend-optimizer

Posted: Sat Apr 23, 2011 8:15 pm
by pmeth
I briefly looked into it and it does seem that the product is called Zend Guard and there is a download that lets you run encrypted code for free. The only thing is it looked like they want you to install zend server to get it. I assume that is basically just php bundled with some other stuff, but I don't know enough about it to risk installing. When atomicorp puts it in their repo and gives the all clear, i'll probably do it.

Re: yum install php-zend-optimizer

Posted: Sat Apr 23, 2011 8:49 pm
by scott
Wait really? all of zend server is required, thats insane!

Re: yum install php-zend-optimizer

Posted: Sat Apr 23, 2011 11:08 pm
by pmeth
Sorry. I was wrong. There is a separate "runtime loader" for php 5.3. They don't make it very obvious on their website. I guess they really want to push their server.

Anyhow, the product is called Zend Guard Loader (Runtime for php 5.3)
You can get the Linux 64 bit version from here:
http://www.zend.com/en/download/418

Re: yum install php-zend-optimizer

Posted: Tue Apr 26, 2011 12:11 pm
by hostingguy
it looks like they revised their license to allow others to bundle and distribute it as well.

Re: yum install php-zend-optimizer

Posted: Tue Apr 26, 2011 2:45 pm
by scott
Yup! Package (php-zend-guard-loader) was just pushed out to the mirrors. I'll do an announcement on it shortly

Re: yum install php-zend-optimizer

Posted: Tue Apr 26, 2011 6:12 pm
by breun
I believe that apps encoded for Zend Optimizer are not compatible with Zend Guard Loader, people will need to get new versions of their apps that are encoded for Zend Guard Loader. At least, that's what I gathered, I haven't tested this yet.

Re: yum install php-zend-optimizer

Posted: Sun May 01, 2011 6:41 am
by KrazyBob
Gotta make this tough on the new kid -- sheez. Trial by fire!

Which do I need to load?

Code: Select all

yum upgrade -y
...
-bash-3.2# php -v
PHP 5.3.6 (cli) (built: Apr 19 2011 13:21:12) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

-bash-3.2# yum list php-zend-*
php-zend-guard-loader.x86_64                               5.5.0-2.el5.art                                 atomic
php-zend-optimizer.x86_64                                  1:3.3.9-2.el5.art                               atomic

Re: yum install php-zend-optimizer

Posted: Sun May 01, 2011 6:44 am
by breun
Zend Guard Loader for PHP 5.3+, Zend Optimizer for older versions of PHP.

If you're using encoded applications, they'll need to be compatible with the loader you installed. I'm not sure if Zend Guard Loader does anything useful if you're not using encoded applications.

Re: yum install php-zend-optimizer

Posted: Sun May 01, 2011 6:48 am
by KrazyBob
Well, when I try to install optimizer it borks with unresolved deps. I haven't tried Guard yet because mySQL is having a bad day...