为何安装magento2.2.4界面是空白的呀

已经安装了Php7.1.4 和 composer 可以安装了 可是界面却成空白了 还有哪要设置的么mxcp_1528875699193

一片空白 刷新下title会显示 {{$state.current.title}} 然后继续空白

Nginx?你的conf文件不对

恩nginx WDCP系统不能切apache 一切就变成php5.5 只能nginx 是安装程序的 conf文件么 要如何改呀

建议你参考magento2官方给的nginx配置文件进行修改你的conf文件:
https://github.com/magento/magento2/blob/2.2-develop/nginx.conf.sample

我在网站的conf里一 include 这个nginx.conf.sample的内容就会造成 nginx重启失败 直接填到conf里 也是nginx重启失败 改回来就正常了 奇怪

跳过这个问题吧,直接使用命令行安装M2.这个问题调试起来会浪费不少时间的,特别是自己对nginx不熟悉的情况下。

php setup/index.php
–db_host=localhost
–db_name=magento2
–db_user=root
–db_pass=canbempty
–backend_frontname=admin
–admin_username=username
–admin_password=password
–admin_email=admin@email.local
–admin_firstname=First
–admin_lastname=Last
–base_url=http://magento2.local/
–base_url_secure=http://magento2.local/
–language=en_US
–currency=USD
–use_rewrites=true
–use_secure=false
–use_secure_admin=false
–cleanup_database

可详细查询参考:Magento2安装

好我试下 刚要发图呢 熬了两个6点没睡了 为了这个

上面代码是一行行输入 还是批量一起输到SSH呀

当然是一起输入的,有时候遇到问题,其实有其他解决办法的。
特别是现在M2的CLI很强大的。

提示 [root@xs1678818112 public_html]# php setup/index.php
You cannot run this from the command line.
Run “php bin/magento” instead.
这是否要另一种语法 我查的是下面的 再参考你上面的改对吧

引用
bin/magento setup:install --backend-frontname=“adminlogin”
–key=“biY8vdWx4w8KV5Q59380Fejy36l6ssUb”
–db-host=“localhost”
–db-name=“magentodb”
–db-user=“magentouser”
–db-password=“Magento123@”
–language=“en_US”
–currency=“USD”
–timezone=“America/New_York”
–use-rewrites=1
–use-secure=0
–base-url=“http://magento.hakase-labs
–base-url-secure=“https://magento.hakase-labs
–admin-user=adminuser
–admin-password=admin123@
–admin-email=admin@newmagento
–admin-firstname=admin
–admin-lastname=user
–cleanup-database

错误提示是说php不存在,
你当然可以直接用bin/magento尝试的。安装成功之后别忘了点一下问题已解决。

头一句就出现这个 哎
[root@xs1678818112 public_html]# bin/magento setup:install
SQLSTATE[HY000] [1045] Access denied for user ‘root’@‘localhost’ (using password: NO)
User Name is a required field.
First Name is a required field.
Last Name is a required field.
Please enter a valid email.
Password is required field.
Your password must be at least 7 characters.
Your password must include both numeric and alphabetic characters.

[InvalidArgumentException]
Parameter validation failed

mysql用户名密码不对。

可是运行到第一句bin/magento setup:install就出现了 没有给我写数据库用户密码的机会呀

–db-host=“localhost”
–db-name=“magentodb”
–db-user=“magentouser”
–db-password=“Magento123@”

这是我要全输入的

这是输出的

说下你的magento版本号

最最新的2.2.4 我是不是要用旧的哎