Page 1 of 1

phpbb2 installation problem

Posted: Sat Mar 06, 2004 6:56 pm
by bllott
I am having trouble installing my phpbb2 board. When I go to install it in the main directory in my hosting service I get the following message:
We are going to install this board in /home/moneyonf/public_html/
Error: /home/moneyonf/public_html/ already exists
And I cannot install it in the top directory which is the www or public_html
directory.

Consequently, I cannot access my forum at my domain (ex. http://www.mydomain.com ) and I have to create it in another directory (ex. www/forum or public_html/forum) This means that I will have to type in (ex. http://www.mydomain.com/forum) to access the forum

Please help me around this, my aim is to have to forum installed in the top directory and to have the Forum index as my home page.

Posted: Sat Mar 06, 2004 9:19 pm
by Dale
In your top directory either use a frame or use this code in a index.php page that you can put in your top directory. It should work:

Code: Select all

header("Location: http://www.yourdomain/forums/");

Posted: Sun Mar 07, 2004 12:41 am
by bllott
Thanks, I tried what you said, first I will give you the set up I had of my directories before changing what you said

www also known as public_html is my main directory.

under www I had

-cgi_bin
-forum

In forum was where all the files for my forum were

I did what you suggested the following way.

I went into the forum directory and I moved the index.php file into the www main directory so

under www I now have

-cgi_bin (directory)
-forum (directory)
index.php (file)

I then edited that file like you said and added the line:

Code: Select all

header("Location: http://www.yourdomain/forums/");
after this I went to my main domain ( http://www.mydomain.com ) and I got the following error:
Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/moneyonf/public_html/index.php on line 25

Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/moneyonf/public_html/index.php on line 25

Warning: main(./common.): failed to open stream: No such file or directory in /home/moneyonf/public_html/index.php on line 26

Warning: main(): Failed opening './common.' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/moneyonf/public_html/index.php on line 26

Warning: Cannot modify header information - headers already sent by (output started at /home/moneyonf/public_html/index.php:25) in /home/moneyonf/public_html/index.php on line 28

Fatal error: Call to undefined function: session_pagestart() in /home/moneyonf/public_html/index.php on line 34
I may have not added the line you suggested in the right place.

Where should I add that line? is there something else I have to do?

Posted: Sun Mar 07, 2004 7:42 pm
by bllott
I discovered what how to make it work

If you have a forum that's in a folder on your website and want it to appear when you simply type your homepage url, put the following as the index file. Make sure it's a "index.php" file.

"<?php header("Location:http://www.domainname.net/forums/index.php");?>"

Use whatever domain/directory you have inplace of what is above.