PHP on Apache: The Definitive Installation Guide Page 2
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
IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD
Which topic are you interested in?
What is your company size?
What is your job title?
What is your job function?
Searching our resource database to find your matches...