Phpbb2HowTo
Differences between revisions 3 and 4
3614
Comment: removed from CategoryCleanup, added TOC & listed page on Servers page
|
55
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents]]|| = 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 |
#REFRESH 0 http://help.ubuntu.com/community/Phpbb2HowTo |
Phpbb2HowTo (last edited 2008-08-06 16:39:41 by localhost)