Use Ubuntu Server to build a Discuz forum under a virtual machine

Source: Internet
Author: User
Tags nameserver

First, build a forum on your own book, requiring the server to be Linux.

So install a virtual machine first

Installing the Unbuntu Server in the virtual machine, version 9.04, costs a little discount. It should be noted that the next step will be taken along the installation process. When selecting an additional installation program, remember to select SSH and MySQL, and then select bridging on the network, and do not set up a proxy.

Then, update the software package and add the software source of shangjiao University to sourses. list.


Sudo nano/etc/apt/sources. list
After
Sudo apt-get update
This update takes a long time. Please wait ~


Then install it all the way.
Sudo apt-get install apache2 mysql-server php5 php5-mysql phpmyadmin

According to the installation documents provided by the senior engineer, I still need to install the Zend framework. In fact, I don't know what this is for. I still need to learn.
Sudo apt-get install zend-framework

Download the Discuz installation package
Wget http://download2.comsenz.com/Discuz/7.0.0/Discuz_7.0.0_FULL_ SC _GBK.zip
Extract
Sudo apt-get install unzip
Unzip Discuz_7.0.0_FULL_ SC _GBK.zip

Create a bbs directory under/var/www and copy all files under the decompressed upload directory to the bbs directory.
Cp-a upload/*/var/www/bbs/

Add the 777 attribute to the www file in var
Sudo chmod-R 777/var/www

Open your browser and enter:
Http: // Virtual Machine IP Address/bbs/install/index. php

------------------------------

In order to allow the PC in the LAN to access this forum, you need to change the Ethnet settings of the virtual machine to the first bridging
Then add the static address to/etc/network/interfaces.
Sudo nano/etc/network/interfaces
Join
Sutos eth0
Iface eth0 inet static
Address xxx. xxx # IP address
Netmask xxx. xxx # Subnet Mask
Gateway xxx. xxx # gateway

Modify DNS
Sudo nano/etc/resolv. conf
Join
Search localdomain
Nameserver xxx. xxx # DNS1
Nameserver xxx. xxx # DNS2

Restart Network Configuration
Sudo/etc/init. d/networking restart

--------------------------------------

After other computers in the LAN can access it, there are some messy problems.
One of them is the address of localhost only when ifconfig is used for query.
Brother helped find the solution
"If you change VMware or copy it to another computer to run a virtual machine, the Linux system may not find the NIC or have one more eth1, but the network is abnormal.
The solution is simple: delete it in root.
/Etc/udev/rules. d/70-persistent-net.rules
This file, and then restart the system.

After restarting, You can reset the network properties to connect to the Internet"
 

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.