How to Install phpBB on CentOS 5.5

Share this Article :

In this post, i will show you simple steps to install phpBB on CentOS server. This guideline assume that you have already installed apache, mysql and php that meeting the requirement below. For information, phpBB3 has a few requirements which must be met before you are able to install and use it.

a. A webserver or web hosting account running on any major Operating System with support for PHP. In this tutorial, we wil use apache httpd.
b. A SQL database system. In this tutorial, we use mysql database server
c. PHP 4.3.3+ (>=4.3.3, >4.4.x, >5.x.x.
d. getimagesize() function need to be enabled.

Database Preparation:
Database Type : MySQL
Database Name : phpbbdb;
Database Username : phpbbuser
Database password : phpbbpassword
Database Port : 3306

    [[email protected] phpbb]# mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 41
    Server version: 5.0.77 Source distribution
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    
    mysql> CREATE DATABASE phpbbdb;
    Query OK, 1 row affected (0.01 sec)
    
    mysql> CREATE USER 'phpbbuser'@'localhost' IDENTIFIED BY 'phpbbpassword';
    Query OK, 0 rows affected (0.01 sec)
    
    mysql> GRANT ALL PRIVILEGES ON phpbbdb.* to [email protected] ;
    Query OK, 0 rows affected (0.01 sec)
    
    mysql> SHOW GRANTS FOR 'phpbbuser'@'localhost';
    +-----------------------------------------------------------------------------------------
    +
    | Grants for [email protected]
    |
    +-----------------------------------------------------------------------------------------
    +
    | GRANT USAGE ON *.* TO 'phpbbuser'@'localhost' IDENTIFIED BY PASSWORD '6584352d49fe4d8c'
    |
    | GRANT ALL PRIVILEGES ON `phpbbdb`.* TO 'phpbbuser'@'localhost'
    |
    +-----------------------------------------------------------------------------------------
    +
    2 rows in set (0.00 sec)
    
    mysql> exit
    

Installation Steps
1. Download phpBB3 file and Decompress the phpBB3 archive to a local directory on local system
2. Upload all the files to your root directory of CentOS server.
3. Change the permissions on config.php to be writable by all (666 or -rw-rw-rw-). This can be perform from your FTP Client or ssh. If ssh, run below command

    [[email protected] phpbb]# pwd
    /var/www/phpbb
    [[email protected] phpbb]# chmod 666 config.php
    

4. Change the permissions on the following directories to be writable by all (777 or -rwxrwxrwx).

Also Read :   How to Install CentOS 5.7 Server Part 2

store/
cache/
files/
images/avatars/upload/

This can be perform from your FTP Client or ssh. If ssh, run below command:

    [[email protected] phpbb]# pwd
    /var/www/phpbb
    [[email protected] phpbb]# chmod 777 store/
    [[email protected] phpbb]# chmod 777 cache/
    [[email protected] phpbb]# chmod 777 files/
    [[email protected] phpbb]# chmod 777 images/avatars/upload/
    

5. To start the installation, navigate your web browser to the location you placed phpBB3 with the addition of install/index.php or pointing directly to install/

Example : http://localhost/phpbb3/install

6. These are the menu that you will go through. Just click Next Step and Start Install

Also Read :   How to Add Persistent Static Routes in Windows

* Introduction
* Requirements
* Database settings
* Administrator details
* Configuration file
* Advanced settings
* Create database tables
* Final stage

7. During the installation, database connection will be test. If everything seems OK, test connection result will be successful and you can proceed to the installation.

phpbb
8. On Advanced settings, you will need to configure E-mail settings.


2 Comments

  1. drzaco
  2. olivedev

Leave a Reply