PDA

View Full Version : Zend not installed error, when it is


mecnetadmin
08-22-2006, 11:58 AM
Hi,

Does anyone know why the zend optimizer not installed error would condintue to come up in a new install even when it IS installed:

[root@coldfusion calendar]# php --version
PHP 4.3.9 (cgi) (built: Jun 26 2006 09:46:03)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies
with Zend Optimizer v3.0.1, Copyright (c) 1998-2006, by Zend Technologies


Thanks,

Dave Cunningham
Systems Administrator
MECnet

MIB
08-22-2006, 05:36 PM
Hi,
I tried to install the Zend Optimizer 3.0.1 on MAC and run to trouble. For some reasons the installer did not launch. So switch to terminal and try to install it. The terminal keep asking me for the Php.ini and I could not fine this file on the the package that come with the Zen Optimizer.

I am using Darwin mac with server 10.4. I appreciate any help.
thanks
--
M.B
University of Minnesota.
612-626-8603

Brian
08-22-2006, 06:23 PM
Did you try the Zend web site for support? (We can't really help with the configuration of your server.)

kcolbe01
09-01-2006, 01:55 PM
Hi,

I had re install my calendar because I just brought my version 6 and when I had re install it on my server I got an error like this Fatal error: Incompatible file format: The encoded file has format major ID 2, whereas the Optimizer expects 1; The encoded file was probably encoded by the Zend Guard for PHP 5 (zendenc5), and therefore cannot be run on PHP 4 in /home/stepecom/public_html/calendar/setup/index.php on line 0
It was working fine so I don't know what happen. I was trying to upgrade my lincense to put in my order number in so that didn't work that's why I re install my stuff and now I got the error can you help me out?

Fatal error: Incompatible file format: The encoded file has format major ID 2, whereas the Optimizer expects 1; The encoded file was probably encoded by the Zend Guard for PHP 5 (zendenc5), and therefore cannot be run on PHP 4 in /home/stepecom/public_html/calendar/setup/index.php on line 0
My web server told me to contact you if I had this error so that's what i'm doing

Brian
09-01-2006, 04:01 PM
You're using the wrong calendar files for your server. Please download the execute the tester script from the Free Download page which will provide links to the files that are compatible with your server.

flotsam
09-22-2006, 06:02 AM
Don't know if this is your situation, but it may be for others...

A few hosting companies disable phpinfo() due to some security issues. I do that on my servers, and enable it just for deugging.

The "tester" utility uses phpinfo to detect Zend, and will falsely report that Zend is not installed if phpinfo is disabled in the server's php.ini.

I enabled phpinfo, restarted Apache, verified the Zend was found by tester/index.php, installed the calendar scripts, and then disabled phpinfo (and restarted Apache) -- everything seems to work fine.

(I didn't test installing the calendar with phpinfo disabled...)

Hope this is useful to someone.

Bill

[edit: I just tested installing with phpinfo disabled -- worked fine.]

Brian
09-22-2006, 09:55 AM
Don't know if this is your situation, but it may be for others...

A few hosting companies disable phpinfo() due to some security issues. I do that on my servers, and enable it just for deugging.

The "tester" utility uses phpinfo to detect Zend, and will falsely report that Zend is not installed if phpinfo is disabled in the server's php.ini.

I enabled phpinfo, restarted Apache, verified the Zend was found by tester/index.php, installed the calendar scripts, and then disabled phpinfo (and restarted Apache) -- everything seems to work fine.

(I didn't test installing the calendar with phpinfo disabled...)

Hope this is useful to someone.

Bill

[edit: I just tested installing with phpinfo disabled -- worked fine.]

Do you see an error when trying to use phpinfo() if it's disabled? (What is it?) Maybe I can check for this in the tester script.

flotsam
09-22-2006, 10:26 AM
If I stick phpinfo() in a blank php page, I get "Warning: phpinfo() has been disabled for security reasons in /home/xxxxx/public_html/phpinfo.php on line 14"

In the php.ini file, I found ; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions = ..., shell_exec, passthru, exec, phpinfo, ...

I edited the last line to get tester to correctly validate the Zend optimizer.

Brian
09-22-2006, 05:37 PM
Thank you for the information. :)

jeffkas
10-09-2006, 06:23 PM
Hi,

I am experiencing the same problem as mecnetadmin. When I run the calendar script it says 'Zend Optimizer not installed.' However, the tester script and demo ran fine and when I contacted my web host, they said Zend Optimizer 3.0 is installed. If someone could steer me in the right direction as to a solution to this problem I'd really appreciate it. I'm looking forward to using the calendar. Thanks.

Brian
10-09-2006, 09:36 PM
I don't know why this would be. Can you open a support ticket so we can try to determine why this is occurring?

jeffkas
10-11-2006, 02:35 PM
It turns out the problem I had had something to do with my host, not the calendar. Sorry. Everything is working well now

jer2eydevil88
10-31-2006, 01:26 PM
I have the same problem as the OP.

When I SSH into my box and follow his command

root@ip-208-109-22-149 [~/zend]# php --version
PHP 5.1.4 (cli) (built: Jul 7 2006 10:42:19)
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.2, Copyright (c) 1998-2006, by Zend Technologies

I fail for both the tester and the installation script. When I run PHP Info I get the following for the path of php.ini
/usr/local/Zend/etc/php.ini

I am willing to MSG my full php.info document to Brian or another admin if he is willing to review it.

flotsam
10-31-2006, 01:41 PM
Edit your php.ini file, and find the line starting "disable_functions ="

If the line has "phpinfo" in it, that's likely the problem.

Remove the "phpinfo" from that line, restart apache, and see if it will work. Did for me. Then you can re-edit the php.ini file and add it back if you want -- seems to be needed only for the install.

jer2eydevil88
10-31-2006, 01:45 PM
The line is as stated

disable_functions =

There is nothing defined, is there any other place it might be modded out?

I installed zend and it said it was succesful, it appears to have been successful seeing as the php.ini file is located in the zend folder. I was not able to rectify the problem by restarting apache, Zend offers no support at all so I have been asking on IRC but no one has any idea.

flotsam
10-31-2006, 02:03 PM
Sorry -- That's the extent of my knowledge and experience.

jer2eydevil88
10-31-2006, 02:15 PM
I have to be somewhere from 2p.m. till around 5p.m. eastern standard. I am very interested in getting a calendar working. If the developers here can recommend an IRC channel or anything of a more instant type of communication please PM me.

I am also investigating some other software packages which are currently working so its certainly not a server issue, although maybe a configuration issue with Zend since I am new to that.

Brian
10-31-2006, 02:40 PM
Go ahead and install the calendar for the version of PHP you're using and see if it works.

jer2eydevil88
10-31-2006, 03:57 PM
I can't all I get is.

Zend Optimizer not installed

This file was encoded by the Zend Encoder (http://www.zend.com/store/products/zend-encoder.php) / Zend SafeGuard Suite (http://www.zend.com/store/products/zend-safeguard-suite.php)
In order to run it, please install the freely available Zend Optimizer (http://www.zend.com/store/products/zend-optimizer.php), 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 (http://www.zend.com/). Zend Technologies is the company that develops the scripting engine of PHP, also known as the Zend Engine (http://www.zend.com/store/products/zend-engine.php).


Check it out if you want.
http://www.sigmanuetalambda.org/calendar/setup/install.php

Brian
10-31-2006, 04:04 PM
Can you open a support ticket so we can walk through some things to see if we can get this to work?

aaronsnet
01-30-2008, 03:37 PM
The demo works great, but when I try to include the file in another PHP file using:


$LIST=1;
$DF = "D - M d";
$template="monthly.php";
require ("calendar/calendar.php");



I get the error:

Zen Optimizer is not installed on this server. Any suggestions?

Brian
01-30-2008, 09:44 PM
(Did you mean to start a new thread? This one is from 2006...)

Can you provide a link?

ve9gra
01-31-2008, 08:38 AM
Usually, if the demo is working, but when trying to include it somewhere else, you usually have your own php.ini that overrides settings provided by the server's php.ini. Either delete it, or contact your host to know what it is you need to add to it to make it work.

MasterPA2
02-15-2008, 03:50 PM
I am having the same issue. The calendar works when it is called from a file that is within the calendar folder. The calendar does not work when it is called from another directory. I am getting the message that ZendOptimizer is not installed. It does not seem to be a problem with Zend Optimizer or my directory path structure. If it were Zend, then I would not be able to view the calendar at all. I have tried all of the suggestions posted in all of the threads. There is something else going on here. Thanks for your assistance.

Brian
02-15-2008, 04:36 PM
This question is best asked of your web host provider since they should know the configuration of the server and the way to make this work.