How to Install phpBB on CentOS 5.5

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

    [root@server 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 phpbbuser@localhost ;
    Query OK, 0 rows affected (0.01 sec)
    mysql> SHOW GRANTS FOR 'phpbbuser'@'localhost';
    | Grants for phpbbuser@localhost
    | 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

    [root@server phpbb]# pwd
    [root@server phpbb]# chmod 666 config.php

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

READ  How to Use chmod Command to Change Linux File Permissions


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

    [root@server phpbb]# pwd
    [root@server phpbb]# chmod 777 store/
    [root@server phpbb]# chmod 777 cache/
    [root@server phpbb]# chmod 777 files/
    [root@server 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

READ  How to Check and Verify the Version of Python on CentOS 6 / CentOS 7

* 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.

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

2 comments on “How to Install phpBB on CentOS 5.5

  • drzaco

    Need some help with installing phpBB3 on my VPS (CentOS 5.XX)
    for some reason i cant get passed the Test page. tryed everything….Please help
    Email me @

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>