【发布时间】:2022-01-21 05:01:00
【问题描述】:
在 Windows 11 上进行 Magento 2.4.2 的本地 xampp 安装。 我是 Magento 新手 - 解决了几个常见的 Windows 安装问题,但遇到了如何告诉 Apache WP 安装位置的问题。此安装是一个开发站点,而不是 Magento 安装示例。
Wordpress 是通过 Fishpig 集成的,下面是根据开发设置文档在 nginx.conf 文件的服务器中输入的一些详细信息。
# WordPress is installed in pub/wp
location /wp/ {
index index.html index.php;
try_files $uri $uri/ /wp/index.php?q=$uri&args;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9074;
fastcgi_index /wp/index.php;
include fastcgi.conf;
}
}
我实际上尝试过,但我使用的是 xampp 和 Apache 而不是 nginx 进行此安装。 我目前在基本 url 处收到“似乎未安装 WordPress”错误。
所以我的问题是 - 我在哪里/如何在 Apache 配置中输入此信息?还是有不同的解决方案? 我查看了几个 .htaccess 文件,但除非我重新格式化细节,否则这似乎不是正确的地方。
【问题讨论】:
标签: php wordpress magento magento2 fishpig