|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Registered
Join Date: Jun 2011
Location: Dublin
Posts: 3
Reputation: 0
|
What if files are located outside htdocs?
First I'm powweb user. And I've 5 blogs.
But all blog's files are outside htdocs folder. Once my support said me that I should create folders inside htdocs. What's the matter. I can't understand |
|
|
|
|
|
#2 |
|
Custom User Title
Join Date: Sep 2004
Location: Mass
Posts: 2,119
Reputation: 293
|
folders/files in htdocs are web-viewable. folders/files outside htdocs are only accessible by scripts.
|
|
|
|
|
|
#3 |
|
Former Spam Filter (EU)
Join Date: Mar 2004
Location: Washington (THE original UK one!)
Posts: 12,805
Reputation: 470
|
Unless they're setup as sub-domains or 'pointed' additional domains.
__________________
This is a Powweb customer
helping Powweb customer forum. I am a customer just like you!! Some matters can only be answered by staff or support. Give it a go - ask here first! ![]() |
|
|
|
|
|
#4 |
|
Custom User Title
Join Date: Sep 2004
Location: Mass
Posts: 2,119
Reputation: 293
|
Indeed, thanks for clarification.
|
|
|
|
|
|
#5 |
|
Mod.. with bite..
Join Date: Sep 2002
Location: Australia
Posts: 7,295
Reputation: 442
|
Some things will not work as expected outside of htdocs but as things are working for you that way great! Wordpress is flexible and easily moveable should you have problems.
|
|
|
|
|
|
#6 |
|
Join Date: Mar 2002
Location: Southampton, UK
Posts: 204
Reputation: 107
|
my sites are all inside the main htdocs, for example:
htdocs/site1/htdocs/ htdocs/site2/htdocs There is a .htaccess in the top htdocs that points to the correct site.
__________________
Tony Payne Off The Record With Debbie And Tony The Laughline Squidblogs The Michiana Directory |
|
|
|
|
|
#7 |
|
Join Date: May 2007
Location: Philippines
Posts: 41
Reputation: 24
|
I have several domains. On epointing to htdocs, the others pointing outside htdocs, each to their own directory. One domain is for a forum (SMF) that has run without a glitch for over five years. Now support tell me that it can only work when it is inside htdocs?
Very confused. |
|
|
|
|
|
#8 |
|
Join Date: May 2007
Location: Philippines
Posts: 41
Reputation: 24
|
|
|
|
|
|
|
#9 |
|
Join Date: Nov 2007
Location: In the Cyber World
Posts: 38
Reputation: 51
|
If you are running PHP applications, it is better to create sub domain name directories within htdocs folder as it is root directory of your hosting account and the temporary account URL points to it. Creating directories outside htdocs may arise some permissions issue with PHP files. Even, the help link at http://www.powweb.com/knowledgebase/...?ArticleID=172 suggests to create sub domain directories within root (htdocs) folder. Also, note that the cgi-bin directory where the sessions will be stored is within htdocs folder.
|
|
|
|
|
|
#10 |
|
Join Date: May 2007
Location: Philippines
Posts: 41
Reputation: 24
|
Thank you . Will read this again, but ......
It has worked for five years and now suddenly it does not work anymore. What has changed since three days ago. btw if I understand the link you provided (and which I had seen before) you can have other directories, as long as they have an htdocs inside .. Create an htdocs folder within the subdomain directory. Example: /subdomain/htdocs |
|
|
|
|
|
#11 |
|
Join Date: Nov 2007
Location: In the Cyber World
Posts: 38
Reputation: 51
|
The cause might be the change of permissions for the account root / (not htdocs). I'm not sure about it and support may provide the exact reason.
|
|
|
|
|
|
#12 |
|
Join Date: May 2007
Location: Philippines
Posts: 41
Reputation: 24
|
I have an htdocs inside a directory and everything seems to work fine now.
|
|
|
|
|
|
#13 |
|
Join Date: Feb 2009
Location: India
Posts: 165
Reputation: 32
|
Its not suggested to have contents outside htdocs. I have seen scripts out side htdocs work fine. Buts its not suggested rest all yours if its working fie don't bother
|
|
|
|
|
|
#14 | |
|
Join Date: May 2007
Location: Philippines
Posts: 41
Reputation: 24
|
Quote:
All I can find are the Powweb tutorials (see earlier links in this thread) and those explicitly allow other directories in the root in addition to htdocs, phpsessions etc. Also I find the words 'root' and 'home' directory confusing. Some support agents refer to htdocs as the 'root' but actually there is one a level higher marked with a little blue globe in filemanager. |
|
|
|
|
|
|
#15 | ||
|
Former Spam Filter (EU)
Join Date: Mar 2004
Location: Washington (THE original UK one!)
Posts: 12,805
Reputation: 470
|
Quote:
Quote:
So, treat htdocs as the place for viewable files (and sub-folders of course) and the level above for scripts.
__________________
This is a Powweb customer
helping Powweb customer forum. I am a customer just like you!! Some matters can only be answered by staff or support. Give it a go - ask here first! ![]() |
||
|
|
|
|
|
#16 |
|
Join Date: Nov 2002
Location: Solomons Island
Posts: 3,118
Reputation: 318
|
Think of the htdocs directory as 'DocRoot', as it's still referred to in OPS I believe. The 'Root' directory is the main directory, the 'parent' directory of htdocs.
__________________
-bruce /* somdcomputerguy */ 'If you change the way you look at things, the things you look at change.' |
|
|
|
![]() |
| Thread Tools | |
|
|