Architecture aspect: Use Ubuntu as a web Server System

Source: Internet
Author: User
Article Title: Architecture aspect: Use Ubuntu as a web server system. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic classification Ubuntu is a fully Gnu/Linux-based operating system, it is a Debian-based release. The current version is 5.10.

If you want to quickly set up the web environment locally, you can configure it as follows:
In the terminal, type the following command to install Apache + PHP + Mysql. (Of course, make sure you have connected to the network :)

sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5-common
sudo apt-get install php5-gd
sudo apt-get install php5-mysql
sudo apt-get install libapache2-mod-php5

The configuration file of Apaache is/etc/apache2/apache2.conf.
The default Web directory is/var/www/

Note: by default, the root user root after installation of mysql does not set a password. This will cause security risks.

If you do not understand the mysql command line operation method, we recommend that you use phpMyAdmin for management.

Configure mysql to support access from other clients.
Sudo vim/etc/mysql/my. cnf
Comment out the skip-networking line. (That is, add the # sign at the frontend of this line)
You can also install a Mysql client Query Tool
Sudo apt-get install mysql-query-browser
Enter mysql-query-browser in the terminal, enter the Server IP address 127.0.0.1 account: root and your password, and click connect to query and maintain data.

In addition, you can enterServerTo install a minimal operating system. Configure the web server according to the preceding method. However, note that mysql-query-browser must be inX.

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.