phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

split application and data into two root folders

Discuss the future of phpBB. It is still nesting in its mother's womb, but it will grow a little bigger each day. Participate in its design & planning here.

split application and data into two root folders

Postby MartinTruckenbrodt » Wed Jan 18, 2012 11:17 pm

Hello,
at the moment phpBB has only one root folder.
Please make a separated root folder for all data uploaded by users and for other things like database backups.

What's the problem?
Then you are updating or modifying phpBB then your are uploading data.
Then you are backing up your forum then your are downloading the files.
To be sure and to prevent corrupted data successfully you have to remind to the folders which are containing the file data. If you are stressed or if you are a newbee then you don't forget to unselect these folders.
Also there is a risc with dangerous FTP client settings: http://blog.phpbb.com/2011/08/23/the-da ... #more-5341
So if you are uploading destroyed backuped data then your data - e.g. images and uploads - is lost. :cry:
Then you are moving to a new server then you can have problems, too.

Bye Martin
Last edited by MartinTruckenbrodt on Wed Jan 25, 2012 8:56 pm, edited 1 time in total.
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
MartinTruckenbrodt
 
Posts: 171
Joined: Sun Jan 29, 2006 1:00 pm
Location: Germany

Re: split application and data into two root folders

Postby Arty » Wed Jan 18, 2012 11:20 pm

phpBB already uses different folders. Backups are in /store, attachments are in /files, avatars are in images/avatars/upload
Formerly known as CyberAlien.
User avatar
Arty
Styles Team
Styles Team
 
Posts: 796
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars

Re: split application and data into two root folders

Postby MartinTruckenbrodt » Wed Jan 18, 2012 11:25 pm

Hello Arty,
the problem is that these folders are located (or put) into only one root folder.

Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
MartinTruckenbrodt
 
Posts: 171
Joined: Sun Jan 29, 2006 1:00 pm
Location: Germany

Re: split application and data into two root folders

Postby DavidIQ » Wed Jan 18, 2012 11:41 pm

You mean outside of the phpBB installation folder? What happens on the sites where the forum IS the site?
Image
User avatar
DavidIQ
MOD Team Leader
MOD Team Leader
 
Posts: 760
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth

Re: split application and data into two root folders

Postby MartinTruckenbrodt » Thu Jan 19, 2012 12:07 am

Hello David,
yes, this is the scenario which makes it difficult to get it! ;)

One idea:
./index.php
./app/ = phpBB root folder for application - nearly the same like the recent root folder - this folder can have another index.php (website integration ;) )
./data/ = the new phpBB data root folder


Perhaps you want to move this topic to this forum: viewforum.php?f=75 ? ;)

Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
MartinTruckenbrodt
 
Posts: 171
Joined: Sun Jan 29, 2006 1:00 pm
Location: Germany

Re: split application and data into two root folders

Postby brunoais » Wed Feb 08, 2012 12:58 pm

I don't understand this request.
The main reason is: why?
You give some reasons but they have no value.
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Re: split application and data into two root folders

Postby MartinTruckenbrodt » Wed Feb 08, 2012 1:11 pm

Hello brunoais,
you can find the reasons explained in my first post.

The aim is to prevent corrupt data and lost data resulted by the two directions we are using 1. for backup and 2. for update and modification.

The risc is based on wrong FTP Client settings, too much of trustment in technical enviroment and other things.
I've you have lost or corrupt data then it is lost.

For a lot of applications is standard to split application and data. Maybe for programmers there are other reasons, too?

Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
MartinTruckenbrodt
 
Posts: 171
Joined: Sun Jan 29, 2006 1:00 pm
Location: Germany

Re: split application and data into two root folders

Postby brunoais » Wed Feb 08, 2012 2:59 pm

MartinTruckenbrodt wrote:For a lot of applications is standard to split application and data. Maybe for programmers there are other reasons, too?

data -> database
application -> the files.

Any questions? (or did I understand wrong)
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Re: split application and data into two root folders

Postby MartinTruckenbrodt » Wed Feb 08, 2012 3:38 pm

Hello brunoais,
you understand wrong. There is file data, too.
avatars, images, uploads, database backups, ...

Stored in these folders:
./download
./files
./images - at least some subfolders
./store

And there may be more folders added by MODs, too.

Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
MartinTruckenbrodt
 
Posts: 171
Joined: Sun Jan 29, 2006 1:00 pm
Location: Germany

Re: split application and data into two root folders

Postby brunoais » Wed Feb 08, 2012 5:08 pm

I mean:
the data is in the database.
the application is in the files.
What's wrong with that distinction?
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Next

Return to [4.x] Discussion

Who is online

Users browsing this forum: Arty and 8 guests