how to install zend optimizer?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

how to install zend optimizer?

Postby hanpedro » 31. August 2005 03:33

I wanto to install zend on my linux box.
how to install zend ?

Which directory should I copy the zend?
hanpedro
 
Posts: 134
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Postby Kristian Marcroft » 31. August 2005 07:35

Hi,

try reading the README file that comes with Zend.

So long
KriS
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby hanpedro » 31. August 2005 09:06

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?
hanpedro
 
Posts: 134
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Postby Kristian Marcroft » 31. August 2005 09:21

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
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby hanpedro » 31. August 2005 10:02

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`;" ??
hanpedro
 
Posts: 134
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Postby Kristian Marcroft » 31. August 2005 10:15

Hi,

no thats not it.

So long
KriS
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby hanpedro » 31. August 2005 14:09

Dear Kris,

Could you teach me the path of "the path in the install Script"?
hanpedro
 
Posts: 134
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Postby Kristian Marcroft » 31. August 2005 14:19

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
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby Wiedmann » 31. August 2005 14:26

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby hanpedro » 31. August 2005 14:57

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.
hanpedro
 
Posts: 134
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Postby Wiedmann » 31. August 2005 15:07

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby hanpedro » 31. August 2005 15:51

Dear Wiedmann,

Thanks, thanks.

I'm just in install screen!!

After installing, I'll post it here immediatedly anyway.
hanpedro
 
Posts: 134
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Postby hanpedro » 31. August 2005 16:01

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?
hanpedro
 
Posts: 134
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Postby Wiedmann » 31. August 2005 16:18

You have enabled the Optimizer in "php.ini"?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby hanpedro » 31. August 2005 16:39

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
"
Last edited by hanpedro on 31. August 2005 18:15, edited 2 times in total.
hanpedro
 
Posts: 134
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Next

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 18 guests