Install the discuz forum under ubuntu11.04

Source: Internet
Author: User
Tags zend framework

1. Install the Apache server

Enter the following command in the terminal:

Sudo apt-Get install apache2

After the installation is complete, start Apache.

Sudo/etc/init. d/apache2 restart

Enter http: // localhost/or http: // 127.0.0.1/in the browser. If "It works!" is displayed! ", It means that Apache is successfully installed. By default, Apache will create a directory named WWW under/var, which is the Web Server Directory, all web files accessed through a browser must be placed in this directory.

Ii. Install the PhP5 Module

Run the following command on the terminal:

Sudo apt-Get install libapache2-mod-php5 PhP5

After the installation, We need to restart Apache to load the PHP module,

Run the following command on the terminal:

Sudo/etc/init. d/apache2 restart

Next, we will create a PHP file under the web directory to test whether PHP can run normally,

Run the following command on the terminal:

Sudo gedit/var/www/phptest. php

Then enter:

<? PHP phpinfo ();?>

Save the file and enter http: // 127.0.0.1/phptest. php In the browser. If a page displays the PHP running parameters, it indicates that PHP is running properly. However, if the page is not displayed, you are prompted to download the file. This indicates that apaceh does not properly load the PHP module. The solution is, add the following command to the/etc/apache2/apache2.conf or/etc/apache2/mod-enabled/php5.conf file.

Run the following command on the terminal:

Sudo gedit/etc/apache2/apache2.conf

At the end of the file, type:

Addtype application/X-httpd-PHP. php. phtml. php3

After adding the preceding command, save the file and restart apaceh using the following command to solve the problem:

Sudo/etc/init. d/apache2 restart

Iii. Install MySQL

Run the following command on the terminal:

Sudo apt-Get install apache2 mysql-server PhP5 php5-mysql phpMyAdmin

At the end of the installation, it will require the root password.

Note: Pay attention to the password set here, which will be used when discuz is installed later.

4. Install the Zend framework

Run the following command on the terminal:

Sudo apt-Get install Zend-framework

5. Download The discuz installation package

The terminal executes the following commands in sequence:
Cd ~
Wget http://download.comsenz.com/Discuz/7.2/Discuz_7.2_FULL_ SC _GBK.zip

6. Install and unzip the discuz installation package

The terminal executes the following commands in sequence:
Sudo apt-Get install unzip
Unzip discuz_7.2_full_ SC _gbk.zip

7. Install discuz

1) create a BBS directory under/var/WWW and copy all the files under the previously decompressed upload directory to the BBS directory.

The terminal executes the following commands in sequence:
CD/var/www/
Sudo mkdir BBS

Sudo CP-~ /Upload/*/var/www/BBS/

2) Send the WWW folder 777 attribute to var.
Sudo chmod-r 777/var/WWW

3) enter the Installation Wizard from the browser.

Open your browser and enter:
Http: // server IP Address/BBS/install/index. php
Note: The above "Server IP Address" must be changed to the server IP address installed on you. In addition, if the page cannot be opened, restart Apache. the restart command is as follows:
Sudo/etc/init. d/apache2 restart

8. Verify the Forum Architecture

Find another PC, open the browser, and enter http: // server IP Address/BBS/to test whether the forum architecture is successful. The Forum is divided into administrator permissions and common user permissions. After logging in with an administrator account, you can make certain modifications to the Forum configurations (such as permission settings and templates.

Note: before installation, ensure that the server network is smooth and the software has been updated to the latest (system-system management-update Manager). ensure that necessary tools have been installed on the Linux system, for example, language packs (in "system-system management-language support", installation and support for Chinese packages) and compilation tools.

Extended: If you have already installed it, you can visit your forum on the LAN. If you want to access it on the internet
A feasible method is to use dynamic domain name resolution.
First of all, you need to register an account in the corresponding service provider, I use Jin wanwei here (http://www.gnway.cn), with its second-level domain name can be free of charge for Dynamic DNS resolution, after successful registration, you have such a domain name http://aaa.gnway.net (AAA is your registration name), and then download its dynamic resolution client installed on Linux (here for specific installation, see the introduction on the web page ).

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.