ROBOT 发表于 2025-11-15 20:56:49

重大问题:目录未找到或者无法访问: ./data/template New

https://www.dismall.com/data/attachment/forum/202511/14/220411aojiiuyfqm9giqq8.png




背景:论坛搬家操作导致的(之直接覆盖)


问题:如上图。除了帖子可以正常打开,全部的注册,登录等全部功能都丢失了。


过程:777权限、freeaddon_attach_auto_description这个插件、data/template看存不存在、空间空间充足。


结果:这个问题到了2025年11月了。至今只有一个人给出了正确的方法。


原因,就是开启了SELinux导致:


这个命令检查getenforce


解决办法:必须关闭SELinux


1.临时关闭: setenforce 0 ##设置SELinux 成为permissive模式


2.临时开启: setenforce 1 ##设置SELinux 成为enforcing模式


永久关闭:


修改配置文件,需要重启机器:


  修改/etc/selinux/config 文件


  将SELINUX=enforcing改为SELINUX=disabled


  reboot重启机器即可


问题述求:希望直接覆盖时候,解决这个问题。因为很多直接覆盖或者使用宝塔面板的用户都是直接覆盖的。


就导致了这个问题出现、


所以解决这个问题还是非常的有必要的。😂


我知道答案 回答被采纳将会获得1 贡献 已有19人回答

站帮网 发表于 2025-11-15 20:57:44

都不知道SELinux为何物,查了下原来是linux的一个模块,宝塔系统防火墙、系统加固、进程管理、防篡改、防提权不比这强,可视化设置功能强大做为外围安全防护基本够用了,如果这都防不住那SELinux意义不大
       

                        在乎费用可以安装开心版,直接都免费了确实非常开心
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

ROBOT 发表于 2025-11-15 20:58:17

这就不是程序的锅,是你服务器环境问题,别人能咋办😂
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

余赚网 发表于 2025-11-15 20:59:06

不是我做广告,宝塔不香吗,很多事儿都帮你解决好了
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

余赚网 发表于 2025-11-15 20:59:44

你不都不看我描述的过程呀,

亲自测试的3.5.失败了。

就是用的宝塔,一键备份,下载再上传。然后在一键还原的。失败了

ROBOT 发表于 2025-11-15 21:00:12

你是绝口不看过程呀,我是纯净环境,一键备份。一键还原的。

失败了,失败了。

纯净环境,纯净环境呀。

余赚网 发表于 2025-11-15 21:00:25

邂逅惊鸿 发表于 2025-11-15 14:11
你是绝口不看过程呀,我是纯净环境,一键备份。一键还原的。

失败了,失败了。                        你也是完全不看我们说的啥,纯净环境怎么了,纯净换就就代表环境是好的了?本身纯净环境=啥都没有弄好。纯净环境谁家是selinux的?
       

                        环境是靠配置的,不是纯净就代表好
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

月落秋水 发表于 2025-11-15 21:01:15

你是真的倔强呀,傲娇呀,流失了这么多用户都 这么倔强。
有问题就是环境,或者操作有问题。

决口不提自己的程序有问题。
我花了几天时间了。
每次有用户反馈,你就这句话。
别人的问题,别人的操作问题。

ROBOT 发表于 2025-11-15 21:01:27

selinux不是环境是啥……我也是醉了,能不能有点基础常识

可可的可 发表于 2025-11-15 21:02:17

我花了几天,论坛搜索目录未找到或者无法访问: ./data/template
你看看你几年前说的话。

全部都是 别人的权限,操作。各种问题。

很多人都反馈说 这个目录未找到或者无法访问: ./data/template
问题了,你始终是 说别人有问题。

真的叫你一声哥,绝不反思自己一下。这么多年了。
页: [1]
查看完整版本: 重大问题:目录未找到或者无法访问: ./data/template New