Drupal Acquia Stack - 将文件移动到不同的文件夹,如何更新站点?

发布于 2024-10-25 21:07:28 字数 222 浏览 8 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

疏忽 2024-11-01 21:07:28

我一直在寻找这个答案,并深入到 acquia 安装文件夹中。这是我在 acquia 桌面界面上更改站点路径的方法。

不要忘记进行备份以防万一。

有 4 个文件需要注意:

  1. 在 Program Files/acquia-drupal 安装文件夹下的 AcquiaDevDesktopControlPanel 下打开并编辑 static.ini 和dynamic.ini。也许在 Mac 上有所不同。
  2. 在 static.ini 中编辑 siteDir
  3. 在dynamic.ini 中编辑 selImportedSiteCodebase 和 codebaseDir 在
  4. apache 文件夹中编辑 httpd.conf 以使用新文档根目录。有 3 或 4 个位置需要更改
  5. 编辑 vhosts.conf 以反映您的新位置

您必须以管理员身份运行记事本。

看来仅更改 #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:

  1. Open and edit static.ini and dynamic.ini under your AcquiaDevDesktopControlPanel at Program Files/acquia-drupal install folder. Maybe different on Mac.
  2. Edit siteDir at static.ini
  3. Edit selImportedSiteCodebase and codebaseDir at dynamic.ini
  4. Edit httpd.conf at apache folder to use your new document root. There are 3 or 4 locations to change there
  5. Edit vhosts.conf to reflect your new locations

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

明媚殇 2024-11-01 21:07:28

我也有同样的问题。我正在运行 Acquia Dev Desktop,并且想要将安装的默认文件夹从 /drupal-7.10 更改为 /docroot。

我在 Mac 上运行这个程序,在阅读上面的帖子后,我搜索了在我的硬盘上找不到的dynamic.ini 和 static.ini 文件。检查了 httpd.conf 文件,没有看到任何提及的内容。

我最终制作了 vhosts.conf 的备份副本,并将 vhosts.conf 更改为:

<VirtualHost *>
  ServerName loc.MYWEBSITE.com
  DocumentRoot "/Users/dv/Sites/MYWEBSITE/**new_dir_name**
  <Directory "/Users/dv/Sites/MYWEBSITE/**new_dir_name**">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory<
<VirtualHost>

刷新浏览器,我就可以开始了。

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:

<VirtualHost *>
  ServerName loc.MYWEBSITE.com
  DocumentRoot "/Users/dv/Sites/MYWEBSITE/**new_dir_name**
  <Directory "/Users/dv/Sites/MYWEBSITE/**new_dir_name**">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory<
<VirtualHost>

Refreshed the browser and I was good to go.

今天小雨转甜 2024-11-01 21:07:28

我也遇到了这个问题,我能够解决的唯一方法是转储数据库删除项目,然后重新导入。仅供参考,请确保 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

沫雨熙 2024-11-01 21:07:28

在.htaccess 中,RewriteBase 行是否指向正确的目录?前任:

 RewriteBase /new/directory/

In .htaccess, is the RewriteBase line pointing to the right directory? Ex:

 RewriteBase /new/directory/
樱花细雨 2024-11-01 21:07:28

您还需要编辑 - C:\Windows\System32\drivers\etc\hosts - 文件以更新任何条目

You'll also need to edit the - C:\Windows\System32\drivers\etc\hosts - file to update any entries

甜味拾荒者 2024-11-01 21:07:28

在 Mac OS X 上,您需要在以下文件中查找并编辑路径:

~/.acquia/DevDesktop/locations.ini
~/.acquia/DevDesktop/Drush/Aliases/aliases.drushrc.php
/Applications/DevDesktop/apache/conf/vhosts.conf
/Applications/DevDesktop/apache/conf/httpd.conf

最重要的是在 DevDesktop 包本身中:

  1. /Applications/DevDesktop 中 - 右键单击​​ Acquia Dev Desktop
  2. 选择“显示”包内容”
  3. 编辑 datamodel.xmlstatic.ini

On Mac OS X you will need to find and edit paths in the following files:

~/.acquia/DevDesktop/locations.ini
~/.acquia/DevDesktop/Drush/Aliases/aliases.drushrc.php
/Applications/DevDesktop/apache/conf/vhosts.conf
/Applications/DevDesktop/apache/conf/httpd.conf

and, most importantly, in the DevDesktop package itself:

  1. In /Applications/DevDesktop - right-click Acquia Dev Desktop
  2. Select "Show Package Contents"
  3. Edit datamodel.xml and static.ini
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文