Configure Apache + PHP + MySql in Ubuntu 10.04

Source: Internet
Author: User

1. Install apache2.0

Sudo apt-Get install apache2

The installation process is not detailed.

After installation, open it in the browser:

Http: // localhost/

Or http: // 127.0.0.1

If it works appears! That proves OK.

 

2. install PHP

Enable it on the terminal in sequence:

Sudo apt-Get install PhP5 // install PhP5

Sudo apt-Get install libapache2-mod-php5 // configure Apache + PHP

Sudo/etc/init. d/apache2 restart // restart Apache

Test:

Open gksudo gedit/var/www/testphp. php

Then enter something (SD is input) and save it.

Enter http: // 127.0.0.1/testphp. php or http: // localhost/testphp. php in the browser.

The input is successful if it is displayed.

 

3. Install MySQL

Sudo apt-Get install mysql-Server

After installation is complete, follow the prompts to set the root password

4. Make Apache and PHP support MySQL

Sudo apt-Get install libapache2-mod-auth-mysql

Sudo apt-Get install php5-mysqlsudo/etc/init. d/apache2 restart

Now The apache2 + PhP 5.2.4.2 + mysql5.0.51 environment is complete.

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.