installing in the root directory (/ instead of /phpbb2)

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
spytrdr
Registered User
Posts: 10
Joined: Tue May 04, 2004 1:56 am
Contact:

installing in the root directory (/ instead of /phpbb2)

Post by spytrdr »

i've tried installing phpbb in the root directory ("/") instead of "/phpbb2/" or "/forum/" on one of my websites that is intended to be just a forum, and everything went fine, EXCEPT that there were permission problems and errors when trying to go to the administration panel of the board, making it ok to use but impossible to administer, even though the "script path" had been set to "/" during installation, and the admin account had been created as usual.
the idea is that when people go to http://www.domain.com they fall right into a discussion forum.
i had to resort to reinstalling phpbb2 on /forum/ and redirect those who go to http://www.domain.com to http://www.domain.com/forum .
but there must be an easy solution to this riddle, can anyone help?
and also, are there any risks in running phpbb in this way?
Last edited by spytrdr on Sun Sep 21, 2008 9:27 am, edited 5 times in total.
User avatar
BAGHDAD-RAWA
Registered User
Posts: 1196
Joined: Mon Nov 08, 2004 3:32 pm
Location: IN this world
Contact:

Post by BAGHDAD-RAWA »

hi

there is no risk to run phpbb on the root


but you could install it on /phpbb2/ folder for example

and in the domain root u could make HTML page with a nice background with word ENTER FORUM and you link it to www.yoursite.com/phpbb2/index.php


good luck
-------------------------------------------------------------------------------------
Home PC and Laptop Repairs Call OnSite Service 24/7 in London |
Knowledge Base 2.0||Support Request Template|
--------------------------------------------------------
jko
Registered User
Posts: 104
Joined: Thu Jun 20, 2002 8:47 pm

Post by jko »

I've got my site set up to run from the root with no problems. Can't think of any reason for being unable to get into the admin scripts - check the permissions on that directory and the files in it.

John
spytrdr
Registered User
Posts: 10
Joined: Tue May 04, 2004 1:56 am
Contact:

Post by spytrdr »

tried again installing phpbb2 on root (/) on another website, and same thing, from a user's perspective everything is ok but this is the message i get when trying to access the board's admin control panel:

Forbidden
You don't have permission to access /admin/index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
spytrdr
Registered User
Posts: 10
Joined: Tue May 04, 2004 1:56 am
Contact:

Post by spytrdr »

i opened admin/index.php with a text editor and found the following line, looks like it may have something to do with my problem...

$phpbb_root_path = "./../";
jko
Registered User
Posts: 104
Joined: Thu Jun 20, 2002 8:47 pm

Post by jko »

spytrdr wrote: i opened admin/index.php with a text editor and found the following line, looks like it may have something to do with my problem...

$phpbb_root_path = "./../";

That's what's in mine too :?

John
User avatar
BAGHDAD-RAWA
Registered User
Posts: 1196
Joined: Mon Nov 08, 2004 3:32 pm
Location: IN this world
Contact:

Post by BAGHDAD-RAWA »

spytrdr wrote: tried again installing phpbb2 on root (/) on another website, and same thing, from a user's perspective everything is ok but this is the message i get when trying to access the board's admin control panel:

Forbidden
You don't have permission to access /admin/index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


hi

this error its server-side problem not PHPBB :!:
-------------------------------------------------------------------------------------
Home PC and Laptop Repairs Call OnSite Service 24/7 in London |
Knowledge Base 2.0||Support Request Template|
--------------------------------------------------------
spytrdr
Registered User
Posts: 10
Joined: Tue May 04, 2004 1:56 am
Contact:

Post by spytrdr »

Ok, and is there a workaround to this server-side problem that makes phpBB usable but impossible to administer when installed in the root directory of a site? I'm on a dedicated server with Plesk as control panel. Any help or tip will be appreciated.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69224
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie »

the problem is that plesk used the root/admin/ directory for it's control panel,

you need to either install it a level down with a redirect of ask your host what to do about it.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
spytrdr
Registered User
Posts: 10
Joined: Tue May 04, 2004 1:56 am
Contact:

Post by spytrdr »

A tech rep at my webhost finally solved the issue a few weeks ago.
It was related to Tomcat being installed on my server. One must either uninstall Tomcat, or comment Tomcat out of httpd.conf.
vi /etc/httpd/conf/httpd.conf
#Include /etc/httpd/conf/mod_jk.conf
This stops the aliasing of /admin and one is now able to install (AND administer) phpbb in /.
I'm running phpBB now at several sites of mine at www.DOMAIN.tld without any troubles.
I'm posting this in case someone else experiences a similar problem.
Locked

Return to “2.0.x Support Forum”