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
    /var/www/phpbb
    [root@server phpbb]# chmod 666 config.php
    

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

See also  9 Steps to Setup Dedicated Server for your Website

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

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

    [root@server phpbb]# pwd
    /var/www/phpbb
    [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

See also  How to Install Wordpress on CentOS 6.4

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

How to Reset the Directory Manager Password on RHEL 7 / CentOS 7
How to Reset the Directory Manager Password on RHEL 7 / CentOS 7

It is best practice to remember passwords, but because too many passwords, sometimes we forget. We are not encouraged to write the password on any paper or share the password...

How to Find Big Files Size on Linux RHEL/CentOS
How to Find Big Files Size on Linux RHEL/CentOS

As the linux administrator, sometimes we have to identify which files are most take much space in the linux server resulting in low free space. Low disk space can also...

Why Linux users should worry about malware and what they can do about it
Why Linux users should worry about malware and what they can do about it

Don’t drop your guard just because you’re running Linux. Preventing the spread of malware and/or dealing with the consequences of infection are a fact of life when using computers. If...

How to Reset Forgotten Root Password on Linux RHEL 7 / CentOS 7
How to Reset Forgotten Root Password on Linux RHEL 7 / CentOS 7

This short howto will explain the steps to reset a lost root password or to reset a forgotten root password on Linux RHEL 7 or CentOS 7. Basically, we will...

How to Update CentOS or Upgrade CentOS to the Latest Version
How to Update CentOS or Upgrade CentOS to the Latest Version

Recently, the latest version of CentOS 7.3 was released. All users of CentOS 7.0, 7.1 and 7.2 can upgrade their system to the most recent. This quick guide will explain...

How to Change your WordPress Username, Nickname and Display Name in MySQL
How to Change your WordPress Username, Nickname and Display Name in MySQL

After you create an account log in WordPress, you may want to change your WordPress username, as appropriate or due to security reason. However, you can not do this from...

How to Enable SSH Root Login on Ubuntu 16.04
How to Enable SSH Root Login on Ubuntu 16.04

As what we wrote in the previous article on how to allow SSH root on Ubuntu 14.04, after installing a fresh new copy of Ubuntu 16.04 LTS, we find that...

How to Change UUID of Linux Partition on CentOS 7
How to Change UUID of Linux Partition on CentOS 7

UUID (Universally Unique IDentifier) should be unique and it is used to identify storage devices on a linux system. If you cloned a virtual machine from vCenter, the metadata containing...

2 Comments

Leave a Reply to olivedev Cancel reply

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