动态站点中缺少文件夹
好的,该项目已经启动并运行了近 2 年了。 目的是获得画家及其画作的完整列表。
管理员可以创建新的画家,然后将绘画上传到该画家。 每个画家都有自己的文件夹,用于保存图像。 每张照片都保存到自己的子文件夹中。 所有这些都存储在一个文件夹中
因此,在根文件夹中,有一个名为“artists”的文件夹,其中存储了所有内容 如果画家有 10 幅画,脚本将创建: “artists”文件夹内的 [artist_name] 文件夹 在 [artist_name] 中,它将创建 11 个文件夹。每幅画10张加一个大拇指文件夹来保存大拇指。
所以,最后它看起来像这样,
/artist/
|--->painter1
|--->folder1
|--->folder2
|--->folder3
.....
|--->thumbs
|--->painter2
.....
我希望这能成为降神会 - 不要问为什么每张照片都保存到不同的文件夹中,它与我的问题无关。
正如我所说,该项目已经启动并运行了近 2 年。 在过去 20 天左右的时间里,每次管理员尝试添加新画家或将新绘画上传到系统时,都会随机删除一个文件夹 - 我指的是画家的文件夹。
首先想到的是该网站被黑了。我在文件中搜索可疑代码,但没有找到任何内容,但只是为了确保我上传了备份,但没有结果。问题仍然存在。
我必须告诉你,主文件夹“artist”里面有1006个主文件夹,这1006个文件夹中总共有17000多个子文件夹。 该网站运行在 MySQL 5.0.77、PHP 5.2.17、Apache 2.2.3
有谁知道为什么会发生这种情况?
Ok, the project is up and running for almost 2 years now.
Purpose is to have a complete list of painters and their paintings.
Admin can create new painter and then upload paintings to that painter.
Each painter has its own folder, where the images are saved.
And each photo is saved into its own sub-folder.
All of these are stored in a single folder
So, in root folder, there is the folder named "artists" where everything is stored
If a painter has 10 paintings, the script will create:
[artist_name] folder inside "artists" folder
in [artist_name] it will create 11 folders. 10 for each painting plus a thumbs folder to save the thumbs.
So, in the end it look like this
/artist/
|--->painter1
|--->folder1
|--->folder2
|--->folder3
.....
|--->thumbs
|--->painter2
.....
I hope this makes seance - Don't ask why each photo is saved into a different folder, its irrelevant with my problem.
As i said this is up and running for almost 2 years now.
In the last 20 days or so, every time the administrator is trying to add a new painter or upload a new painting into the system, a random folder gets deleted - and i mean a painter's folder.
First thought was the site was hacked. I searched the files for suspicious code, I found none, but just to be sure I uploaded my backups, and yet no results. The problem continues.
I must tell you that the main folder "artist" has 1006 main folders inside it and in total there are more than 17000 subfolders in the 1006 folders.
The website runs in MySQL 5.0.77, PHP 5.2.17, Apache 2.2.3
Has anyone any idea as to why this is happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这种情况下,我认为:
因此,这可能是操作系统(或驱动器)的问题,它不允许创建更多文件夹,或者当创建和访问大量文件夹时会变得很疯狂。
您可以尝试切断一些文件夹(可能是最旧的文件夹)并将它们移动到另一个文件服务器中吗?由于这个解决方案似乎有限,但如果有帮助,那就太好了。
希望这能解决您的问题。
In this case, I think:
So probably, it might probably be a problem with the operating system (or the drives), in which it doesn't allow more folders to be created, or it gets nut when a large amount of folders have been created and accessed.
Can you try to cut off some of the folders (maybe the oldest folders) and move them into another file server? As this solution seems limited but if it helps, it should be nice.
Hope this answers your problem.