Install LAMP quickly in Linux (Linux + Apache + MySQL + PHP)

Source: Internet
Author: User
LAMPLinux + Apache + MySql + Php. if you want to install this set of servers or a few of them, you can simply use a single command. quick installation of sudoaptitudeinstallapache2php5mysql-serverphp5-mysqllibapache2-mod-php5Admin MySQL needs to input LAMP = Linux + Apache + MySql + Php.

If you want to install this set of servers or a few of them, you can simply use a single command.

Quick installation

Sudo aptitude install apache2 php5 mysql-server php5-mysql libapache2-mod-php5

Admin MySQL requires a root password.



Sudo/etc/init. d/apache2 restart

Once the installation is complete, you can use Firefox to open the http: // localhost URL. if it appears, the installation of Apach is OK.


The default Apache Directory in Linux is/var/www.

Test php

Create a php file/var/www/test. php with the following content:



Enter http: // localhost/test. php, which indicates that php is installed and compatible with Apache.


Simple.


If you have any questions
Click here
 
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.