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 phpBB 2.0.6 at lycos.co.uk 
Description: Instructions on how to install phpBB 2 at the free host tripod/lycos.co.uk
Author: aparsons
Date: Sat Dec 06, 2003 1:08 am
Type: Tutorial
Keywords: instructions, setup, set-up, set up, install, procedures, tripod, lycos, free, host, server, headers already sent
Category: Installing/upgrading/converting
Installing phpBB2 2.0.6 at lycos.co.uk

Don't let the length of this tutorial scare you off. It is really very easy to do. After you files are uploaded, expect to be running in a few minutes.

Go to phpbb.com and click on the "Downloads" button. Look for:

phpBB 2.0.6 [ Full Package ].

After clicking on the zip icon for the download, locate (on your computer) a place to save the file. Then click on "new folder" and name the folder "phpBB-2.0.6". Open this folder, then save the Zip file into this folder on your computer. You will now have a folder (named phpBB-2.0.6) on your computer with a zip file in it that is also named "phpBB-2.0.6".

Unzip the file into the same folder. You will now have the zipped file and an unzipped folder named phpBB-2.0.6.

In the "docs" directory (folder) there are files named "install", "FAQ" and "readme". You should read these.

If you are not sure whether you have activated your PHP and MySQL database, go to your "My Account" page and log in. Scroll down and make sure PHP and MySQL are activated.

It is a good idea to now go to the "PHP4U" link, which is lower on the same page. When you click on this, you will see a page with "Manage your database". Listed here are the database parameters that the install program will ask you for. Note these for later use.

Quote:
Your database information:
Name: scubausa_uk_db
Username: scubausa
Password: no password needed
Host: localhost


Your username will appear in place of "scubausa" above.

Now click on the "Manage your database" link. You should see a small window open and be able to view your database using PHPMyAdmin. If you see "Access Denied" your MySQL server is down, and you cannot install at this time. If, after repeated attempts (over several days) you still get "Access Denied", you might want to speed things up by deleting your account (!) and re-signing up with a different site name, starting with a different letter. For instance, at the time of this writing, sites starting with "a" are having problems. The database server for these accounts is the problem. Choosing another name might work.

Now we are ready to put the files onto the server at Lycos.

There are a number of options:

Your first choice would be an ftp program, such as FileZilla or WS_FTP LE. This is fast, easy, and less prone to mistakes. The problem may be that you are unable to connect to lycos using ftp . Not everyone can. Rather than debate the reasons for this, we must just deal with it. Try ftp first. If you haven't done it before, you can probably still download the program, install it, learn to use it, and upload your files in less time than it would take using WebFTP. If you cannot connect using ftp, try web2ftp or PHP Unzipper before using WebFTP as a last resort.

Upload all the files, preserving the directory structure as it was when you unzipped it. It takes 10 min or so with a cable modem and an ftp program. You can upload using WebFTP but you must create all the directories yourself, select the files one at a time, and upload them in groups of up to 8 files. You won't enjoy it. Remember, you MUST preserve the directory structure.


Uploading with WS_FTP LE:

In "Session Properties/Advanced" be sure WS_FTP LE is in passive mode
Use the "auto" checkbox on the main screen so it will upload images in binary and text in ASCII.

In "Session Properties/General" on WS_FTP LE use:


    Host Name/Address: ftp.members.lycos.co.uk
    Host Type: UNIX (standard)
    User ID: your lycos username
    Password: your lycos ftp password
    Account: leave this blank
    Click "ok" to connect with lycos.

With WS_FTP LE, you locate the directory where you unzipped phpBB in the left window, then select the folder "phpBB2". Do not select the folder "phpBB-2.0.6". Click on it and you will see it contains the folder "phpBB2".

Next locate the directory you want to place the new phpBB2 directory into (at lycos.uk) in the right window. This is most likely going to be your "username" directory. So your files will go into "/username/phpBB2". Click on the right-pointing arrow to upload the files and folders. Answer "yes" when it asks if you want to upload the directories and their contents.

Be sure everything is in the directory "phpBB2" on the server.

Make sure config.php uploaded. WS_FTP LE will upload this file but WebFTP will not. If it is not there, use WebFTP and create it with the "New File" button. This is a file of size "0". This file must be size zero or you will get an error.


Installing the forum

Using a web browser, go to

http://members.lycos.co.uk/username/phpBB2/install/install.php

Replace "username" in the above URL with your username. If you named the directory (where you installed your files) "phpBB2" you will go to the install page, otherwise change the URL to the directory you put your files into.

Some of the fields on the install page are already filled in. Fill in the needed information.

Quote:

Database Configuration
server: localhost
database name: username_uk_db
database username: username
database password: leave this field blank
Prefix for tables in database: phpbb_


Admin Configuration
Admin Email: enter an email address
Domain Name: members.lycos.co.uk
Server Port: 80
Script Path: /username/phpBB2/
Administrator Username: this will be the administrators name on the message board once it is running.
Adimistrator Password: enter a password for access to administrator areas
Admistrator Password (confirm): re-enter the password


As always, replace "username" and "username/phpBB2" with your Lycos username and the directory you are installing into. Then click on the "Start Install" button.

At this point, the installer will require you to delete the "install" and "contrib" directories. Just delete them at lycos, not on your home computer.

After it is installed, access your new message board at:

http://members.lycos.co.uk/username/phpBB2

Post-Installation Edits

Some things don't work exactly right at lycos because of the way the server is configured, security issues or ads I guess. I had some warnings that would appear when new users registered. The fix is posted at the phpbb site. To correct this, edit the file:

/phpBB2/includes/page_header.php

At the VERY END of this file you will find:

Quote:

// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');


?>


The edit is the addition of '@' symbols in the code above, to give:

Quote:

// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
@header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
@header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
@header ('Expires: 0');
@header ('Pragma: no-cache');

$template->pparse('overall_header');


?>


This is from the phpbb forums. See the thread below.

http://www.phpbb.com/phpBB/viewtopic.php?t=14152

Possible Problems

If an installation fails, the tables may have been created. If so, you can either delete the tables and re-install, or manually create the config.php file. You will know if you get an error stating a table already exists.

"Also make sure that config.php has exactly 19 lines, no blank spaces at the end of the lines and no additonal code ." The link below describes how to manually create config.php.

http://www.phpbb.com/phpBB/viewtopic.php?t=19243

Or, using your browser go to username/phpBB2l/contrib/dbinformer.php and enter the information, checking "Generate a config file". dbinformer.php is also useful for troubleshooting other installation problems.

No chmod()ing is needed at lycos.

The most common problem seems to be improper uploading of the files. If an error says that a file can't be found, expect an error uploading. If you don't know what "directory structure" refers to, don't upload with WebFTP until you do.

OtherPost-Installation Tasks

The first thing you will want to do is log in as the Administrator, go down to the "Administration Panel" link at the bottom, and go the the administration area. There, click on "Configure" and get to work. It is good to enable GZIP at lycos. Configuring your message board is explained in the phpBB User's Guide

Also, note that lycos does not support using SMTP mail. Sometimes the mail is down at lycos, but it does usually work. SMTP will not work because of disabled functions.

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