Phpbb2HowTo

Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2006-03-01 05:02:05
Size: 3947
Editor: extslv3
Comment:
Revision 4 as of 2006-06-19 16:07:34
Size: 55
Editor: 127
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Installing PHPBB2 for Ubuntu - Part 1 =

1. Open up a terminal window.
2. Install the following if not already installed:

{{{
sudo apt-get install apache2
sudo apt-get install php5-mysql
sudo apt-get install mysql-server
}}}

3. During the mail server installation, select the following options if your not sure what else to use:
{{{Internet Site
localhost.localdomain (for the purposes of this install of phpbb, i just left this as default)}}}

4. Install the MYSQL database: (ignore the mysql instructions to change your password; proceed to step 5.)
{{{
mysql_install_db
}}}

5. Install Phpbb2:
{{{
apt-get install phpbb2
}}}

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

6. Setup the MySQL database:
{{{
sudo mysqladmin -u root password db_user_password
}}}

7. Type '''sudo mysql''' to enter into MySQL management.

8. At the mysql> prompt, type:
{{{
create phpbb2;
use phpbb2;
GRANT ALL ON phpbb2.* TO phpbb2@localhost IDENTIFIED BY "phpbb2_passwd";
}}}

9. Type:
{{{
exit
}}}

10. Back at shell 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
}}}

11. Now we need to edit the phpbb2 config file:
{{{
sudo vi /etc/phpbb2/config.php
}}}

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'.
{{{
$dbhost = 'localhost';
$dbname = 'phpbb2';
$dbuser = 'phpbb2';
$dbpasswd = 'phpbb2_password';
}}}
 
13. 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
}}}

= 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 =

Everything should now be installed and ready to go.

1. Launch your web browser and type in:
{{{
http://localhost/phpbb
}}}

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:
{{{
username = admin
password = admin
}}}

3. Once logged in, you should see a small link at the bottom of the page saying '''GotoAdministrationPanel'''

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

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

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


CategoryDocumentation CategoryCleanup
#REFRESH 0 http://help.ubuntu.com/community/Phpbb2HowTo

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