Lamp test Environment Construction

Source: Internet
Author: User

Linux installation is relatively simple and is omitted here.

  1. MySQL Installation

    1. Yum install MySQL Mysql-server

    2. /etc/init.d/mysqld Start #启动mysql

    3. Chkconfig mysqld on #设置mysql为开启启动

    4. CP/USR/SHARE/MYSQL/MY-MEDIUM.CNF/ETC/MY.CNF #

    5. Mysql_secure_installation #为root账户设密码

    6. Service mysqld Restart #重启mysql

    7. Mysql-u root-p #进入mysql


  2. Apache Installation L

    1. Yum Install httpd

    2. /ETC/INIT.D/HTTPD start

    3. Chkconfig MySQL on

    4. Service MySQL Restart

  3. PHP Installation

    1. Yum Install PHP

    2. Install PHP components to enable PHP5 to support MySQL

Yum install php-mysql php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-b Cmath Php-mhash Libmcrypt

Service httpd Restart Service mysqld restart


Test environment Setup OK
    1. Cd/var/www/html

    2. VI 110.php input after opening

<?php

Phpinfo ();

?>

Enter in the browser: 192.168.x.x/110.php, view









Lamp test Environment Construction

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.