Home >Backend Development >PHP Tutorial >PHP 5.3.x installation under Windows Zend Guard Loader tutorial, 5.3.xzend_PHP tutorial
Starting from PHP5.3, if you want to support ZendGuard encrypted PHP code, you must install Zend Guard Loader. The old zend optimizer will not be supported. In addition, Zend Guard Loader only supports the Non Thread Safe version of PHP.
Download extension:
http://www.zend.com/en/products/guard/downloads
Install extension:
Append in php.ini:
Restart the web server (IIS/Nginx)
Run phpinfo() and you will see the following information:
There are two ways to install PHP under Windows: manual installation or installation using the installer.
According to the official PHP manual, the best option for installing PHP is to install it manually.
The best way to install PHP in a manual installation is to put all PHP-related files into the same directory and set this directory in the system's PATH environment variable.
The manual installer for PHP can be downloaded at www.php.net/downloads.php. Click on the PHP 5.2.5 zip package to download.
The following describes the manual installation steps of PHP:
Step 1: I directly unzipped it and put it in the PHP directory on the d drive, which will make it much easier to find files. After decompression, my PHP directory is d:\PHP.
Step 2: Add the PHP directory to the PATH environment variable,
(My Computer->Properties->Advanced->Environment Variables->System Variables-> ;Find the path variable, click edit and add d:\php; which is the path where you installed PHP. Note that there is a ";" half-width semicolon between each variable. If there is no semicolon in front, please add it. . ->Confirm all the way)
Step 3: Set up a valid configuration file for PHP, php.ini.
There are two ini files in the ZIP package, php.ini-dist and php.ini-recommended.
It is recommended to use php.ini-recommended as performance and security are optimized in this file.
Rename D:\PHP\php.ini-recommended to D:\PHP\php.ini .
Open php.ini with Notepad, find register_globals = Off, and change off to On. This can generally solve the problem of blank spaces when running the installation forum.
Look for short_open_tag = Off and change off to On.
Look for extension_dir = "./" and change it to extension_dir = "d:\PHP\ext"
(Specify the directory of the dynamic link library. The difference between php5 and php4 is its dynamic link library directory. Changed, this is explained in detail in its document structure)
Then search for;extension=php_mbstring.dll, and remove the semicolons in front of the following sentences
extension=php_mbstring. dll If you don’t select this, a red prompt will appear when using phpMyAdmin
extension=php_gd2.dll If you support the GD library, you usually need to drop
extension=php_mysql.dll If you support MySQL
Next, I modified some files Maximum upload and memory usage limit:
memory_limit = 20M Memory capacity
post_max_size = 20M Flash memory capacity
upload_max_filesize = 20M Attachment capacity
Please modify the above three places according to your actual needs
No other changes, save and exit.
Next, to make the php.ini file used by PHP under Windows (this is very important, otherwise your php.ini will not be recognized and loaded by the system), you only need to add a PHPRC environment variable, The steps are as follows
My Computer-> Properties-> Advanced-> Environment Variables-> System Variables-> In the "System Variables" column
Click the "New" button-> ......The rest of the full text>>
The Zend guard loader 5.5 you mentioned was downloaded from www.zend.com/en/products/guard/downloads. Mine is the same. I can install it. I do need a non-thread-safe version of PHP to install zend. guard loader, I tried it myself. I seem to have seen the safe version of PHP installation method online, but the configuration is not as follows. The following is for php5.3 nts,
Put ZendLoader.dll into the c:\php\ext folder. My php is in c:\php, add the following at the end of php.ini,
[Zend.loader]
zend_loader.enable=1
zend_loader.disable_licensing=1
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
zend_extension="C:\php\ext\ZendLoader .dll"
Restarting IIS should be enough.