Ubuntu Build Lamp

Source: Internet
Author: User

First Download Install Apache2

Input: sudo apt-get install apache2

After installation, enter: localhost in the browser

Displays the correct installation, as described.


Immediately after installation PHP5

Input: sudo apt-get install php5


Once the installation is complete, install MySQL

Input: sudo apt-get install Mysql-server


Immediately after installation phpMyAdmin

Input: sudo apt-get install phpMyAdmin

Select Apache2 and then enter the root password and the database password as prompted


The permissions to overwrite the/var/www directory are immediately followed. Easy to edit website files later.

Input: sudo chmod 777/var/www


Finally create the phpMyAdmin link.

Input: sudo ln-s/usr/share/phpmyadmin/var/www/html/


Now enter in the browser: localhost/phpadmin

The management interface can be displayed correctly after landing.


If apache2 startup encounters

Error message:
Apache2:could not reliably determine the server ' s fully qualified domain name, using 127.0.1.1 for ServerName

Workaround:
sudo gedit/etc/apache2/apache2.conf

Add the following file:
#Server Name
ServerName 127.0.0.1


Ubuntu Build Lamp

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.