Build a full-featured server on Ubuntu7.10Linux

Source: Internet
Author: User
Article Title: Build a full-featured server on Ubuntu7.10Linux. 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.

Apache can be used to create a WEB server on ubuntu 7.10, mysql can be used for the database management system, and postfix can be used for the email system. The installation is very simple and free of charge. When a streaming media system can use helix, it will be charged and expensive. However, there is a cracked version everywhere on the Internet, which is available for personal testing and not for formal use. The following are some of my personal experiences during installation.

1. Add php apache gd mysql to ubuntu 7.10

Sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd mysql-serverphp5-mysql

After a while, ubuntu 7.10 will automatically install apache2, php5, and mysqlserver for you. In this regard, ubuntu is very easy to install and easy to install.

2. Important files

Sudo/etc/init. d/apache2 restart (restart apache)

Sudo vim/etc/php5/apache2/php. ini (configure php. ini)

Sudo vim/etc/apache2/apache2.conf (configure apache2.conf)

/Var/www/(put The apache2 webpage file here)

/Var/lib/mysql/(put the mysql database here)

3. Modify php. ini and search for these items by yourself.

# Maximum size of a File Uploaded through post

Post_max_size = 800 M

# Change to the memory size you need

Memory_limit = 160 M

# Modifying the maximum file upload size

Upload_max_filesize = 800 M

Upload_tmp_dir =/tmp

Session. save_path =/tmp

# Add mysql and gd support

Extension = mysql. so

Extension = gd. so

4. Modify apache2.conf to set the VM.

Because I only have one IP address, set a port-based VM

Sudo vim/etc/apache2/apache2.conf

Input

# Listen 80 already exists. You do not need to enter

Listen 8080.

# Set virtual hosts Based on ports 80 and 8080

NameVirtualHost *: 80

Namevirtualhost*: 8080

ServerName www.yourdomain.org

DocumentRoot/var/www/domain-80

ServerName www.yourdomain.org

DocumentRoot/var/www/domain-8080

[1] [2] 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.