Google Plus

How to install phpBB in Linux

Written by Mel Kham on . Posted in Linux tutorials

1.) Install all of the required software for phpBB3 forums:
sudo yum install mysql-server mysql-administrator mysql mysql-gui-common php-mysql


2.) Download, extract, and place the phpBB3 files:
The last step of the following commands will determine what address your guests type to get to your forums. I chose to use “forums” because it’s easier to remember than phpBB3. So, for example when you type http://yoursite.dyndns.org/forums, it will take you to the phpBB forums. You can change this to whatever you want.
wget http://superb-east.dl.sourceforge.net/sourceforge/phpbb/phpBB-3.0.4.tar.bz2

 tar -xjf phpBB-3.0.4.tar.bz2
 mv phpBB3/ /var/www/html/
 mv phpBB3 forums  

3.) Setup the mySQL Server:
First, setup a password for the root account:

 mysqladmin -u root password 'passwordyouwant'

Login to mySQL

 mysql -u root -p

Create the new phpbb database:
create database phpbb;

Create new user and password for database:
grant all privileges on phpbb.* to username identified by ‘password‘;

Flush the privileges:
flush privileges;

Test the mySQL Setup:
exit

 mysql -u username -p

enter password here
show databases;

The result should look similar to this:
+——————–+
| Database |
+——————–+
| information_schema |
| mysql |
| test |
| phpbb |
+——————–+
4 rows in set (0.29 sec)

4.) Install the phpBB3 forums:

To install the forums, you’ll need to navigate to the install directory in your browser (ie. Firefox). So, goto http://yoursite.dyndns.org/forums/install/index.php. This will walk you through the setup for the forums. Point phpBB to your mySQL database by filling in the following fields with this information:

Database type: mySQL with mySQLi Extention
Database server hostname or DSN: leave blank
Database server port: leave blank
Database name: phpbb
Database username: username
Database password: password
Prefix for tables in database: phpbb_

Click on the “Proceed to next step” button. You should get a “successful connection” message. If not, there is a problem with the database you created. Check to make sure that you’re not misspelling it.

From here, everything is pretty self explanatory. It will ask you to setup an administrator account and then it will try to automatically configure the config.php file. If you run into permission problems (like I did), you’ll have to open the file permissions by typing this command into the terminal:

 su -

 

 chmod 777 /var/www/html/forums/config.php

When you have completed the install, phpBB will remind you to delete or rename the installation directory. I suggest you delete it by using this command:

 rmdir --ignore-fail-on-non-empty /var/www/html/forums/install/

5.) Enjoy!

If everything went as it should, you should now be able to view and administer your own phpBB3 forums! If you encountered any problems, I would like to hear about them so that I can update the tutorial if needed. Also, you may refer to the official phpBB3 documentation here.

SHARETHIS.addEntry({ title: “Tutorial: Setup a Totally Free, Self-Hosted phpBB Forum”, url: “http://www.derekhildreth.com/blog/tutorial-setup-a-totally-free-self-hosted-phpbb-forum/” });ShareThis

 

Source  : derekhildrith

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • http://refurbishusedpc.com/ Refurbished Computers

    It’s really glad to read about the following topic

    which has enhanced my knowledge regarding topic and plus has

    given alot of ideas which I can think on.
    So I would say thank you to the blog owner for providing

    this amazing information.
    http://refurbishusedpc.com/

  • http://refurbishusedpc.com/ Refurbished Computers

    It’s really glad to read about the following topic

    which has enhanced my knowledge regarding topic and plus has

    given alot of ideas which I can think on.
    So I would say thank you to the blog owner for providing

    this amazing information.
    http://refurbishusedpc.com/

  • http://www.fighting-corruption.com shantanu dalal

    you are a star……………thank you sooooooo much i love you

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Pat L

|

I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.

SK

|

Yes we can. What kind of help you need? We are doing outsourcing and technical support for Linux and Open source worldwide. To know more about the details visit here.

ClintB

|

After install as above, run shell script /opt/Citrix/ICAClient/wfica.sh manually and note lib errors still occur. I had the x64 motif loaded but had to manually install the x86 too. Got that from http://rpmfind.net/linux/rpm2html/search.php?query=libXm.so.4 Even after that, I still had to do a “yum install alsa-lib.i686 alsa-lib.x86_64″ to resolve any additional libasound.so.2 errors. Once those two lib issues were resolved, Citix Web Interface launched apps fine by telling browser to open launch.ica using /opt/Citrix/ICAClient/wfica.sh. Good luck Ernesto!

AD

|

I need some Help on Linux,can you guide me ?

Edson Carlos

|

In debian no found. I need link download install in linux debian

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .