Datasheet
P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Getting Up and Running
If you install the packages in the order listed previously, you should find that all the prerequisite files are
installed in the necessary order.
Installing PHP5 by Compiling from Source Files
The installation method we’ll use for installing PHP5 on Red Hat Fedora running Apache is downloading
the source files and compiling them. You use command-line commands in Linux, but also make use of
some of the visual tools (such as Konqueror) included in your Red Hat installation. If you are running
Linux visually (for example, with KDE), you get to the command prompt by going to the Red Hat button,
and then choosing System Tools
➪ Terminal. Figure 1-1 shows the terminal window you’ll see.
Figure 1-1
You must have a compiler installed (an ANSI C compiler). Sometimes such a compiler is installed as part
of your Linux installation, but if you need one, a good one (and free), named gnugcc, can be found at
www.gnu.org. Figure 1-2 shows the GNU Web site.
And Figure 1-3 shows a bit of the documentation for GCC.
With your compiler installed, download the source file from www.php.net. This file is archived as a tar
file and compressed with gzip, so you will need to uncompress it. There is also a .bz2 file you can
download, but you need only one of these files—either the gzip or a .bz2 file.
9