Home > Backend Development > PHP Tutorial > Phorum Installation Guide_PHP Tutorial

Phorum Installation Guide_PHP Tutorial

WBOY
Release: 2016-07-13 17:24:58
Original
2194 people have browsed it

1. Install php, it is recommended to use php version 3.0.12 and above, but 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 higher. (www.tcx.se)
PostgreSQL 6.4.1 or higher. (www.postgresql.org)

3. If you don’t have a database yet, create one using "mysqladmin":

mysqladmin -uuser -ppassword create mydb
Use root user (empty password): mysqladmin create mydb

You can also use mysql:

mysql>create database mydb;

4. Make sure this user has select, insert, update, delete, create, alter and drop rights on the database .
A MySQL authorization statement for this user can look like this:

GRANT
select, insert, update, create, alter, delete, drop
ON
database.*
TO
user@localhost
IDENTIFIED BY
password;

If you use the root user directly, there is no need to proceed to step 4.

5. Create a table. Use *.sql in the db directory to complete this work. For example: in MYSQL, you can do this:
 
 > mysql -user -ppassword dbname Use root user (empty password) : mysql dbname
For example: mysql mydb



6. Modify common.php. (such as It’s not necessary, you can skip this step without modifying it)

a) Modify $inf_path to point to the directory where you put forums.php.
b) Modify $include_path to point to the directory where you put included files.
c) Modify $admindir to point to the directory where you put the admin file.
e) Set the name of the main management script ($admin_page) (the default is index.php).
f) Configure Phorum and your DBMS Interface. Modify this line:

require ./db/{yourdbms}.php;

Example: require ./db/mysql.php;

From the db directory Find the file you need.

Note for POSTGRESQL users: If you are using PostgreSQL 6.5 or newer, use the
postgresql65.php file. Others use the postgresql.php file.

7 . Enable the webserver to have write access to the admin/forums directory (only for Unix and Linux users)
 
  > cd admin
  > chmod 707 forums

8. Enable the webserver to have access to the configuration file. Write power (only for Unix and Linux users)
 
> cd [inf_path]
> chmod 707 forums.php
> chmod 706 forums.bak.php

9. Transfer the files to the web server. Virtualize the directory where phorum is stored 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. Enter the Admin management page, use http://localhost/phorum/admin/index.php

to select phorum setup, then database settings, and set the database connection Parameters

can also be completed by modifying phorums.php:

// initialize database variables Initialize database variables
$dbName=mydb; // Set database name
$dbUser =root; // Set user
$dbPass=; // Set user password
$dbServer=localhost; // Set database server

11. Select main to return to the main page, Select "new forum" to create a forum

12. ok, it's ready to use

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532092.htmlTechArticle1. Install php, it is recommended to use php version 3.0.12 and above, but Phorum can also be used in 3.0.6 It works, but there are some problems. Phorum has been tested under 3.0.12 and 4 beta 3. 2. Install the database. Mysql version...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template