Last night I installed PHP 5.0.5 and Apache 2.0.54 [listening on port 8088] under Windows XP Professional [with IIS].
Today when installing the Discuz forum, I was asked to install Zend-Optimizer to support encrypted PHP files.
Download to
When installing
the Win32 installation file of Zend-Optimizer 2.5.7
, it started smoothly.The selected paths for Apache Root and php.ini were:
E:/Program Files/Apache Group/Apache2
E:/PHP5.
However, later when Apache needed to be restarted, , the restart failed. Manually restarted. It prompted that the installation was successful. However, when checking in phpinfo.php, it was found that Optimizer was not associated with PHP. The prompt information about Zend is:
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies. There is no information about Optimizer. Encrypted files cannot be executed correctly.
At first, I thought it was a problem with Apache restarting. After repeated tests, I found that Apache was normal. Later, I searched online and found no relevant solutions. Then it suddenly occurred to me that I had copied one before. The Php.ini file is in the C:/Windows directory. I wonder if it is the ini file actually used.
Try reinstalling Optimizer and select C:/Windows for the ini file path. Or restart Apache manually.
After the installation, check phpinfo.php, Zend The prompt information 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
successfully installed Optimizer, executing Discuz to encrypt the file is normal!
Summary: When installing Optimizer, the php.ini file must select the actual one installed in the Windows directory. In fact, during installation, it prompts C: /Windows, but I didn’t pay attention to it, which caused the installation to fail.