mysql-server-5.0.22-1.FC5.1.i386The
MySQL server and related filesphp-5.1.2-5.i386The PHP HTML-embedded scripting language (PHP Hypertext Preprocessor)
php-mysql-5.1.4-1.i386A module for PHP applications that use MySQL databases
The version numbers you see will probably be different from the ones we’ve listed.
Once you’ve selected these,
click the Apply button, and the software should be installed.
If you’re using an older version of Red Hat or Fedora, the easiest way to install is to login under the root user account (by typing su -
) and launch the package-management program shown in Figure 2-5:
#
system-config-packagesPlace a checkmark next to
the entry for MySQL Database, and click on the Details link.
You’ll see a window such as that in Figure 2-6. Select the “mysql-server” and “php- mysql” packages, and then click the Close button. You’ll be prompted for the Red Hat or Fedora installation CDs, and the selected packages will be installed.
Figure 2-7. Red Hat and Fedora 5 package-management programInstalling Under Linux | 33 If you have a relatively recent version of Red Hat or Fedora, you can also use the yum
(short for Yellowdog Updater Modified) program to automatically download and install the necessary packages from the Internet. This is very convenient because you don’t have to spend time digging up your installation CDs.
More importantly, the latest version of a package generally has patches for known bugs and security vulnerabilities.
If you’ve never used yum before, you need to configure it first. First, type su - to login as the system root user,
and then update your /etc/yum.conf configuration file by typing
wget http://www.fedorafaq.org/samples/yum.conf#
/bin/mv /etc/yum.conf /etc/yum.conf.bak#
/bin/mv yum.conf /etcNow, update the yum indexes that list packages and the locations that they can be downloaded from
rpm -upgrade -verbose -hash http://www.fedorafaq.org/yumRetrieving http://www.fedorafaq.org/yum
Preparing... ########################################### [100%]
1:yum-fedorafaq ########################################### Once you’ve
configured yum, you can download and install all the programs you need by simply specifying them from the command line
yum update mysql mysql-server httpd php php-mysql[root@saiedpc
]# yum update mysql mysql-server httpd php php-mysql
Could not find update match for php
Could not find update match for php-mysql
Could not find
update match for mysql-serverCould not find update match for mysql
Resolving Dependencies
=============================================================================
Package
Arch Version Repository Size=============================================================================
Updating:
httpd i 2.2.2-1.2 updates 1.1 M
Updating for dependencies:
httpd-manual i 2.2.2-1.2 updates 846 k mod_ssl i 1:2.2.2-1.2 updates 99 k
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 3 Package(s)
Remove 0 Package(s)
Total download size 2.0 M
Is this ok [y/N]:
yDownloading Packages mod_ssl-2.2.2-1.2. 100% |=========================| 99 kB 00:14
Share with your friends: