Ubuntu10.10 install discuz

Source: Internet
Author: User

1. Install the database and web server for ubuntu10.10

Apache as a powerful webProgramNaturally, it is the first choice for Building Web servers. Well, we will install Apache below. Enter the following command on 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 directory, all web files that can be accessed through a browser must be placed in this directory.

 

Installing software in Ubuntu is a very simple task. You only need one command. Execute the following command on the terminal:

Sudo apt-Get install libapache2-mod-php5 PhP5

After installation, restart Apache to load the PHP module:

Sudo/etc/init. d/apache2 restart

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

Sudo gedit/var/www/phpinfo. php

Then enter:

<? PHP bloginfo ();?> (Note: Change bloginfo to phpinfo in use. Because of server restrictions, you cannot use the phpinfo function)

Save the file and enter http: // 127.0.0.1/phpinfo. 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:

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

After adding the preceding command, restart apaceh through the following command to solve the problem:

Sudo/etc/init. d/apache2 stop

Sudo/etc/init. d/apache2 restart

Install MySQL

Sudo apt-Get install mysql-Server

At the end of the installation, it will ask for the root password. Note that the root password here is not the Ubuntu root password. It is the root password you want to set for MySQL. Of course, if you are happy, you can set it to the same way. Because it is mainly used for local testing, MySQL is installed here. If it is used as a server, you may need to refer to other settings.

 

It is said that the following command can be used once:
Sudo apt-Get install apache2 mysql-server PhP5 php5-mysql phpMyAdmin

Remember the MySQL password in this step.
In addition, you can install MySQL on the graphic management interface:
Sudo apt-Get install mysql-Admin *

If the mysql_connect () connection error occurs after the installation is successful, run the following command:

Sudo apt-Get install php5-mysql

 

2. Install the Zend framework

Sudo apt-Get install Zend-framework

3. Download The discuz installation package
$ Cd ~
$ Mkdir discuz
$ CD discuz
$ Wget http://download.comsenz.com/Discuz/7.2/Discuz_7.2_FULL_ SC _GBK.zip

4. decompress the package
$ Sudo apt-Get install unzip
$ Unzip discuz_7.0.0_full_ SC _gbk.zip

5. Create a BBS directory under/var/WWW and copy all the files under the previously decompressed upload directory to the BBS directory.
$ CD/var/www/
$ Sudo mkdir BBS
$ Cd ~
$ CD discuz/
$ Sudo CP-A upload/*/var/www/BBS/

6. Set the WWW folder 777 attribute in var.
$ Sudo chmod-r 777/var/WWW

7. Open the browser and enter:
Http: // server IP Address/BBS/install/index. php
Note: If the page cannot be opened, restart Apache.
$ Sudo/etc/init. d/apache2 restart

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.