centos7
vestacp 一键安装包ngnix+php-fpm
安装成功后上传源码magento1.9.32 解压 安装
提示:404错误
尝试在域名后增加index.php能否正常访问?例如:
如果访问正常,表明webserver的 rewrite工作不正常.
需要 修改你的nginx vhost配置文件,具体参考:
https://github.com/dockerfiles/magento-nginx/blob/master/nginx/sites-available/magento
###由于我对vestacp不熟悉,所以建议你根据vestacp的默认配置按情况修改以下代码:
location ~ \.php$ { ## Execute PHP scripts
if (!-e $request_filename) { rewrite / /index.php last; } ## Catch 404s that try_files miss
expires off; ## Do not cache dynamic content
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param MAGE_RUN_CODE default; ## Store code is defined in administration > Configuration > Manage Stores
fastcgi_param MAGE_RUN_TYPE store;
include fastcgi_params; ## See /etc/nginx/fastcgi_params
}
我顺便找熟悉vestacp的@laughingchan 给你一个完整的配置文件.
另外在这里可以下载最新的Magento 1.
vestacp这种面板,不适合用nginx+ php-fpm…