Solution for failure in configuring PHP Apache Optimizer in Windows

Source: Internet
Author: User
Tags php file phpinfo zend
Last night, PHP 5.0.5 and Apache 2.0.54 [listening port 8088] were installed in Windows XP Professional [with IIS].
When installing the Discuz Forum today, Zend-Optimizer is required to support encrypted php files.
Download to the Win32 installation file of Zend-Optimizer 2.5.7.
The installation started smoothly.
The paths selected by Apache Root and php. ini are:
E:/Program Files/Apache Group/Apache2
E:/PHP5
However, when Apache needs to be restarted later, the restart fails. manually restart. prompt that the installation is successful. but in phpinfo. php check, it is found that Optimizer is not associated with PHP. the prompt information about Zend is:
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies. There is no Optimizer information. The encrypted file cannot be correctly executed.
I thought it was an Apache restart problem. After repeated tests, I found that Apache is normal. after searching online, no related solutions were found. then I suddenly thought that I copied a Php file. the INI file is under the C:/Windows directory. Check whether the INI file is actually used.
Try to reinstall Optimizer. Select C:/Windows in the INI file path or manually restart Apache.
Check phpinfo. php after installation. The Zend prompt is
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies.
With Zend Extention Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies
With Zend Optimizer v2.5.7, Copyright (C) 1998-2004, by Zend Technologies
Optimizer is successfully installed and the Discuz encrypted file is normal!
Conclusion: when Optimizer is installed, php. the INI file must be installed in the Windows directory. in fact, it prompts C:/Windows during installation, but you did not pay attention to it, resulting in installation failure.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.