lampapache+mysql+php

Source: Internet
Author: User

L is Linux, A is apache,m or apache,p is PHP

Apache

Installing Apache

Yum Insatll httpd-y

Open Apache Service

Service httpd Start

Setting up 235 runlevel Boot

Chkconfig--levels 235 httpd on

Configuring the HTTPd File

Vi/etc/httpd/conf/httpd.conf

ServerName Remove #

Restart HTTPD Service

Service httpd Restart

Mysql

Installing the MySQL Database

Yum install MySQL Mysql-sever-y

Open MySQL Database

Service mysqld Start

Chkconfig--levels 235 mysqld on

Set MySQL database password

Mysql_secure_installation

2y remaining return

Login Database

Mysql-u root-p

Php

Install PHP

Yum Install php*-y

Open PHP

Service httpd Restart

Writing a PHP test page

vi/var/www/html/info.php

Input

<?php

Phpinfo ();

?>

Restart HTTPD Service

Service httpd Restart


lampapache+mysql+php

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.