Drupal Acquia Stack - 将文件移动到不同的文件夹,如何更新站点?
我使用 Acquia 堆栈而不是 MAMP 或 WAMP,但我使用它来运行正常的 Drupal 安装。
我导入了一个网站,很好。然后我将网站的文件移动到另一个文件夹,现在我不知道如何更改网站的设置。
在堆栈界面中,如果我转到我的站点并单击“设置”>“网站>编辑 然后我可以看到它指向旧文件夹的站点路径,但我无法更改这些设置。
我需要创建一个新网站并再次导入吗? 谢谢
Im using the Acquia stack instead of MAMP or WAMP but im using it to run a normal Drupal installation.
I imported a site fine. Ive then moved the sites's files to a different folder, and now I cant figure out how to change the site's settings.
In the stack interface, if I go to my site and click settings > Sites > Edit
Then I can see the Site Path that it points to the old folder, but I cant change these settings.
Do I need to create a new site and import it again?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我一直在寻找这个答案,并深入到 acquia 安装文件夹中。这是我在 acquia 桌面界面上更改站点路径的方法。
不要忘记进行备份以防万一。
有 4 个文件需要注意:
您必须以管理员身份运行记事本。
看来仅更改 #4 + #5 不会损害我的网站,这些可以通过 acquia 界面完成。但是改变#2 + #3会让你感觉舒服:)
希望有帮助
I was looking for this answer, and digged out into acquia install folder. Here is what I did to change Site Path at acquia desktop interface.
Don't forget to make a backup just in case.
There are 4 files to attend to:
You have to run the notepad as administrator.
Its seems that changing only #4 + #5 don't hurt my sites, these can be done via acquia interface. But changing #2 + #3 makes you feel comfortable :)
Hope that helps
我也有同样的问题。我正在运行 Acquia Dev Desktop,并且想要将安装的默认文件夹从 /drupal-7.10 更改为 /docroot。
我在 Mac 上运行这个程序,在阅读上面的帖子后,我搜索了在我的硬盘上找不到的dynamic.ini 和 static.ini 文件。检查了 httpd.conf 文件,没有看到任何提及的内容。
我最终制作了 vhosts.conf 的备份副本,并将 vhosts.conf 更改为:
刷新浏览器,我就可以开始了。
I had the same question. I'm running Acquia Dev Desktop and wanted to change the default folder of the installation from /drupal-7.10 to /docroot.
I'm running this on a Mac and after reading the posts above, I searched for the dynamic.ini and static.ini files which were not to be found on my harddrive. Checked the httpd.conf file and didn't see anything mentioned.
I ended up making a backup copy of vhosts.conf and changed vhosts.conf to:
Refreshed the browser and I was good to go.
我也遇到了这个问题,我能够解决的唯一方法是转储数据库删除项目,然后重新导入。仅供参考,请确保 Drupal 中的 settings.php 针对本地主机设置正确设置,这对我来说是另一个麻烦。
..我查看了 Acquia 文件,试图找到它首先存储此信息的位置,但找不到它
I ran into this problem as well, the only way I was able to remedy was to dump the database delete the project, then re-import. Just an FYI, make sure that the settings.php in Drupal are set up correctly for the localhost setup, this was another snafoo for me.
.. I looked all around the Acquia files to try to find a place where it was storing this information first but could not find it
在.htaccess 中,RewriteBase 行是否指向正确的目录?前任:
In .htaccess, is the RewriteBase line pointing to the right directory? Ex:
您还需要编辑 - C:\Windows\System32\drivers\etc\hosts - 文件以更新任何条目
You'll also need to edit the - C:\Windows\System32\drivers\etc\hosts - file to update any entries
在 Mac OS X 上,您需要在以下文件中查找并编辑路径:
最重要的是在 DevDesktop 包本身中:
/Applications/DevDesktop
中 - 右键单击 Acquia Dev Desktopdatamodel.xml
和static.ini
On Mac OS X you will need to find and edit paths in the following files:
and, most importantly, in the DevDesktop package itself:
/Applications/DevDesktop
- right-click Acquia Dev Desktopdatamodel.xml
andstatic.ini