dsvtnz6350 2012-02-07 20:37
浏览 70
已采纳

Drupal 7:私有文件系统路径设置为/

I have a problem. I set the private path to / and now all my URLs return error 500.

Yes I'm an idiot. How do I reverse this without doing a clean install?

/Anders

  • 写回答

1条回答 默认 最新

  • duanbi7204 2012-02-07 21:24
    关注

    You can edit that variable directly in the variable table of the database, the variable name is file_private_path. e.g.

    UPDATE variable SET value = '/new/path' WHERE name = 'file_private_path'
    

    It would probably be a good idea to manually clear Drupal's cache afterwards which simply means truncating all tables whose name begins with cache, e.g, in MySQL:

    TRUNCATE TABLE cache
    TRUNCATE TABLE cache_block
    

    etc...

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 nginx的使用与作用
  • ¥100 关于#VijeoCitect#的问题,如何解决?(标签-ar|关键词-数据类型)
  • ¥15 一个矿井排水监控系统的plc梯形图,求各程序段都是什么意思
  • ¥15 ensp路由器启动不了一直报#
  • ¥50 安卓10如何在没有root权限的情况下设置开机自动启动指定app?
  • ¥15 ats2837 spi2从机的代码
  • ¥200 wsl2 vllm qwen1.5部署问题
  • ¥100 有偿求数字经济对经贸的影响机制的一个数学模型,弄不出来已经快要碎掉了
  • ¥15 数学建模数学建模需要
  • ¥15 已知许多点位,想通过高斯分布来随机选择固定数量的点位怎么改