Ubuntu installation and Web server configuration

Source: Internet
Author: User

1. Installation is not necessary to say, even the system can not be installed, simply laid off

2.APACHE2 Installation

// install sudo apt-get Install Apache2

After Apache installation is complete, the default Web site root directory is "/var/www/html", enter "ls/var/www/html" in the terminal window, and enter the "index.html" file in the root directory of the Web site, in IE browser "127.0.0.1"--Enter to open the page.

Attention:

The path to the first configuration file for Apache apache2.conf

In the terminal window, enter "Ls/etc/apache2"----and a "apache2.conf" configuration file.

The path to Apache's second configuration file 000-default.conf

In the terminal window, enter "ls/etc/apache2/sites-available"----and a "000-default.conf" configuration file.

sudo/etc/init.d//etc/init.d//etc/init.d/apache2 Restart

3. Installing PHP5

sudo apt-get  install Php5sudo apt-get install libapache2-mod-php5 (according to my actual test, this step does not seem to be done, The previous step has been installed, but it is recommended that you copy//etc/init.d//var/www/testphp.php

4. Install MySQL

sudo apt-get install Mysql-server mysql-client

Then enter the password (OK)

Let Apache support MySQL

Open "Terminal Window", enter "sudo apt-get install Libapache2-mod-auth-mysql"----the installation is successful, Apache will support MySQL after installing this module.

Let PHP support MySQL

Open "Terminal Window", enter "sudo apt-get install Php5-mysql"----the installation is successful, PHP will support MySQL after installing this module.

Log in to MySQL

Open terminal window, enter "Mysql-u root-p" and enter the password for the "root" user in MySQL----and the login is successful.

5. Installing phpMyAdmin

Ubuntu installation and Web server configuration

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.