Install the php environment on Ubuntu

Source: Internet
Author: User
Install php environment under Ubuntu & nbsp; install Apache2: sudoapt-getinstallapache2 install PHP module: sudoapt-getinstallphp5 install Mysqlsudoapt Ubuntu install php environment
Install Apache2:

Sudo apt-get install apache2

Install the PHP module:

Sudo apt-get install php5

Install Mysql

Sudo apt-get install mysql-server

Install other modules:

Sudo apt-get install libapache2-mod-php5

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

Sudo apt-get install php5-mysql

Sudo apt-get install php5-gd

After the installation is successful, use localhost to test it.
Then a new test. php file named phpinfo () is created and the test is successful.

I thought it would be very troublesome to install php in linux, but it does not seem to be particularly complicated.

Most of the time, people are always scared by the appearance !~ Try and try it!

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.