- 1 Vapor IO Brings OpenDCRE to General Availability
- 2 VMware Takes the Wraps Off vRealize Automation and vRealize Business
- 3 Microsoft Previews Hyper-V Containers for Windows Server 2016
- 4 Mirantis Led FUEL Project Gets Installed Under OpenStack Big Tent
- 5 Red Hat Enterprise Linux 7.2 Adds Security, DR Features
PHP on Apache: The Definitive Installation Guide Page 2
Since you'll need to compile the PHP software yourself (few binaries are readily available, and those are feature-limited and built with very few extensons), and since it's an Apache module, you need to have the complete Apache source tree available. If you install the Apache software using a package provided as part of your Linux distribution, it's possible you won't have the source tree, so you'll need to download it and unpack it. See the "Building Apache at Lightspeed" appendix at the end of this article.
How to Get PHP
PHP is open-source software, which means (among other things) that there are source code as well as binary versions available. As with a lot of open-source software, development on PHP is rapid enough that any attempt to put it on a CD or otherwise package it on a long-term distribution medium suffers from the "instantly stale" syndrome.
In other words, the place to get the PHP software is the Internet itself. There are multiple Web sites devoted to the PHP project, but the main one is http://www.php.net/, and most of the others are reachable from there.
There are two ways of keeping up with the PHP project as its development continues:
- Periodically download a tarball of a packaged release, or
- Keep up with the very latest developments by keeping a synchronised copy of the master sources
In order to use PHP, you're going to need to build it, which means being
familiar with the usual software development tools: a shell,
make, and so on.
The currently stable version of PHP is version 3. Its successor, version 4, is currently under development and there have been a few beta releases already. However, the version used in this column is the more wide-spread V3, and the instructions are specific to that version; they may or may not work with V4.
Getting the Most Recent Release
If you're afraid of warts and glitches that might lurk in the latest development version, updating only when a stable release is made is probably best. Of course, there are disadvantages inherent in playing it safe--such as not getting the latest bug fixes or feature additions, or the added pain of having to build the new version in a separate directory tree and then switch over from the old one to the new.
The easiest way to download a release tarball to your Linux system is to use a Web browser running on that system and visit http://www.php.net/downloads.php3, choose the appropriate package and save it. (It's not readily available in any other way; for instance, it's not accessible from the PHP site using FTP.)
Keeping Up with the Bleeding Edge
To really keep up with the very latest bug fixes (and bugs) in the
latest development version, you'll need to have access to the Internet, a CVS
client, and some development tools like
bison. Just download the latest
revision of all of the sources (the latest version is called the
"HEAD") into your working directory, and then build it as though it
was extracted it from a release tarball. The following shows how:
% cvs -d :pserver:firstname.lastname@example.org:/repository login (Logging in to email@example.com) CVS password: use "phpfi" as the password % cd ./php % cvs -d :pserver:firstname.lastname@example.org:/repository checkout php3