Phpbb2HowTo

Differences between revisions 2 and 3
Revision 2 as of 2006-03-01 05:02:05
Size: 3947
Editor: extslv3
Comment:
Revision 3 as of 2006-03-24 12:05:30
Size: 3614
Editor: 203-206-49-178
Comment: removed from CategoryCleanup, added TOC & listed page on Servers page
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Installing PHPBB2 for Ubuntu - Part 1 = ||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents]]||
Line 3: Line 3:
1. Open up a terminal window.
2. Install the following if not already installed:
= Installation =

 * Install the following packages:
Line 12: Line 13:
3. During the mail server installation, select the following options if your not sure what else to use:  * During the mail server installation, select the following options:
Line 14: Line 15:
localhost.localdomain (for the purposes of this install of phpbb, i just left this as default)}}} localhost.localdomain}}}
Line 16: Line 17:
4. Install the MYSQL database: (ignore the mysql instructions to change your password; proceed to step 5.)   * for the purposes of this install of phpbb, i just left this as default
  * change the mail server option to suit your network, if necessary

 *
Install the MYSQL database: (ignore the mysql instructions to change your password; proceed to step 5.)
Line 21: Line 25:
5. Install Phpbb2:  * Install Phpbb2:
Line 26: Line 30:
Note: If you recieve password errors with steps 6 or 7 below, I found the easiest way around it is to just set up the database in PhpMyadmin which I have instructions for lower down the page Note: If you recieve password errors with Command-Line MySQL Setup steps below, try the PhpMyadmin Setup steps below the Command-Line MySQL steps.
Line 28: Line 32:
6. Setup the MySQL database: == Command-Line MySQL Setup ==
 
 *
Setup the MySQL database:
Line 33: Line 39:
7. Type '''sudo mysql''' to enter into MySQL management.  * '''sudo mysql'''
Line 35: Line 41:
8. At the mysql> prompt, type:  * At the mysql> prompt, type:
Line 42: Line 48:
9. Type:  * Type:
Line 47: Line 53:
10. Back at shell type: == PhpMyAdmin Setup ==

Note: Use this option if you're getting errors in the MySQL Setup steps above, or if you prefer using MyPhpadmin over command line

 * Assuming you have phpmyadmin installed, open a web browser and enter the address '''http://localhost/phpmyadmin'''

 * Log in, you should be able to just do this with the root user and password.

 * Under the '''MySQL''' heading, there is a subheading of '''Create new database''', just type in '''phpbb2''' and hit the '''Create''' button

 * Now select '''phpbb2''' from the dropdown menu on this side

 * Once selected, click the '''SQL''' tab at the top of the page
 
 * Type the following command in the '''Run SQL Query/Queries on database phpbb2:'''
{{{
GRANT ALL ON phpbb2.* TO phpbb2@localhost IDENTIFIED BY "phpbb2_passwd";
}}}

 * Click the '''Go''' button

= Post-Installation Setup =

 * Type:
Line 54: Line 83:
11. Now we need to edit the phpbb2 config file:  * Now edit the phpbb2 config file:
Line 59: Line 88:
12. By default, the password field is blank so you should only really need to add a password, just use the same one as above, whatever you used for 'phpbb2_passwd'.  * Change $dbpassword to reflect what was used for 'phpbb2_passwd' above.
Line 67: Line 96:
13. Type in the following commands:  * Type in the following commands:
Line 76: Line 105:
= Installing PHPBB2 for Ubuntu - Setting up the database via PhpMyadmin =

Note: You only really need to bother with this option if you're getting errors in steps 6 & 7 of Part 1 above, or if you prefer using MyPhpadmin over command line

1. Assuming you have phpmyadmin installed, open a web browser and enter the address '''http://localhost/phpmyadmin'''

2. Log in, you should be able to just do this with the root user and pass.

3. Under the '''MySQL''' heading, there is a subheading of '''Create new database''', just type in '''phpbb2''' and hit the '''Create''' button

4. Now you can select '''phpbb2''' from the dropdown menu on this side

5. Once selected, click the '''SQL''' tab at the top of the page

6. Type the following command in the '''Run SQL Query/Queries on database phpbb2:'''
{{{
GRANT ALL ON phpbb2.* TO phpbb2@localhost IDENTIFIED BY "phpbb2_passwd";
}}}

7. Click the '''Go''' button

8. Now continue on from step 10 onwards in Part 1 above.

