I present to your attention a portable build of Apache 2.2 + PHP 4.4.7 for Windows, the advantages of which are:
A full-fledged web server with all the features that Apache provides!
Full PHP interpreter!
Installation is not required, everything is already configured under localhost - unpack the archive and everything is ready for work!
Work from any folder from any media (even CD)!
The fastest server operation with minimum memory load!
Very small size distribution ( 700 kilobytes )!
Features of the assembly is:
Maximum reduction in the size of server executables by compressing with UPX and removing unnecessary resources from them.
The maximum reduction in the size of the distribution by removing additional modules Apache and PHP. The assembly was intended for personal use on a home server, so all libraries and modules were physically removed from it, without which Apache and PHP can function normally (for example, MySQL, etc.) is not supported.
Apache and PHP are configured in such a way that when developing PHP scripts to achieve their maximum correct operation on any systems (E_ALL, safe mode is enabled, global variables are disabled, etc.). Thus, if no errors, warnings and notices appear on my build in your PHP scripts, then you can be congratulated, you can write the most valid and portable scripts by almost 100%.
HTTPd.exe is used to run Apache. If you want the console window to be minimized to tray, then run TrayHTTPd.exe (the console is shown in the context menu with the right button on the tray icon and selecting the “ Apache ... ” item). Apache is terminated to close the console, and this is not the “killing” of the HTTPd.exe process, but the procedure for completing the proper server shutdown.
In order for the assembly to work from media that are not allowed to write, it is necessary to make small changes in bin / php.ini and conf / httpd.conf concerning the correction of paths to temporary folders and logs, for example, in % UserProfile% \ Temp (preferable) or % SystemRoot% \ Temp (not recommended).
Why PHP4, but not PHP5? Because the PHP4 library is almost three times smaller than the PHP5 library. If PHP5 is really needed, copy the php5apache2_2.dll and php5ts.dll files from the Denver folder to the bin folder by uncommenting the corresponding line in httpd.conf and making sure to comment out the PHP4 module connection line.
What may need this handicraft? Personally, I needed to expand the functionality of the home server and automate some functions. To work, I needed some small server with minimal resource capacity, constantly listening to the port. Well, since I love PHP so much, I decided to use it. Alternatively, you can always carry a portable version on a flash drive or burn a project on a CD using PHP. ')
UPD:PHP 5.3.1 separately .