|
Web Host Chat - The UK hosting forum
Welcome to the UK's best forum for hosts and hosters!
 |
|
|
|
|
8th August 2008
|
#1 (permalink)
|
|
|
Write permissions on root folder - good or bad?
Hi, I'm hoping someone can help me!
My company website has been hosted by Netbenefit for the last 10 years with minimal issues. We've recently had a new website developed with a content management system, ASP.NET 3.0, and the developers will be marketing the website.
My issue:
For SEO reasons, the web developers have put all web pages in the root folder however for CMS I need write access to this folder. Netbenefit will not allow write permissions on the root folder for security reasons. I am therefore planning to move to our web developers hosting package which is on rackspace.
My questions:
If I move hosting, does having write access on the root folder cause a major security vulnerability?
If I stay with Netbenefit, how much would moving all the pages to a subfolder impact on SEO?
With everything I am being told from each company, I would just like to get an independent view on this.
Thanks.
|
|
|
8th August 2008
|
#2 (permalink)
|
I am a: Certified Standard Host
|
My personal take on this is that the same folder (website root or a folder within the website root) should not have write and script or execute permissions at the same time, as this poses a security risk.
If your root folder has write perms but no script/execute perms, then HTML and image files could be written there and that would be OK.
A CMS system which relies on writing files into the website area is, in my view, poorly designed. However, this is how almost all the apps I've seen have been developed. The better solution is to have all updateable content stored outside the website area, where it can be accessed by scripts/apps in the website area, so the website is dynamic not static.
Whether the writeable folder is the website root or a folder within the website root is beside the point really, it's the permissions mix that makes the difference.
__________________
Chris at TDMWeb.com
Windows & Linux hosting and fully managed dedicated servers with great customer service!
UK-based but serving the world... (VAT No: 474698684)
|
|
|
8th August 2008
|
#3 (permalink)
|
I am a: Certified VIP Host
|
Why don't you do what a lot of our .net clients do use ISAPI_ReWrite.
Store the files in the folders that make sense then use isapi_rewrite to make the URL's 100% SE friendly.
Having all files in the root isn't a major SEO benefit in my view if the files are well named and links well structured you should be fine.
CMS for me is a db backend with the content stored then a simple file spits out the output based on the querystring then you use something like ISAPI_ReWrite to make the URL's friendly depending on what you specify in the DB so its 100% dynamic no writing to files.
__________________
Chris Daley
Dwebs Ltd :: Company No. 05603664 :: 08000 141 942
2008hosting.net - Windows 2008 Server Hosting Solutions
Dhosting.co.uk - Web Hosting, Managed Servers
Dwebs.ltd.uk - Web Design & Other Services
My views are my own and not those of my company.
Last edited by Dhosting; 8th August 2008 at 12:16 PM.
|
|
|
8th August 2008
|
#4 (permalink)
|
I am a: Certified Standard Host
|
Chris is right, ISAPI rewrite can be a really good improvement.
Database backends are simple, but you can end up with a lot of database load where a simpler "read in from a text file" approach puts much less load on the system.
__________________
Chris at TDMWeb.com
Windows & Linux hosting and fully managed dedicated servers with great customer service!
UK-based but serving the world... (VAT No: 474698684)
|
|
|
8th August 2008
|
#6 (permalink)
|
I am a: Certified VIP Host
|
Actually its all down to how its done if its an MSSQL backend and the db, sproc and frontend is written correctly it can be far faster under load than file reads plus you don't get file lock issues and open stream problems.
For small amounts of data XML is ideal or text file but if you have a load of pages i would say mssql backend is the way to go.
We show up on the ISAPI_ReWrite website ( Shared hosting services) as a supported host for v3 etc so we get quite a few enquiries it does the job. Excellent for php shopping carts like zencart, cubecart and joomla CMS if you want SE friendly URL's.
__________________
Chris Daley
Dwebs Ltd :: Company No. 05603664 :: 08000 141 942
2008hosting.net - Windows 2008 Server Hosting Solutions
Dhosting.co.uk - Web Hosting, Managed Servers
Dwebs.ltd.uk - Web Design & Other Services
My views are my own and not those of my company.
|
|
|
8th August 2008
|
#7 (permalink)
|
I am a: Certified VIP Host
|
Quote:
Originally Posted by heypresto
Such as BBC News where the whole site is managed by a custom CMS, but writes out static .shtml files only including a certain amount of dynamic content, which itself is pretty static, e.g. the header/footer bars and menus.
|
All down to site load for small to medium DB works, large static is usually better as it can be cached.
__________________
Chris Daley
Dwebs Ltd :: Company No. 05603664 :: 08000 141 942
2008hosting.net - Windows 2008 Server Hosting Solutions
Dhosting.co.uk - Web Hosting, Managed Servers
Dwebs.ltd.uk - Web Design & Other Services
My views are my own and not those of my company.
|
|
|
8th August 2008
|
#8 (permalink)
|
I am a: Certified VIP Host
|
Quote:
Originally Posted by Dhosting
Actually its all down to how its done if its an MSSQL backend and the db, sproc and frontend is written correctly it can be far faster under load than file reads plus you don't get file lock issues and open stream problems.
|
er... no
deal with any kind of real load and thats just not true!
__________________
Goscomb Technologies Limited - www.goscomb.net / AS39326
E: sales@goscomb.net P: +44 (0) 203 129 4400 F: +44 (0) 203 129 4410
Free IPv4/IPv6 Dialup! p: 08456043047 u: dial@goscomb.net.uk p: dial
IP Transit :: Colocation :: Dedicated Servers :: Leased Lines :: DSL
Registered in England and Wales No. 05672987 - VAT Registration No. 853 7954 80
|
|
|
8th August 2008
|
#9 (permalink)
|
I am a: Certified VIP Host
|
Dan in the context of the OP's requirement db vs file there will be no real difference.
DB backend can perform exceptionally well up to decent loads.
Static is always going to be faster but for the OP DB backend would do the job saves ********* about with files all the time.
We aren't talking the BBC here or some other super large site.
__________________
Chris Daley
Dwebs Ltd :: Company No. 05603664 :: 08000 141 942
2008hosting.net - Windows 2008 Server Hosting Solutions
Dhosting.co.uk - Web Hosting, Managed Servers
Dwebs.ltd.uk - Web Design & Other Services
My views are my own and not those of my company.
|
|
|
8th August 2008
|
#11 (permalink)
|
I am a: Certified VIP Host
|
ISAPI_ReWrite is the IIS version of Mod_ReWrite its near enough the same
__________________
Chris Daley
Dwebs Ltd :: Company No. 05603664 :: 08000 141 942
2008hosting.net - Windows 2008 Server Hosting Solutions
Dhosting.co.uk - Web Hosting, Managed Servers
Dwebs.ltd.uk - Web Design & Other Services
My views are my own and not those of my company.
|
|
|
8th August 2008
|
#12 (permalink)
|
I am a: Certified Standard Host
|
Quote:
Originally Posted by lsot
Netbenefit will not allow write permissions on the root folder for security reasons. I am therefore planning to move to our web developers hosting package which is on rackspace.
|
It may be worth confirming with them exactly what write perms they will not allow, for example they certainly would not allow public write perms due to security, but they may allow group write perms (ie the user that your .net would process run under) to be allowed to write to it's own local area, and I think it would be unusual for them to disallow this?
It may be worth confirming with them, or even testing it.
Cheers,
Sean
|
|
|
11th August 2008
|
#14 (permalink)
|
I am a: Certified VIP Host
|
You can't go wrong
__________________
Chris Daley
Dwebs Ltd :: Company No. 05603664 :: 08000 141 942
2008hosting.net - Windows 2008 Server Hosting Solutions
Dhosting.co.uk - Web Hosting, Managed Servers
Dwebs.ltd.uk - Web Design & Other Services
My views are my own and not those of my company.
|
|
|
11th August 2008
|
#15 (permalink)
|
I am a: Certified VIP Host
|
I know that ISAPI-Rewrite is only cheap, but why bother when you can do the basics easily enough in .net. Especially with something like..
ASP.NET 2.0: URL Mapping with RegEx Support
...or have I missunderstood something?
I can see the advantage in that it's compatible with apache rewrite configs, but how well does it scale? Has anyone here run it on some very large sites (say, sites that generate 1 to 10GB of logs a day)? I think it would worry me a bit being a 3rd party ISAPI filter for a large site that has to cope with a lot of traffic (knowing how darned difficult ISAPI filters are to debug). Looks like there is a heck of a lot of functionality, but if it's simple rewriting you want to do isn't it an unnecessary additional (and therefore falible) layer?
__________________
••• Mark Castle ••• Secura Hosting Ltd •••
••• Managed Hosting •••
••• AS29452 • UK Company Reg No: 04330657 • VAT Number: 789 2703 81 • Sales: 0845 123 2632 •••
My views are my own and not those of my company.
Last edited by markcastle; 11th August 2008 at 03:21 PM.
|
|
|
 |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Root login
|
fuzzlepop |
Business and Technical Advice |
7 |
18th December 2005 05:09 PM |
|
Apache and permissions
|
TITAN |
Business and Technical Advice |
21 |
19th October 2005 02:31 PM |
|
Re-Setting Permissions..but How?
|
telematics |
Business and Technical Advice |
4 |
2nd September 2002 07:55 PM |
|