How to build a website server (Ubuntu + LAMP)

Source: Internet
Author: User
Tags website server
Article Title: Teach you how to build a website server (Ubuntu + LAMP ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

I am a newbie who is not proficient in Linux. I want to install a Ubuntu 6.06 Linux server and use the LAMP package on this server to run my own website. LAMP kit is "Linux + Apache + Mysql + PHP these four software constitute a set of tools that can run the website software ." Through Google search and installation attempts, I have gained some successful installation and configuration experience. Through this article, I will learn from the Linux website server system beginners. In this installation of website software environment, Apache2 web service software, MySQL5 website background database software, and PHP5 interpreter language software will be used. The configured system can also provide FTP services.

If your computer is equipped with enough physical memory, we recommend that you download a vmwarevirtual machine software to install the Web server environment software. Virtual machines provided by Vmware software can make installation and configuration change very simple.

  Install Ubuntu 6.06 Linux Server Software

Download the Ubuntu server software CD image file (. iso file) from the Ubuntu website, and use the recording software to make the downloaded ISO file into a CD. During installation, select the LAMP installation mode in the installation menu for installation, and install the prompt for software configuration.

After the installation process ends by default, the only prompt displayed in front of you will be a Linux Command Prompt. As a new Linux user, you can make two choices: 1. learn which commands are input at the command prompt to configure the LAMP website server. 2. continue the installation, add a graphical user interface software to the machine, and manage the LAMP website server in a visual and intuitive way. The second method is easy for beginners.

To obtain a graphical user interface software (either KDE or Gnome) from a command prompt, you need to enter some commands. The Gnome graphic user interface is relatively easy to use.

Enter the following command at the command prompt to obtain the Gnome graphical user interface software:

Sudo apt-get update

Sudo apt-get install ubuntu-desktop

When running the preceding command, make sure that your machine is connected to the Internet. When running the sudo command, you will be prompted to enter the root password of the privileged user, because the above command can only be run by the root user. If the password is entered correctly, the installation of the graphic user interface starts automatically. After the installation is complete, the system prompts you to restart. When you start the system again, you will enter a Gnome graphical user interface, in which you can easily manage and adjust the entire machine.

  Configure the website server package

When I first installed Ubuntu 6.06 Linux, a complete website application environment is running, including Apache2, MySQl 5, PhP5, and Pearl5. The next step is to configure these website software one by one based on your website requirements. there are two Configuration Methods: directly modify the configuration file of the corresponding software; or download the graphical management tool software for the web to configure the corresponding website software. Intuitive graphical management tools are suitable for beginners. This article introduces a web min graphic management tool to manage these website servers.

After downloading the webminmanagement tool from the Internet, you will get a file named "webmin-1.290.tar.gz". Run the following command to decompress and install the graphical management tool:

Sudo apt-get install build-essential

Cd Desktop

Ls

Cd webmin-1.290

./Setup. sh/usr/local/webmin

The installation process of the management tool starts. After the installation is completed, enter http: // machine name: 10000 in the address bar of the browser on the machine to open the webmin management tool, click the "servers" option and navigate to the Apache Webserver icon. For details, you can see a tag named "module configuration". You need to change some settings in this tag.

[1] [2] [3] [4] Next page

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.