How to Use cetos-5.5 to build a forum, cetos-5.5 to build a forum
Lab environment centos-5.5
Lab Software Package
Yum install-y zlibc gd * pcre * freetype * libpcap * libxml2 * libpng * perl-DBI * gcc *
Gcc-c ++ * libtool * fontconfig * libmcrypt-devel mcrypt mhash
Ncurses-devel-5.5-24.20060715.i386.rpm
Mysql-5.0.56.tar.gz
Httpd-2.2.11.tar.gz
Jpegsrc.v8b.tar.gz
Php-5.3.6.tar.gz
PhpMyAdmin-3.2.5-all-languages.tar.gz
UCenter_1.5.0_ SC _GBK.zip
Discuz_7.2_FULL_ SC _GBK.zip
Software Installation
Tar zxvf mysql-5.0.56.tar.gz
Useradd mysql
Cd mysql-5.0.56
./Configure -- prefix =/usr/local/mysql
-- With-charset = gb2312 -- with-extra-charsets = all
Make
Make install
Cp support-files/my-medium.cnf/etc/my. cnf
Cd/usr/local/mysql
Chown mysql: mysql.
/Usr/local/mysql/bin/mysql_install_db -- user = mysql
/Usr/local/mysql/bin/mysqld_safe &
/Usr/local/mysql/bin/mysqladmin-uroot password Database password
/Usr/local/mysql/bin/mysql-uroot-p
Enter password:
Welcome to the MySQL monitor. Commands end with; or \ g.
Your MySQL connection id is 2
Server version: 5.0.56-log Source distribution
Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.
Mysql>
Ps-e | grep mysqld
23721 pts/1 00:00:00 mysqld_safe
23744 pts/1 00:00:00 mysqld
Netstat-tuplna | grep mysql
Tcp 0 0 0.0.0.0: 3306 0.0.0.0: * LISTEN 23744/mysqld
Tar zxvf httpd-2.2.11.tar.gz
Cd httpd-2.2.11
./Configure -- prefix =/usr/local/apache -- enable-so -- enable-rewrite
Make
Make install
/Usr/local/apache/bin/apache restart
Ps-e | grep httpd
31471? 00:00:00 httpd
31480? 00:00:00 httpd
31481? 00:00:00 httpd
31482? 00:00:00 httpd
31483? 00:00:00 httpd
31484? 00:00:00 httpd
Netstat-tuplna | grep httpd
Tcp 0 0: 80: * LISTEN 31471/httpd
Tar zxvf jpegsrc.v8b.tar.gz
Cd jpeg-8b
./Configure
Make
Make install
Tar zxvf php-5.3.6.tar.gz
Cd php-5.3.6
./Configure -- prefix =/usr/local/php
-- With-mysql =/usr/local/mysql -- with-apxs2 =/usr/local/apache/bin/apxs
-- With-mcrype -- enable-mbstring
Make
Make install
Cp php. ini-development/usr/local/php/lib/php. ini
Vim/usr/local/apache/conf/httpd. conf
Find
# AddType application/x-gzip. tgz
Change
AddType application/x-gzip. tgz
AddType application/x-httpd-php. php
/Usr/local/apache/bin/apachect restart
Touch/usr/local/apache/htdocs/index. php
Vim/usr/local/apache/htdocs/index. php
<? Php
Phpinfo ();
?>
Http: // server ip/index. php
Tar zxvf phpMyAdmin-3.2.5-all-languages.tar.gz
Mv phpMyAdmin-3.2.5-all-languages/usr/local/apache/htdocs/phpmyadmin
Cd/usr/local/apache/htdocs/phpmyadmin
Cp phpmyadmin/config. sample. inc. php config. inc. php
Vim config. inc. php
Find
$ Cfg ['blowfish _ secret'] = '';/* you must fill in this for cookie auth! */
Change
$ Cfg ['blowfish _ secret'] = 'hahaha';/* you must fill in this for cookie auth! */
/Usr/local/apache/bin/apachectl restart
Http: // server ip/phpmyadmin
Enter the Database User Password root password for your settings
Vim/usr/local/apache/conf/httpd. conf
Find
AddType application/x-gzip. tgz
AddType application/x-httpd-php. php
Change
AddType application/x-gzip. tgz
AddType application/x-httpd-php. php
AddType application/x-compress. Z
AddType application/x-httpd-php-source. phps
Find
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
Change
<IfModule dir_module>
DirectoryIndex index.html index. php
</IfModule>
Find
# ServerName www.example.com: 80
Change
ServerName www.example.com: 80
Find
AllowOverride None 117 rows
Change
AllowOverride All
Find
AllowOverride None 152 rows
Change
AllowOverride All
Find
AllowOverride None 269 rows
Change
AllowOverride All
Cp/usr/local/apache/bin/apachectl/etc/rc. d/init. d/httpd
Vim/etc/rc. d/init. d/httpd
Find
#! /Bin/sh
#
Change
#! /Bin/sh
# Chkconfig: 35 70 30
# Description: Apache
Install Discuz
Mv upload/usr/local/apache/htdocs/uc
Cd/usr/local/apache/htdocs/
Http: // server ip/uc/install
Modify
Vim/usr/local/php/lib/php. ini
Find
Http://php.net/short-open-tag
Short_open_tag = Off
Change
Http://php.net/short-open-tag
Short_open_tag = On
/Usr/local/apache/bin/apachectl restart
Cd/usr/local/apache/htdocs/uc/
Chown-R 777 data /.
You don't need to restart apachect. Just refresh it.
Enter the database password and the founder password.
Enter the Founder's password
Copy the upload File to/usr/local/apache/htdocs and change it to bbs.
Mv upload/usr/local/apache/htdocs/bbs
Cd/usr/local/apache/htdocs/
Ls
Bbs index.html index. php phpmyadmin uc
/Usr/local/apache/htdocs/bbs
Chmod 777 config. inc. php
Chmod 777 attachments
Chmod 777 forumdata/
Chmod 777 forumdata/cache/
Chmod 777 forumdata/templates/
Chmod 777 forumdata/threadcaches/
Chmod 777 forumdata/logs/
Chmod 777 uc_client/data/cache/
Http: // server ip/uc
Application Management-add new application
Click-install
Click Next
Http: // server ip Address/bbs to visit the Forum
How to build a BBS Forum
It is very simple. Now there are many Forum programs, ASP dynamic network, PHP, phpwind, discuz, and so on, all of which are very mature products.
Download the program, upload it to the purchased website space, and bind the domain name.
Contact me if you do not understand. We are specialized in website construction.
How to create a forum
In fact, many people do not really understand the meaning of free two words, such as those free forums, free domain names, free virtual hosts, and so on. If it is free, you can register domain names and hosts on your website without spending a penny. In fact, there is no error and they can get these for free, but they do not understand the meaning behind the free. For example, a free domain name is actually a second-level domain name assigned to you by someone else. A second-level domain name does not belong to your own domain name, but is promoted for other people's domain names. A free host is a host for all of you, in addition, such a host will have drawbacks when used for website construction. what's even worse is that a free host has a large number of advertisements, which will be closed at any time and will be withdrawn at any time. As mentioned above, we believe that we should understand the meaning of free. I would like to say something to myself as a forum.
People who have never been familiar with it often think that the Forum is very powerful and requires a huge investment cost. In fact, they are often cheated to spend a lot of money. In fact, all current forums use existing programs. The so-called existing programs are specialized forum companies. They provide such forums for free. All people can use discuz phpwind for forums. Their forum functions are the same, but the style is different. If you know the basic website production technology, you can modify the style.
Let me briefly describe the following steps:
First, you need to know what forum you want to do, that is, what forum you want to do and then apply for a good domain name, you need to apply for a meaningful record so that your website can be easily remembered.
The second is to purchase a virtual host, which is also called space or the virtual host in the service area, which is used to store Forum programs. For the virtual host you want to apply for, I think you just got started. 1 GB. otherwise, it would be too much and a waste of money. There are many so-called free virtual hosts on the Internet, but there are not all those that can be used in their own forums.
Third, go to the next discuz phpwind and select one of them. upload it to the VM and install it. The specific installation method is complicated. You 'd better know it first.
The fourth step is to help your domain name with your VM. you can use the domain name to access your website. write so much. you should have understood it. If you don't understand your family, I like people, and I like others to give me extra points.