Configuration of network servers in debian-Linux Enterprise applications-Linux server application information. For details, see the following section. Set up a PHP Forum In Debian
To set up a forum in linux, You must select the prime combination Lamp (Linux/Apache/MySQL/PHP). Because it is a beginner, you have not chosen to compile and install it. You can directly use apt, it is much easier than windows.
After you press enter, the installation is complete. If you have to download the installation package from various official websites in windows, it is really troublesome.
Okay, the software package is installed, and the next step is debugging.
First configure apache, open/etc/apache/httpd. conf, and find DirectoryIndex:
It actually adds support for the default homepage.
Change the default character to adddefacharcharset gb2312. Save and restart apache.
#/Etc/init. d/apache restart
Next, configure mysql. Because the default root account does not have a password, add the password to the root account for security:
# Mysqladmin password
Edit/etc/init. d/mysql and find this line:
Similarly, modify/etc/php4/apache/php. ini and change default_charset to "gb2312.
In the same way as in windows, first perform a small test and create a phpinfo. php file. Enter Put it under/var/www, and enter http: // ip/phpinfo. php In the browser. If some php information appears, it indicates that php and apache have been successfully configured.
Then we started to set up a forum, go to www.phpbb.cn to download the new phpbb Chinese version, and decompress it. in the/var/www directory and run it, the installation Forum Wizard will appear. Here, you are required to specify a database name, so you must first create a database in mysql.
# Mysql-u root-p password
Mysql> create database bbs;
On the installation page, enter bbs in the database column.
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