Drupal 7 &引用;“连接已重置”;

Drupal 7 &引用;“连接已重置”;,drupal-7,installation,wamp,Drupal 7,Installation,Wamp,为了进一步开发,我将Drupal站点从一个实时服务器复制到一个测试环境中。我已经在WAMP环境中设置了它,成功导入了数据库,并为站点设置了一个虚拟主机 我可以连接到该网站没有问题和登录。当我想访问管理页面时,我从浏览器()中得到以下消息: 当我检查Firebug的网络时,Firefox将请求报告为“已中止” Apache日志文件中没有错误。此外,我还启用了PHP错误进行调试,但没有显示任何内容 我重置了缓存,在phpMyAdmin中查找了CSS和Javascript的压缩设置,但没有找到任何可以

为了进一步开发,我将Drupal站点从一个实时服务器复制到一个测试环境中。我已经在WAMP环境中设置了它,成功导入了数据库,并为站点设置了一个虚拟主机

我可以连接到该网站没有问题和登录。当我想访问管理页面时,我从浏览器()中得到以下消息:

当我检查Firebug的网络时,Firefox将请求报告为“已中止”

Apache日志文件中没有错误。此外,我还启用了PHP错误进行调试,但没有显示任何内容

我重置了缓存,在phpMyAdmin中查找了CSS和Javascript的压缩设置,但没有找到任何可以禁用的设置


非常感谢你的帮助

迁移后,如果遇到问题,请运行并解决问题请注意,它不是drupal的模块。它是drush非常有用的子模块

我强烈建议为windows手动安装drush。按照以下步骤安装drush

安装运行后

drush dl registry_rebuild
从哪个目录运行这个命令并不重要,因为它是drush扩展,而不是drupal扩展。Drush将下载所需的文件并将其放置在适当的位置

完成后,您可以访问站点文件夹并运行

drush rr

这将重建注册表并清除缓存。大多数迁移问题都是自动修复的。如果它不能解决您的问题,请留下评论。

如果没有帮助-就像在我的例子中一样,在httpd.conf中添加以下代码这将增加堆栈大小(默认1MB)


螺纹尺寸8388608

手动截断所有缓存表和可以解决的会话:

例如:

Truncate table myprefix_cache;
Truncate table myprefix_cache_admin_menu;
Truncate table myprefix_cache_block;
Truncate table myprefix_cache_bootstrap;
Truncate table myprefix_cache_field;
Truncate table myprefix_cache_filter;
Truncate table myprefix_cache_form;
Truncate table myprefix_cache_image;
Truncate table myprefix_cache_l10n_update;
Truncate table myprefix_cache_libraries;
Truncate table myprefix_cache_media_xml;
Truncate table myprefix_cache_menu;
Truncate table myprefix_cache_page;
Truncate table myprefix_cache_path;
Truncate table myprefix_cache_rules;
Truncate table myprefix_cache_token;
Truncate table myprefix_cache_update;
Truncate table myprefix_cache_variable;
Truncate table myprefix_cache_views;
Truncate table myprefix_cache_views_data;
Truncate table myprefix_sessions;

我通过访问性能并禁用聚合和压缩CSS解决了这个问题。

您的MySQL
max\u allowed\u数据包是否有可能设置为1mb?是的。我已经将它改为64MB,尽管这没有帮助。我的apache没有这样的文件(httpd.conf),我应该把它放在哪里?
<IfModule mpm_winnt_module>
  ThreadStackSize 8388608
</IfModule>
Truncate table myprefix_cache;
Truncate table myprefix_cache_admin_menu;
Truncate table myprefix_cache_block;
Truncate table myprefix_cache_bootstrap;
Truncate table myprefix_cache_field;
Truncate table myprefix_cache_filter;
Truncate table myprefix_cache_form;
Truncate table myprefix_cache_image;
Truncate table myprefix_cache_l10n_update;
Truncate table myprefix_cache_libraries;
Truncate table myprefix_cache_media_xml;
Truncate table myprefix_cache_menu;
Truncate table myprefix_cache_page;
Truncate table myprefix_cache_path;
Truncate table myprefix_cache_rules;
Truncate table myprefix_cache_token;
Truncate table myprefix_cache_update;
Truncate table myprefix_cache_variable;
Truncate table myprefix_cache_views;
Truncate table myprefix_cache_views_data;
Truncate table myprefix_sessions;