Install and configure apache + php + mysql under fedora19

Source: Internet
Author: User
Install httpd and php: # yuminstallhttpdphpphp-common to start the apache service: # servicehttpdstart allows you to run the netstat-tnl command to check whether port 80 is enabled and whether apache is enabled. Enter localhost in the browser to view the apache page and set the apache service to start from

Install httpd and php: # yum install httpd php-common to start the apache service: # service httpd start you can run the netstat-tnl command to check whether port 80 is enabled, determine whether apache is enabled. Enter http: // localhost/in the browser to view the apache page and set the apache service to start from

Install httpd and php:
# Yum install httpd php-common

Start the apache service:
# Service httpd start

You can run the netstat-tnl command to check whether port 80 is enabled and whether apache is enabled. Enter http: // localhost/in the browser to view the apache page.

Set Automatic startup of apache service
# Chkconfig-level 235 httpd on

Install the php module:
# Yum install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo
# Yum install php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt

Create a simple page touch test. php under/var/www/html/and enter

1

2

3

echophpinfo()

?>

Open http: // localhost/test. php In the browser to view the php information.

Install the database module Mysql and Mysql-server
# Yum install mysql-server

Enable mysql Service
# Systemctl start mysqld. service
You can also use netstat-tnl to check whether the mysql service is enabled. If yes, port 3306 is displayed.

Set the mysql user name and password
Mysqladmin-u user name password

Enter the user name and password

Then try to log on to the mysql database

# Mysql-h localhost-u username-p
Then you are prompted to enter the password. If you can log on successfully, the installation is successful.

Install the graphical management interface of mysql
# Yum install phpmyadmin

After installation, restart the apache service.

# Service httpd restart

Finally, open http: // localhost/phpmyadmin/to manage the mysql database on the GUI.

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.