Phorum Installation Guide

Source: Internet
Author: User

1. install php. We recommend that you use php 3.0.12 or a later version. However, Phorum can also work under 3.0.6, but there are some problems.
Phorum has been tested under 3.0.12 and 4 beta 3.

2. Install the database.
Mysql version 3.22.x or later. (www. tcx. se)
PostgreSQL 6.4.1 or later. (www.postgresql.org)

3. If you do not have a database, use "mysqladmin" to create one:
 
Mysqladmin-uuser-ppassword create mydb
Use the root user (empty password): mysqladmin create mydb

You can also use mysql:

Mysql> create database mydb;

4. confirm that this user has the right to select, insert, update, delete, create, alter, and drop databases.
A MySQL authorization statement for this user can be as follows:

GRANT
Select, insert, update, create, alter, delete, drop
ON
Database .*
TO
User @ localhost
IDENTIFIED
Password;

If you use the root user directly, you do not need to perform step 4.

5. Create a table. Use *. SQL In the db directory to do this. For example, in MYSQL, you can do this:
 
> Mysql-uuser-ppassword dbname <mysql. SQL
Use the root user (empty password): mysql dbname <mysql. SQL

For example, mysql mydb <drive: pathmysql. SQL


 
6. Modify common. php. (skip this step unless necessary)

A) Modify $ inf_path to the directory where you put forums. php.
B) modify $ include_path to the directory where the stored ded file is stored.
C) Modify $ admindir to the directory where you put the admin file.
E) set the name of the main management script ($ admin_page) (index. php by default ).
F) configure the Phorum and your DBMS interfaces. modify this line:

Require./db/{yourdbms}. php;

Example: require./db/mysql. php;

Find the file you need from the db directory.

Note: If you use POSTGRESQL 6.5 or an updated version, use
Postgresql65.php file. Other postgresql. php files are used.

7. Enable webserver to write the admin/forums directory (only for Unix and Linux Users)
 
> Cd admin
> Chmod 707 forums

8. Enable webserver to write the configuration file (only for Unix and Linux Users)
  
> Cd [inf_path]
> Chmod 707 forums. php
> Chmod 706 forums. bak. php

9. Transfer the file to the web server. virtualize the directory storing phorum into the web virtual directory phorum.

Note: If this is your first installation, You need to rename these files:

Forums. php-dist => forums. php
Forums. bak. php-dist => forums. bak. php
Header. php-dist => header. php
Footer. php-dist => footer. php

10. Go to the Admin Management page and Use http: // localhost/phorum/admin/index. php

Select phorum setup and database settings to set the database connection parameters.

You can also modify phorums. php:

// Initialize database variables
$ DbName = mydb; // set the Database Name
$ DbUser = root; // set the user
$ DbPass =; // set the User Password
$ DbServer = localhost; // set the Database Server

11. Select main to return to the home page and select "new forum" to create a forum

12. OK. You can use it.

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.