安装过程后 Akeneo 丢失文件
Akeneo missing files after installation process
在 Debian 9 机器上成功安装 Akeneo 和 Akeneo pim-community-standard
的依赖项后,我可以在 http://myhost.net/app.php
的前端打开登录屏幕
登录进程在 http://myhost.net/form/extensions
上引发 404 错误。
这应该是一个 JSON 文件(就像它在 Akeneo 的演示安装上一样),但它不是在安装过程中构建的。此外,当我手动创建此文件时,登录过程会继续到下一个 404:
myhost.next/localization/format/date
myhost.next/rest/security/
myhost.next/rest/user/
应该在安装过程的哪一部分构建这些文件?
http://myhost.net/form/extensions
是对 Symfony 后端的调用,因此它不是在安装期间生成的文件。
404 错误似乎与您没有在您的 apache 配置上激活 mod_rewrite 这一事实有关。
我添加我的答案是因为我浪费了很多时间。
Digital Ocean 服务器解决方案
将 vhost 文件更改为:
<VirtualHost your_server_ip>
RewriteEngine On
DocumentRoot "/var/www/html/web/"
<Directory /var/www/html/web>
AllowOverride None
Require all granted
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</Directory>
<Directory /var/www/html/>
Options FollowSymlinks
</Directory>
<Directory /var/www/html/web/bundles>
RewriteEngine Off
</Directory>
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=[=10=]
ErrorLog ${APACHE_LOG_DIR}/akeneo-pim_error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/akeneo-pim_access.log combined
</VirtualHost>
编辑your_server_ip
并在浏览器中加载输入 ip(没有 /web/)
在 Debian 9 机器上成功安装 Akeneo 和 Akeneo pim-community-standard
的依赖项后,我可以在 http://myhost.net/app.php
登录进程在 http://myhost.net/form/extensions
上引发 404 错误。
这应该是一个 JSON 文件(就像它在 Akeneo 的演示安装上一样),但它不是在安装过程中构建的。此外,当我手动创建此文件时,登录过程会继续到下一个 404:
myhost.next/localization/format/date
myhost.next/rest/security/
myhost.next/rest/user/
应该在安装过程的哪一部分构建这些文件?
http://myhost.net/form/extensions
是对 Symfony 后端的调用,因此它不是在安装期间生成的文件。
404 错误似乎与您没有在您的 apache 配置上激活 mod_rewrite 这一事实有关。
我添加我的答案是因为我浪费了很多时间。 Digital Ocean 服务器解决方案
将 vhost 文件更改为:
<VirtualHost your_server_ip>
RewriteEngine On
DocumentRoot "/var/www/html/web/"
<Directory /var/www/html/web>
AllowOverride None
Require all granted
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</Directory>
<Directory /var/www/html/>
Options FollowSymlinks
</Directory>
<Directory /var/www/html/web/bundles>
RewriteEngine Off
</Directory>
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=[=10=]
ErrorLog ${APACHE_LOG_DIR}/akeneo-pim_error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/akeneo-pim_access.log combined
</VirtualHost>
编辑your_server_ip 并在浏览器中加载输入 ip(没有 /web/)