PHP Bulletin Board Home
News About Home
Features of phpBB Test drive phpBB Downloads Support for phpBB The phpBB Community Styles for customising phpBB 3rd party modifications to phpBB

Support Home | Knowledge Base Home | Submit Article | Search Articles | Browse Articles
 Installing phpBB2 for goDaddy 
Description: Stop pulling your hair out and read this instead.
Author: KakitaRei
Date: Mon Aug 04, 2003 9:40 pm
Type: Tutorial
Keywords: goDaddy, go daddy, go, daddy, install, installing
Category: Installing/upgrading/converting
Installing phpBB2 is a pain in the butt, as I recently found out. Hopefully this will stop someone else from going prematurely bald. *grin*

Pre-Installation:

1) Login to your goDaddy account.
2) In the YELLOW menu, click on Hosting List
3) Select Databases
4) Create a new MySQL Database. You’ll note that you don’t have an option to name the Database. This is because goDaddy automatically names the db the same thing as the username.
5) Upload all phpBB2 files to the directory where you want them to be. Keep file structure the same!
6) You need a modified install page. (I did, anyway). You can find it here: www.cryllia.net/phpBB2 upload this over your original install.php

Installation

1) Head over to your installation page. Note that if you are using subdomains, you have extra headache attached, and have to use your subdomain as a folder. IE crane.cryllia.net must be www.cryllia.net/crane don’t ask me why, its just picky like that.

2) hostname: mysql.secureserver.net
Database Name: your username
Database Username: your username
Database Password: the password you entered into goDaddy

3) fill out the rest as you like.

4) Hit install. Download the config.php. DO NOT UPLOAD IT YET!

5) You must edit the new config.php by removing all the ‘\’s so that it looks like this:

<?php


// phpBB 2.x auto-generated config file
// Do not change anything in this file!

$dbms = 'mysql';

$dbhost = 'mysql.secureserver.net';
$dbname = 'YOUR USERNAME';
$dbuser = 'YOUR USERNAME';
$dbpasswd = 'YOUR PASSWORD';

$table_prefix = 'phpbb_';

define('PHPBB_INSTALLED', true);

?>


6) Save this config.php and overwrite the one on your site with this one.

Post-Installation

1) Remove the Install and Contrib folders.
2) Get the old /includes/functions.php as this must also be modified. Overwrite the redirect fuction with this one:

[b]function redirect($url)
{
global $db, $board_config;

if (!empty($db))
{
$db->sql_close();
}

$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
//$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));

// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}
// Behave as per HTTP/1.1 spec for others
//header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
header('Location: ' . $url);
exit;
}[b]

3) Save and overwrite.

4) Get to the forum by going to the index.php. Note that if you have a subdomain it will direct you to your main domain. Watch this!

5) login and get down to the fun part!

Many thanks to soxie, Drexion, and SupremeWeapon for helping out (whether they knew it or not)

KakitaRei

Username: Password:
News | Features | Demo | Downloads | Support | Community | Styles | Mods | Links | Merchandise | About | Home
 © Copyright 2002 The phpBB Group.