Page 1 of 2

how to install zend optimizer?

PostPosted: 31. August 2005 03:33
by hanpedro
I wanto to install zend on my linux box.
how to install zend ?

Which directory should I copy the zend?

PostPosted: 31. August 2005 07:35
by Kristian Marcroft
Hi,

try reading the README file that comes with Zend.

So long
KriS

PostPosted: 31. August 2005 09:06
by hanpedro
Kristian Marcroft wrote:Hi,

try reading the README file that comes with Zend.

So long
KriS


I read the readme. but it tells "see Zend_Optimizer_User_Guide.pdf".
At "Zend_Optimizer_User_Guide.pdf", I can see this instruction.

UNIX (Linux, Solaris, FreeBSD) & Mac OSX
To install the Zend Optimizer under UNIX or Mac OSX
1. Execute the following command and follow the instructions:
./install.sh
Note Be sure to download the Zend Optimizer version that corresponds
with the platform you use.
2. If you are running under Apache, restart your Apache Web server. For Apache V1.3,
use the commands:
apachectl stop; apachectl start


So, I tried "./install.sh".
Then, the return is "ERROR: Executable file: ./php doesn't exist in ./zui_files"

I tried to move zend to /usr/local/zend, and /opt/lampp/zend.
But I got same results.

What am I missing?

PostPosted: 31. August 2005 09:21
by Kristian Marcroft
Hi,

the install Script is looking for php in /usr/bin/php but thats not where it is.
It's in /opt/lampp/bin/php

So you must either change the path in the install Script or try a symlink.

So long
KriS

PostPosted: 31. August 2005 10:02
by hanpedro
Thanks Kris for your kind answer.

About the path,
I think
"MYUID=`/usr/xpg4/bin/$ID 2>/dev/null`;"

Can I change this into
"MYUID=`/opt/lampp/xpg4/bin/$ID 2>/dev/null`;" ??

PostPosted: 31. August 2005 10:15
by Kristian Marcroft
Hi,

no thats not it.

So long
KriS

PostPosted: 31. August 2005 14:09
by hanpedro
Dear Kris,

Could you teach me the path of "the path in the install Script"?

PostPosted: 31. August 2005 14:19
by Kristian Marcroft
Hi,

no I'm sorry, but I currently do not have access to a Zend Optimizer install Script.

But in the readme there is also another way explained on how to install.
This "the hard way"... at least I remember it beeing in the README.

So long
KriS

PostPosted: 31. August 2005 14:26
by Wiedmann
So, I tried "./install.sh".
Then, the return is "ERROR: Executable file: ./php doesn't exist in ./zui_files"

How did you extract the Zend Optimizer install archive?

Because the file "php" must be in the directory "zui_files", and the x-bit flag must be set on this file.

PostPosted: 31. August 2005 14:57
by hanpedro
Dear Wiedmann,

I extracted in my window machine, and upload fedora 3 machine.

Is this correct command for extracting zend archive?
" tar -zxvf "

I'll upload zend.tar to fedora machine, and try to install again.

PostPosted: 31. August 2005 15:07
by Wiedmann
I extracted in my window machine, and upload fedora 3 machine.

That was not a good idea ;-)

Is this correct command for extracting zend archive?
" tar -zxvf "

yes

IMHO that's almost the right way to extract tar archives.

PostPosted: 31. August 2005 15:51
by hanpedro
Dear Wiedmann,

Thanks, thanks.

I'm just in install screen!!

After installing, I'll post it here immediatedly anyway.

PostPosted: 31. August 2005 16:01
by hanpedro
Dear Wiedmann,

After installing, at phpinfo, I can see
"
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies ".

But, when I call my program using zend optimising, I see this message;

"Zend Optimizer not installed"

What am I missing?

PostPosted: 31. August 2005 16:18
by Wiedmann
You have enabled the Optimizer in "php.ini"?

PostPosted: 31. August 2005 16:39
by hanpedro
Dear Wiedmann,

I have got the settings for zend in php.ini as follows;

[Zend]
zend_optimizer.enable_loader = 1
zend_optimizer.optimization_level=1023
zend_extension="/opt/lampp/zend2510a/lib/ZendExtensionManager.so"
zend_extension_ts="/opt/lampp/zend2510a/lib/ZendExtensionManager.so"
zend_extension_manager.optimizer_ts="/opt/lampp/zend2510a/lib/ZendExtensionManager_TS.so"zend_optimizer.license_path="\xampp\licenses\zendOptimizer\license.txt"

I have installed
/opt/lampp/zend2510a

After this, when I typed " /opt/lampp/lampp restart", I met;
"
PHP Fatal error: [Zend Optimizer] Extension "Zend Optimizer" cannot be loaded twice in Unknown on line 0
Syntax error on line 1147 of /opt/lampp/etc/httpd.conf:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration
"