Registrieren Anmelden
n/website · 2024-08-11 · 415 Aufrufe
u/qwrcbSilber
n/websiteu/qwrcb · 2024-08-11

serv00怎么切换网站目录啊

flarum需要切换为public目录,但serv00怎么切换啊

0
12
Anmelden, um mitzudiskutieren.
u/udc2b6nr Anzeige
QuicksilverVPN

快银 VPN,一键连接全球节点,线路稳定、延迟低。支持 Windows、macOS 等多平台,TUN 全局模式覆盖全部应用流量。无需复杂配置,下载即用。

umami.dnsl.top Mehr erfahren

12 Antworten

Sortierung
  1. yucho Ehrenmitglied Diamant 2024-08-11

    Serv00无法切换网站根目录,只能删除public_html文件夹,然后将别的目录链接到public_html,不过亲测这样Flarum会报错。
    好在Flarum官方文档中给出了解决方案,参见:https://docs.flarum.org/zh/install/#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%B7%AF%E5%BE%84

    0
  2. xuanxuan1231 Silber 2024-08-11

    @"Yucho"#p64572 英文文档有没有public目录的,可以直接放到public_html去

    0
  3. yucho Ehrenmitglied Diamant 2024-08-11

    @"不是哥们"#p64605 啊?英文文档不是和我说的一样?

    > By default Flarum's directory structure includes a public directory which contains only publicly-accessible files. This is a security best-practice, ensuring that all sensitive source code files are completely inaccessible from the web root.

    > However, if you wish to host Flarum in a subdirectory (like yoursite.com/forum), or if your host doesn't give you control over your webroot (you're stuck with something like public_html or htdocs), you can set up Flarum without the public directory.

    > If you intend to install Flarum using one of the archives, you can simply use the no-public-dir (Public Path = No) archives and skip the rest of this section. If you're installing via Composer, you'll need to follow the instructions below.

    0
  4. qwrcb Silber OP 2024-08-11

    @"Yucho"#p64572 谢谢老哥,回去试试

    0
  5. xuanxuan1231 Silber 2024-08-12

    @"Yucho"#p64628 上面有提供没有public目录的归档,然后就不需要这步了

    0
  6. yucho Ehrenmitglied Diamant 2024-08-12

    @"不是哥们"#p64718 归档和我说的除了已经打包好了外没什么区别。。。

    0
  7. xuanxuan1231 Silber 2024-08-12

    @"Yucho"#p64731 我的意思是下载了没有public目录的之后就可以直接解压到public_html目录里了

    0
  8. James 💯 Legende MANAGER 2024-08-12

    @"不是哥们"#p64738 直接使用 public_html 目录会有一些问题,因为flarum有些写死了 public 目录。

    0
  9. yucho Ehrenmitglied Diamant 2024-08-12

    @"不是哥们"#p64738 那不还是没什么区别。。。你说的=我说的+压缩打包

    0
  10. yucho Ehrenmitglied Diamant 2024-08-12

    @"James"#p64739 有些是哪些?目前测试没碰到

    0
  11. James 💯 Legende MANAGER 2024-08-12

    @"Yucho"#p64747 涉及到静态文件的,因为是写到 public/assets 目录

    0
  12. yucho Ehrenmitglied Diamant 2024-08-12

    @"James"#p64749 我本地测试了一下,头像上传没问题,通过fof/upload拓展上传文件时会报错,但是报错信息看起来是和语法有关。按照报错信息修复后可正常上传

    0