Installation Steps for MySQL, Apache, PHP, and phpMyAdmin under fedora14

Source: Internet
Author: User

**************************************** ******************************
Check whether MySQL, Apache, PHP, and phymyadmin are installed on the local machine. It is recommended that you uninstall and reinstall MySQL. Avoid problems.

[Test1 @ localhost ~] $ Rpm-Qa | grep MySQL

[Test1 @ localhost ~] $ Rpm-Qa | grep MySQL

MySQL-client-5.5.24-1.linux2.6.i386

MySQL-server-5.5.24-1.linux2.6.i386
[Root @ localhost test1] # rpm-e MySQL-client-5.5.24-1.linux2.6.i386

[Root @ localhost test1] # rpm-e MySQL-server-5.5.24-1.linux2.6.i386

**************************************** ******************************

**************************************** ******************************
1. install and configure MySQL under fedora14
**************************************** ******************************
**************************************** ******************************
Ii. install Apache under fedora14
[Root @ localhost ~] # Yum install httpd
Package httpd-2.2.17-1.fc14.i686 already installed and latest version
Nothing to do
Set apache2 to start 21
[Root @ localhost ~] # Chkconfig -- levels 235 httpd on
[Root @ localhost ~] #/Etc/init. d/httpd start
Starting httpd: [OK]
[Root @ localhost ~] # Netstat-nl | grep 80
TCP 0 0: 80: * listen
Open the browser address bar and enter: http: // localhost/
Fedora test page appears.
Apache is successfully installed.

In fedora, the default path of Apache is/var/www/HTML, and the configuration file is/etc/httpd/CONF/httpd. conf. Other configuration files are stored in/etc/httpd/CONF. d/, And/log files are stored in ETC/httpd/logs /.
**************************************** ******************************
What is the relationship between httpd and Apache?
Httpd stands for Hypertext Transfer Protocol daemon (I. e. Web Server ).
Httpd is the file name of the executable files of * nix systems (such as UNIX and BSD) Apache. Generally, in these systems, httpd refers to Apache.

**************************************** ******************************
**************************************** ******************************
Iii. install PHP under fedora14
[Root @ localhost test1] # Yum install PHP
Installing:
PHP i686 5.3.8-3. fc14 updates 1.1 m
Installing for dependencies:
Php-cli i686 5.3.8-3. fc14 updates 2.3 m
Php-common i686 5.3.8-3. fc14 updates 538 K

Create an info. php file in/var/www/html and add the following code
<? PHP

Phpinfo ();

?>

[Root @ localhost test1] #/etc/init. d/httpd restart
After Apache is restarted
Enter http: // localhost/info. php In the browser
Some information about PHP version 5.3.8 is displayed, indicating that PhP5 is successfully installed.
MySQL cannot be found. Therefore, install the PHP-MySQL software package to obtain MySQL support for PhP5.
**************************************** ******************************
**************************************** ******************************
Make PhP5 support MySQL
[Root @ localhost WWW] # Yum install PHP-MySQL
Installing:
Php-mysql i686 5.3.8-3. fc14 updates 76 K
Installing for dependencies:
Php-PDO i686 5.3.8-3. fc14 updates 71 K
Restart Apache after installation
MySQL
Enter http: // localhost/info. php in the browser.
Search for MySQL to view the following information:
MySQL support enabled
Active persistent links 0
Active links 0
Client API version 5.1.60
**************************************** ******************************
**************************************** ******************************
Iv. phpMyAdmin installation under fedora14
[Root @ localhost desktop] # Yum install phpMyAdmin
Installing:
PhpMyAdmin noarch 3.4.7.1-1. fc14 updates 4.1 m
Installing for dependencies:
Libmcrypt i686 2.5.8-9. fc12 fedora 90 K
Php-Gd i686 5.3.8-3. fc14 updates 105 K
Php-mbstring i686 5.3.8-3. fc14 updates 455 K
Php-mcrypt i686 5.3.8-3. fc14 updates 30 K
Php-PHP-gettext noarch 1.0.11-3. fc14 updates 21 K
T1lib i686 5.1.2-6. fc14 fedora 152 K
Restart Apache after installation.
Enter http: // localhost/phpMyAdmin in the browser

In the displayed dialog box, enter the user name and password, indicating that phpMyAdmin is successfully installed.


The phpMyAdmin configuration file is/usr/share/PHPmyAdmin/libraries/config. Default. php.

Reference: fedora 15 (lmap, Flash, phpMyAdmin) Installation Guide

Install lamp in step 7 of Fedora 11

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.