Configure the Apache2 + PHP5 + MySQL environment in Ubuntu

Source: Internet
Author: User
Prerequisites: The computer must be connected to the network. It is best to have a Ubuntu installation CD for the DVD version. There is no problem and there is no problem. You can download it online anyway. Here are all the commands. You only need to install them without manual configuration. It is faster and more accurate than those installed in the stupid code. The disadvantage is that the configuration may not be flexible and suitable for new users. Installation apahce2; sudoapt-getinstallapache2 installation php5sudoapt-getinstallphp5 installation p

Prerequisites: The computer must be connected to the network. It is best to have a Ubuntu installation CD for the DVD version. There is no problem and there is no problem. You can download it online anyway. Here are all the commands. You only need to install them without manual configuration. It is faster and more accurate than those installed in the stupid code. The disadvantage is that the configuration may not be flexible and suitable for new users.

Install apahce2;

Sudo apt-get install apache2

Install php5

Sudo apt-get install php5

Install mysql support for php5

Sudo apt-get install php5-mysql

You can also install the gd library if you like.

Sudo apt-get install php5-gd

Install mysql

Sudo apt-get install mysql-server

After installation, restart apache.

Sudo apache2ctl restart

You have to install an editor. You can install bluefish for beginners.

Sudo apt-get install bluefish

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.