我在安装Magento 2.1.5时遇到错误,错误是找不到服务器500?我如何解决该问题,并在错误日志文件中的第411行显示其显示域名/vendor/magento/framework/App/Bootstrap.php 语法错误,意外的“类”(T_CLASS),期望的标识符(T_STRING)或变量(T_VARIABLE)或“ {”或“ $”
答案 0 :(得分:0)
您的var文件夹没有正确的权限。
我建议您按照官方文档为您的Magento实例设置正确的权限:http://devdocs.magento.com/guides/v2.0/install-gde/prereq/file-system-perms.html
name = 'accounts'
urlpatterns = [
path(r'accounts/register', views.register, name='register'),
path(
r'accounts/account-activation-sent/', views.account_activation_sent,
name='account_activation_sent'
),
path(
r'accounts/activate/<uidb64>/<token>/', views.activate,
name='activate'
),
path(r'purchase/<token>/', views.purchase, name='purchase'),
path(r'<str:username>/deactivate/', views.deactivate, name='deactivate'),
path(r'deactivated/', views.deactivated, name='deactivated'),
path(r'<str:username>/', views.dashboard, name='dashboard'),
path(r'accounts/login/', views.user_login, name='login'),
path(r'accounts/expired', views.expired, name='expired-account'),
re_path(
r'^(?P<username>\w+)/logout/$', auth_views.LogoutView.as_view(),
name='logout'
),
]