Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to judge the success of Zend Optimizer installation

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to judge the successful installation of Zend Optimizer". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

Install Zend Optimizer multiple times, try different versions, always fail. I don't know why, because Zend Optimizer installation is too simple:

1-Release compression unpacking;

2-Run the install.sh script and enter the appropriate arguments when prompted, most notably the path to php.ini. Second, if apache is used, enter the path to its control script, since it requires a service restart to take effect.

After installation, check whether Zend Optimizer is installed successfully, write a PHP file, just a statement: phpinfo();, look at the relevant information, just look at

[Copy to clipboard] [ - ]

CODE:

This program makes use of the Zend Scripting Language Engine:

Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension

There is no Zend Optimizer.

After a few days, after the blow in my heart is good, I don't give up looking at phpinfo() and find these two lines very strange.

[Copy to clipboard] [ - ]

CODE:

Configure Command : './ configure' ... ... ...

'--with-config-filepath=/usr/xxx/conf'

... ... ...

Configuration File (php.ini) Path : /usr/xxx/php/lib

The configuration file specified when compiling php is not in the same location as the configuration file displayed now (the actual php.ini is under/usr/xxx/conf, not under/usr/xxx/php/lib). There is hope in the heart immediately, immediately downloaded Zend Optimizer, install, first press php.inf actual location input. Restart the service and observe phpinfo(), no change.

Is it hard to find configuration files under/usr/xxx/php/lib this time? Look at/usr/xxx/conf/php.ini and see that it points to/usr/xxx/Zend/ect/php.ini (which is automatically changed by installing Zend Optimizer). So I made a link.

[Copy to clipboard] [ - ]

CODE:

ln -s /usr/xxx/Zend/etc/php.ini /usr/xxx/php/lib/php.ini

Restart the service, check phpinfo() and find two changes

[Copy to clipboard] [ - ]

CODE:

Configuration File (php.ini) Path /usr/xxx/Zend/etc/php.ini

[Copy to clipboard] [ - ]

CODE:

This program makes use of the Zend Scripting Language Engine:

Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.9, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v2.6.2, Copyright (c) 1998-2006, by Zend Technologies

Zend Optimizer v2.6.2 is finally installed. Since little is known about PHP configuration, I don't understand why.

"How to judge the successful installation of Zend Optimizer" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report