First, install the Apache server
Under the terminal enter the command below:
sudo apt-get install apache2
After installation, the next step is to start Apache
Sudo/etc/init.d/apache2 restart
In the browser to enter http://localhost/or HTTP://127.0.0.1/, if you see the "It works!", that means Apache successfully installed, Apache default installation, will be under the/var to create a directory called www , this is the Web server directory, and all Web files accessed through the browser sudo will be placed in this directory.
Second, install PHP5 module
Execute the following command under the terminal:
sudo apt-get install libapache2-mod-php5 php5
After the installation, we want to restart Apache, let it load the PHP module,
In the terminal execution command below:
Sudo/etc/init.d/apache2 restart
Next, we'll create a new PHP file under the Web directory to test whether PHP is working properly,
The terminal executes the command below:
sudo gedit/var/www/html/phptest.php
Then enter:
<?php phpinfo (); ?>
Then save the file, enter the http://localhost/phptest.php in the browser, if there is a display of PHP running parameters of the page, it means that PHP has been running normally. But if the page is not displayed, but prompts you to download the file, which means that APACEH did not load the PHP module correctly, the solution is, in/etc/apache2/apache2.conf or/etc/apache2/mods-enabled/ php5.conf file to add the following line of command. Sudo
The terminal executes the command below:
sudo gedit/etc/apache2/apache2.conf
At the end of the file, type:
AddType application/x-httpd-php. php. phtml. php3
After you add the above command, save the file, and then restart the APACEH with the following command to resolve the problem:
Sudo/etc/init.d/apache2 restart
Third, the installation of MySQL
The terminal executes the command below:
sudo apt-get install apache2 mysql-server php5 php5-mysql php5-gd phpMyAdmin
At the end of the installation, it will require the password to be entered in the root.
Note: Please note the password set here, which will be used when installing discuz.
Iv. installation of Zend Framework
The terminal executes the command below:
sudo apt-get install Zend-framework
Five. Download Discuz installation package
$CD ~
$mkdir Discuz
$CD Discuz
$wget Http://download.comsenz.com/Discuz/7.2/Discuz_7.2_FULL_SC_GBK.zip
1. Decompression
$sudo Apt-get Install Unzip
$unzip Discuz_7.2_full_sc_gbk.zip
2. Under the/var/www/html new BBS directory, will be extracted in front of the upload directory of all files copied to the BBS directory
$CD/var/www/html/
$sudo mkdir BBS
$CD ~
$CD discuz/
$sudo cp-a upload/*/var/www/html/bbs/
3. To the WWW folder 777 attribute in Var
$sudo Chmod-r 777/var/www/html
4. Open the browser and enter:
http://server IP address/bbs/install/index.php or http://localhost/bbs/install/index.php
Note: If the page cannot be opened, restart Apache.
$ sudo/etc/init.d/apache2 Restart