因此,每天至少花4个小时尝试配置正在运行的服务器。 现在在你抨击我在编程部分发布这个之前让我解释一下。 Ubuntu 5.10 CLI服务器安装了最新的Nginx 1.9.x安装运行MariaDB for mysql并从ppa安装php7.0.1:ondrej / php repo。 Mysql工作得很好,phpmyadmin也安装得很好。
Magento2 devdocs已安装的所有必需扩展
Magento nginx虚拟配置:
upstream fastcgi_backend{
server unix:/var/run/php/php7.0-fpm.sock;
}
server {
listen 80;
server_name 104.196.51.248/magento2;
set $MAGE_ROOT /var/www/html/magento2;
set $MAGE_MODE developer;
include /var/www/magento2/nginx.conf.sample;
}
我的Ngnix默认配置
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/html;
#Add index.php to the list if you are using PHP
index index.html index.htm index.php index.nginx-debian.html;
server_name 104.196.51.248;
location / {
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
#try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
使用此配置,我无法在http://104.196.38.57/magento2/setup/中显示基本安装(在加载该页面时使用Chromes控制台的巨大错误列表,但由于我对编码知之甚少,我无法识别因为我也无法通过CLI安装,因为mysql告诉我我无法通过user @ localhost连接(我认为这只是一些随机错误。)
无论如何,这里提出的观点是我认为php7.0.1并没有正确识别代码中的.js以及如何编写magento。在寻找几天之后,如果有人试过这个Lemp Stack。有没有遇到类似问题或尝试过这个组合堆栈的人遇到了问题?或者由于Magento2新代码和php7中的兼容性,我正在做一些应该开始工作的事情。 这是服务器的真实IP我正在测试它,所以随时检查它并打开Chromes控制台并尝试安装所有权限在文件和目录上是正确的。