|
Enabling Zend Optimizer in XAMPP |
|
If you are using XAMPP, you may simply uncomment some lines in a couple files to enable the Zend Optimizer. If you are unsure if you are using XAMPP then you are probably not and can ignore this.
XAMPP has 2 php.ini files, one in apache\bin and another in php. These are under XAMPP's folder, usually in C:\Program Files\xampp. Locate the one in apache\bin and double-click on it. This should bring up notepad with php.ini

Scroll down to the bottom of the file and you will see a [Zend] section. That will look something like this:
;[Zend]
;zend_extension_ts = "C:\Program Files\xampp\..."
;zend_exteionsion = "C:\Program Files\xampp\..."
;zend_extension_manager.optimizer_ts = "C:\Program Files\xampp\..."
;zend_optimizer.enable_loader = 1
;zend_optimizer.optimization_level=15
;zend_optimizer.license_path = "C:\Program Files\xampp\..."
Uncomment each line by removing the semi-colon ; at the begining. The result should look something like this:
[Zend]
zend_extension_ts = "C:\Program Files\xampp\..."
zend_exteionsion = "C:\Program Files\xampp\..."
zend_extension_manager.optimizer_ts = "C:\Program Files\xampp\..."
zend_optimizer.enable_loader = 1
zend_optimizer.optimization_level=15
zend_optimizer.license_path = "C:\Program Files\xampp\..."
The paths and file names may vary. Simply remove the semi-colons.
NOTE: In some versions of XAMPP these lines may already be uncommented, however you must change the line:
zend_optimizer.enable_loader = 0
to
zend_optimizer.enable_loader = 1
Next you should do the same thing for the php.ini file located in XAMPP's PHP folder.
Restart Apache using XAMPP's control panel or the Windows Services panel and the Zend Optimizer is now enabled!
|