Error after moving install directory from root to subfolder

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
rudswa
Registered User
Posts: 33
Joined: Tue Nov 08, 2011 3:33 pm
Contact:

Error after moving install directory from root to subfolder

Post by rudswa »

Support Request Template
What version of phpBB are you using? phpBB 3.2.4
What is your board's URL? www.ohsclub.com
Who do you host your board with? hostgator
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? Yes
What extensions do you have installed? No answer given
What styles do you currently have installed? quart_cherry_light
What language(s) is your board currently using? english
Which database type/version are you using? I Don't Know
What is your level of experience? New to PHP but not phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? No answer given
Please describe your problem. I am trying to move phpbb install directory to a new subfolder named "ohsclub.com". I changed script path to "/ohsclub.com" in ACP and moved all phpbb folders and files to the sub folder. But I am getting the below error while trying to access the website.

HTTP Error 403 - Forbidden
The Web server is configured to not list the contents of this directory or you do not have enough permissions to access the resource

Error. Page cannot be displayed. Please contact your service provider for more details. (20)


How to rectify it? please.
Attachments
Cabpture.PNG
rudswa
Registered User
Posts: 33
Joined: Tue Nov 08, 2011 3:33 pm
Contact:

Re: Error after moving install directory from root to subfolder

Post by rudswa »

OK. I tried new url

http://ohsclub.com/ohsclub.com/ it started working.
rudswa
Registered User
Posts: 33
Joined: Tue Nov 08, 2011 3:33 pm
Contact:

Re: Error after moving install directory from root to subfolder

Post by rudswa »

rudswa wrote: Sun Dec 16, 2018 1:50 pm OK. I tried new url

http://ohsclub.com/ohsclub.com/ it started working.
Anyway to change the url again in to "http://ohsclub.com/"
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6673
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Error after moving install directory from root to subfolder

Post by HiFiKabin »

Firstly please keep in mind that we have a six hour bumping rule. All team members and community members here are volunteers, so we ask you to wait at least six hours before bumping your topic or, if no-one has replied to your last post, edit your last post. Thanks!

Secondly, what exactly are you wanting to achieve?
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26506
Joined: Fri Aug 29, 2008 9:49 am

Re: Error after moving install directory from root to subfolder

Post by Mick »

You need to check your cookie settings, it appears you're using https as cookie secure is enabled? You may need to use a redirect from http to https. Your Cookie domain shows ohsclub.com and it should be .ohsclub.com, note the leading dot. Your cookie path is unset see Fixing incorrect cookie settings
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Error after moving install directory from root to subfolder

Post by Lumpy Burgertushie »

and you should not have "http://ohsclub.com/ohsclub.com"

if you want your board to be at http://ohsclub.com then put the phpbb folders /files in the site root.

not sure what you were trying to do by creating a folder named ohsclub.com under the root that was already named ohsclub.com


move all the files and folders up one level to the root. then remove the subfolder named ohsclub.com

that is how you get what you want.


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.
User avatar
EA117
Registered User
Posts: 2158
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Error after moving install directory from root to subfolder

Post by EA117 »

If you're in the situation of having a single hosting account which allows you to have multiple sites / multiple domains pointed to this single hosting account, and you're trying to move your existing ohsclub.com site into its own subfolder so that in the near future you can create additional sites which will also be "confined" to their own separate subfolders, I think the feature you're looking for is in your HostGator account as "Sub-Domains".

It's not something that phpBB controls, but every web server instance HostGator is providing has a VirtualHost directive to associate a given DNS name to a specific DocumentRoot directory. Currently your ohsclub.com domain name is associated to what you see as your root directory. And the change it appears you're intending to make is that you wish that HostGator treated the ohsclub.com domain name to have a DocumentRoot of /root/ohsclub.com/ instead. Such that then you can setup other sites with their own DNS name to direct to /root/site2.ohsclub.com/, /root/otherdomain.com/, etc.

It might be safest to just talk to HostGator support about your goal here, in case they know of additional things or configurations you need to consider in order to achieve the result you want. Someone here might happen to have HostGator experience and be able to speak first-hand to what is needed within their specific services, but you can just talk to HostGator support directly and have them look at your specific configuration.

Simply "moving the site to a subdirectory" within a single web server instance is something people do when instead of "phpBB is the only thing my ohsclub.com site has" they are transitioning to "phpBB is just one of multiple things my ohsclub.com site has." And consequently they want their phpBB instance to be accessed by visitors as "ohsclub.com/forum" or similar now, instead of being at the root. That's what you achieved with your current move, making your phpBB site accessible as "ohsclub.com/ohsclub.com", but that doesn't appear to be what you really wanted.
rudswa
Registered User
Posts: 33
Joined: Tue Nov 08, 2011 3:33 pm
Contact:

Re: Error after moving install directory from root to subfolder

Post by rudswa »

Thanks for such a detailed explanation. Yes, I have multiple sites in a single hosting account and I was just trying to move phpbb files from root to a sub folder so that all other sites folders are clearly visible for easy access. I will contact HostGator for support.
Last edited by Mick on Mon Dec 17, 2018 9:36 am, edited 1 time in total.
Reason: Removed unnecessary quoting.
Post Reply

Return to “[3.2.x] Support Forum”