Learning Mysql


Installation on Red Hat and Fedora Core



Download 4.24 Mb.
View original pdf
Page36/366
Date04.08.2023
Size4.24 Mb.
#61806
1   ...   32   33   34   35   36   37   38   39   ...   366
Learning MySQL
Installation on Red Hat and Fedora Core
Red Hat is probably the most famous Linux distribution, and Fedora Core is the cut- ting-edge version of Red Hat’s Enterprise Linux distribution. If you’re installing one of these two from scratch, select the Custom installation option and, when you seethe package-selection list like that shown in Figure 2-5, select (put a checkmark) next to
30 | Chapter 2:
Installing MySQL

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-mysql
mysql-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 options
Installing 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 pirut
You 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.i386
Apache HTTP Server
mysql-5.0.22-1.FC5.1.i386
MySQL client programs and shared libraries
Figure 2-6. Detailed Red Hat and Fedora package options

Download 4.24 Mb.

Share with your friends:
1   ...   32   33   34   35   36   37   38   39   ...   366




The database is protected by copyright ©ininet.org 2024
send message

    Main page