the Web Server item. To add PHP support and PHP MySQL libraries, click on the
Details link on the right and select the packages “php” and “php-mysql”
from the list;
you should see something similar to Figure 2-6. Once you’ve done this, return to the package-selection list and select (put a checkmark) next to the MySQL Database item.
As before, click on the Details link and ensure the “php-mysql” package is selected.
If you already have a running Linux installation, you can use the rpm
command to check whether MySQL, Apache (known as
httpd), and PHP are already installed
rpm -query --whatprovides mysql php php-mysqlmysql-5.0.22-1.FC5.1
mysql-server-5.0.22-1.FC5.1
httpd-2.2.0-5.1.2
php-5.1.4-1
php-mysql-5.1.4-1
If, as in this example, all the necessary
packages are installed, you can simply skip to
“Configuring a Newly Installed Server later in this chapter.
If the packages aren’t present, you’ll see messages like this:
no package provides php
Figure 2-5. Red Hat and Fedora package optionsInstalling Under Linux | 31 and you’ll need to install any missing packages.
Run the Package Manager by selecting Add/Remove Software from the Fedora menu.
Alternatively, login as root and type
pirutYou should see a window similar to the one shown in Figure 2-7. Select the List tab,
and choose any of these packages that don’t already have a checkmark next to them:
httpd-2.2.0-5.1.2.i386Apache
HTTP Servermysql-5.0.22-1.FC5.1.i386MySQL client programs and shared libraries
Figure 2-6. Detailed Red Hat and Fedora package optionsShare with your friends: