Install Nginx + PHP + MySQL + FastCGI in Ubuntu

Source: Internet
Author: User
Nginx is a free, open-source, and high-performance HTTP server. Nginx is famous for its stable performance, rich functions, simple configuration, and low resource consumption. This tutorial helps you install nginx servers that support PHP and MySQL In Ubuntu. 1. precautions before installation first, the Ubuntu software must be installed with the root permission. Therefore, you must add Sudo before the command and enter the password. Otherwise, insufficient permissions are displayed. Run apt-getupdate to update the local software before installation. To avoid security issues

Nginx is a free, open-source, and high-performance HTTP server. Nginx is famous for its stable performance, rich functions, simple configuration, and low resource consumption. This tutorial helps you install nginx servers that support PHP and MySQL In Ubuntu.

1Precautions before installation

First, you must use the root permission to install Ubuntu software. Therefore, you must add Sudo before the command and enter the password. Otherwise, insufficient permissions are displayed.

Run apt-get update to update the local software before installation. To avoid errors during installation.

2Install MySQL5.0

Running statement

Apt-get install mysql-server mysql-client

The root User Password of MySQL is required during installation.

New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
3Install nginx

Run

Apt-get install nginx

Start nginx

/Etc/init. d/nginx start

Access the IP address of your server (http://www.6688.cc/) will see the nginx welcome Interface

Add nginx to start up

Update-rc.d nginx ults

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.