PhpBB2 is an open source forum program based on Web scripts implemented in PHP, which is widely used. In addition to the Mysql database, it also supports PostgreSQL and other databases. It can also work on the Windows platform. The software program of PhpBB2 is very simple to install, and there are constantly upgraded versions. There are about 6 million sites using phpBB2 on the global network. The biggest advantage of PhpBB2 is that it can develop plug-in modules to build a personal webpage style. PhpBB2 has many powerful functions including system information. Therefore, you must understand that this software may cause some security vulnerabilities.
1. Build a phpBB2 Forum
1. Required software and hardware for building the phpBB2 Forum:
In addition to building a LAMP-based network architecture, but also to run phpBB2 software required PHP-MYSQL module and php-odbc module, you can use the command to detect:
#rpm –qa|grep php-mysql;rpm –qa|grep php-odbc |
System Requirements:
Software: it requires kernel Kenerl) at least 2.2. KDE 2.0, Desktop color at least 16 enhanced colors.
Hardware: CPU: Pentium II more than 450, memory: 128 MB, hard disk space: 600 mb.
2. Download phpbb2 software and Chinese package:
# Wegt http://www.phpbb.com/files/releases/phpBB-2.0.14.tar.bz2
# Wegt http://jaist.dl.sourceforge.net/sourceforge/phpbb/lang_chinese_simplified.tar.gz
# Wegt http://jaist.dl.sourceforge.net/sourceforge/phpbb
/SubSilver_chinese_simplified.tar.gz
3. install the software: copy the downloaded software to the/tmp directory and run:
# Tar-zxvf phpBB-2.0.14.tar.gz "creates a directory: /tmp/phpBB2 "# cd phpBB2/language/# tar-zxvf root/logs # cd/root/phpBB2/templates # tar-zxvf/root/subSilver_chinese_simplified.tar.gz |
The two Chinese translation packages must be copied to: phpBB2/language/AND/phpBB2/templates.
Directory and decompress the package. Do not put the wrong location. Otherwise, the program will be garbled.
4. Create a database for phpbb2:
# Mysql-u root-pEnter password: xxxxxxxxxYour Mysql connection id is 3 to server version: 4.11 Type 'help; 'or' \ H' for help. type '\ C' to clear the buffer. mysql> create database phpbb2; "create database for phpbb2" Query OK, 1 row affected (0.01 sec) Mysql> grant all privileges on phpbb2. * to phpbbuser @ localhost identified by '123 '; "Grant the created phpbb2 permission to the phpbbuser account and set the password" mysql> quitBye |
5. test whether the created database and account can be used:
# mysql –u phpbbuser –pEnter password: xxxxxxxxxYour Mysql connection id is 3 to server version: 4.11Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.Mysql> connect phpbb2;Connection id:5Current database: phpbb2mysql>quitBye |
6. Start to install phpbb2:
Before installation, you must note that the Mysql server name is localhost. This is the Mysql server name, not the Linux server name. Generally, the Mysql server name is localhost. The Mysql database name is phpbb2, the Mysql account is phpbbuser, And the password is set above.
# Cd/tmp/phpBB2 # chmod 666 config. php "make config. php script executable "# mv phpBB2/var/www/html/phpbb2" Move the phpBB2 directory of the file to the apache provincial directory" |
BR> for network installation, the security of phpBB2 is very simple. Open a Linux Browser and enter: http: // host name/phpbb2, a dialog box appears asking you to enter some system information, as shown in figure-1.
Figure-1 fill in system information