Build a full-featured server on ubuntu7.10

Source: Internet
Author: User
Tags nameserver
Create a full-featured server-Linux Enterprise Application-Linux server application on ubuntu7.10. For more information, see the following. 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-server php5-mysql

After a while, ubuntu 7.10 will automatically install apache2, php5, and mysqlserver for you. From this point, 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



5. Common mysql operations

(1) enter the mysql client

Enter

Mysql-u root-p

(2) create a database

Create database test1;

(3) Add a user

Grant all on test1. * to huzhangsheng @ localhost identified by '123 ';

(4) Forget the mysql root Password.

# View all processes

Ps? Aux

View all processes, find the mysql process pid, and then

Sudo kill pid

Terminate the mysql process

Sudo/etc/init. d/mysql stop

Run the following command to start MySQL to skip the permission check table.
Mysqld_safe? Skip-grant-tables &

Change the root password of mysql

Update mysql. user set password = PASSWORD ('yourpassword') where User = 'root ';

6. Attach a mobile hard disk

After a mobile hard disk is inserted, ubuntu server 7.10 displays the following information: Use fdisk? L display mobile hard drive

Attach a mobile hard disk to/media

Display/dev/sdb1 on my mobile hard disk and load it with the following command:

Sudo mount/dev/sdb1/media

7. Install helix for linux

In helix for linux, I put it in a mobile hard disk, enter the corresponding folder, and copy it to/usr.

Cd/media/network/chengxi/linux

8. Enable ubuntu to support rar

Sudo apt-get install rar unrar

9. Unpack

Sudo unrar e HelixServerUnlimited11_linux.rar

Sudo tar zxvf setup.tar.gz

Install helix

Cd helix

Sudo chmod + x helix. bin

Sudo./helix. bin

10. Create a helix Startup File

Cd/etc/init. d

Sudo vim rmserver

Enter the following content:

#! /Bin/sh

/Usr/helix/Bin/rmserver/usr/helix/rmserver. cfg &

Exit 0

Press esc and enter

: Wq

Write and exit

11. Add a service on ubuntu 7.10

Sudo chmod + x rmserver

Sudo update-rc.d rmserver defaults 99

12. Install postfix

Sudo apt-get install postfix

Install the mailx package to use the mail command tool program. Install this package to install the mail command.

Sudo apt-get install mailx

Add a user.

Sudo useradd-m-s/bin/bash fmaster

Sudo passwd fmaster

13. Change the IP address of the NIC. do not modify the dynamic IP address.

Sudo vim/etc/network/interfaces

Modify the following content based on your actual situation

# The primary network interface

Auto eth0

# Using static IP addresses

Iface eth0 inet static

# Your IP Address

Address 192.168.10.71

Netmask 255.255.255.0

Network 192.168.10.0

Broadcast 192.168.10.255

# Your gateway

Gateway 192.168.10.225

# Your DNS

Nameserver 20.0134.133

Nameserver 192.168.1.1
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.