Building the PGO-optimized version of PHP is a simple and straightforward process, however it does require a software developer with a solid understanding of setting up software, dealing with .zip files, modifying the PATH, and a general comfort working in the command line environment.
This walkthrough assumes that the reader has these skills, and does not attempt to clutter the process by getting into unnecessary detail.
While this walkthrough was built assuming that the requisite tools are installed in their default or recommended locations, the scripts and tools are somewhat flexible, and can be made to work with environments that don’t quite match.
instantclient-sdk-win32-10.2.0.3-20061115.zip
and instantclient-sdk-win32-11.1.0.7.0.zip
For those interested, the source code for the PGOKit utilities can be found on CodePlex : http://gsToolkit.codeplex.com
c:\program files\MySQL
. You DO NOT need to run it as a service, the PGO build script can start and stop MySQL as needed. If you download the zip file, unpack it into c:\program files
and rename the directory to MySQL
(it will by default have the version number in the directory name).c:\php-sdk
c:\UnifiedBuild
Libraries\SpecialCases\binaries
directoryC:\UnifiedBuild\Libraries\SpecialCases\binaries\instantclient-sdk-win32-10.2.0.3-20061115.zip C:\UnifiedBuild\Libraries\SpecialCases\binaries\instantclient-sdk-win32-11.1.0.7.0.zip
Microsoft Windows SDK v6.1\CMD Shell
At the command line type:
c:\> setenv /x86 /release Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v6.1. Targeting Windows Server 2008 x86 RELEASE c:\>
The OptimizedBuild.js
script handles the entire build process end-to-end.
From the SDK shell, you can switch into your work directory and just type
OptimizedBuild.js
from the command line, and it will build the whole thing.
For additional functionality of the optimized build script, see optimized build script
c:\program files\MySQL
. You DO NOT need to run it as a service, the PGO build script can start and stop MySQL as needed. If you download the zip file, unpack it into c:\program files
and rename the directory to MySQL
(it will by default have the version number in the directory name).c:\php-sdk
c:\UnifiedBuild
Libraries\SpecialCases\binaries
directoryC:\UnifiedBuild\Libraries\SpecialCases\binaries\instantclient-sdk-win32-10.2.0.3-20061115.zip C:\UnifiedBuild\Libraries\SpecialCases\binaries\instantclient-sdk-win32-11.1.0.7.0.zip
Microsoft Windows SDK v6.1\CMD Shell
At the command line type:
c:\> setenv /x86 /release Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v6.1. Targeting Windows Server 2008 x86 RELEASE c:\>
The OptimizedBuild.js
script handles the entire build process end-to-end.
From the SDK shell, you can switch into your work directory and just type
OptimizedBuild.js
from the command line, and it will build the whole thing.
For additional functionality of the optimized build script, see optimized build script