= Installing PHPBB2 for Ubuntu - Part 2 =
= Configuration =
Line 103: Line 109:
1. Launch your web browser and type in:  * Launch your web browser and type in:
Line 108: Line 114:
With any luck, you should be displayed with a PHPBB2 webpage saying that the forum is disabled
2. Click Log in and use the default username and password of:
The PHPBB2 webpage should display that the forum is disabled.

 *
Click Log in and use the default username and password:
Line 115: Line 122:
3. Once logged in, you should see a small link at the bottom of the page saying '''GotoAdministrationPanel'''  * Click on the small link at the bottom of the page - '''GotoAdministrationPanel'''
Line 117: Line 124:
4. Click on that link and you should be presented with a list of Administration options, Select the link '''configuration''' which will be located under the sub heading '''General Admin''' down the lefthand side of the page  * Select the '''configuration''' link which is located under the sub heading '''General Admin''' on the lefthand side of the page.
Line 119: Line 126:
5. Set the option '''Disable Forum''' to '''No''' and click '''Submit''' at the bottom of the page  * Set the option '''Disable Forum''' to '''No''' and click '''Submit''' at the bottom of the page.
Line 121: Line 128:
Note: Also, don't forget to change your admin password as well.


CategoryDocumentation CategoryCleanup
Note: Also, don't forget to change the admin password as well.
----
CategoryDocumentation

Installation

  • Install the following packages:

sudo apt-get install apache2
sudo apt-get install php5-mysql
sudo apt-get install mysql-server
  • During the mail server installation, select the following options:

{{{Internet Site localhost.localdomain}}}

  • for the purposes of this install of phpbb, i just left this as default
  • change the mail server option to suit your network, if necessary
  • Install the MYSQL database: (ignore the mysql instructions to change your password; proceed to step 5.)

mysql_install_db
  • Install Phpbb2:

apt-get install phpbb2

Note: If you recieve password errors with Command-Line MySQL Setup steps below, try the PhpMyadmin Setup steps below the Command-Line MySQL steps.

Command-Line MySQL Setup

  • Setup the MySQL database:

sudo mysqladmin -u root password db_user_password
  • sudo mysql

  • At the mysql> prompt, type:

create phpbb2;
use phpbb2;
GRANT ALL ON phpbb2.* TO phpbb2@localhost IDENTIFIED BY "phpbb2_passwd";
  • Type:

exit

PhpMyAdmin Setup

Note: Use this option if you're getting errors in the MySQL Setup steps above, or if you prefer using MyPhpadmin over command line

  • Assuming you have phpmyadmin installed, open a web browser and enter the address http://localhost/phpmyadmin

  • Log in, you should be able to just do this with the root user and password.
  • Under the MySQL heading, there is a subheading of Create new database, just type in phpbb2 and hit the Create button

  • Now select phpbb2 from the dropdown menu on this side

  • Once selected, click the SQL tab at the top of the page

  • Type the following command in the Run SQL Query/Queries on database phpbb2:

GRANT ALL ON phpbb2.* TO phpbb2@localhost IDENTIFIED BY "phpbb2_passwd";
  • Click the Go button

Post-Installation Setup

  • Type:

sudo zcat /usr/share/doc/phpbb2/schemas/mysql_schema.sql.gz| mysql -u phpbb2 -p phpbb2
sudo zcat /usr/share/doc/phpbb2/schemas/mysql_basic.sql.gz| mysql -u phpbb2 -p phpbb2
sudo cp /usr/share/doc/phpbb2/examples/config.php /etc/phpbb2
  • Now edit the phpbb2 config file:

sudo vi /etc/phpbb2/config.php
  • Change $dbpassword to reflect what was used for 'phpbb2_passwd' above.

$dbhost = 'localhost';
$dbname = 'phpbb2';
$dbuser = 'phpbb2';
$dbpasswd = 'phpbb2_password';
  • Type in the following commands:

cd /etc/apache2/conf.d/
sudo ln -s /etc/phpbb2/apache.conf phpbb2.conf
cd /var/www
sudo rm -rf phpbb2
sudo /etc/init.d/apache2 restart        

Configuration

Everything should now be installed and ready to go.

  • Launch your web browser and type in:

http://localhost/phpbb

The PHPBB2 webpage should display that the forum is disabled.

  • Click Log in and use the default username and password:

username = admin
password = admin
  • Click on the small link at the bottom of the page - GotoAdministrationPanel

  • Select the configuration link which is located under the sub heading General Admin on the lefthand side of the page.

  • Set the option Disable Forum to No and click Submit at the bottom of the page.

Note: Also, don't forget to change the admin password as well.


CategoryDocumentation

Phpbb2HowTo (last edited 2008-08-06 16:39:41 by localhost)