VPS侦探论坛

 找回密码
 注册
查看: 7695|回复: 0

LNMP下如何安装Magento

[复制链接]
发表于 2012-7-10 10:20:20 | 显示全部楼层 |阅读模式

首先服务器配置够高,一般的OpenVZ就算了。
Linode实测还算可以,至少在安装后运行速度不错。

根据官方提供的配置服务器
Configuring nginx for Magento
http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/configuring_nginx_for_magento

如果有插件没装,最好下载这个测试一下
http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento/

尤其mysql要启用InnoDB,看论坛的指南。

站点conf配置,只需要加一部分即可,我加了
    ## These locations would be hidden by .htaccess normally
    location /app/                { deny all; }
    location /includes/           { deny all; }
    location /lib/                { deny all; }
    location /media/downloadable/ { deny all; }
    location /pkginfo/            { deny all; }
    location /report/config.xml   { deny all; }
    location /var/                { deny all; }

    location /var/export/ { ## Allow admins only to view export folder
        auth_basic           "Restricted"; ## Message shown in login window
        auth_basic_user_file htpasswd; ## See /etc/nginx/htpassword
        autoindex            on;
    }

    location  /. { ## Disable .htaccess and other hidden files
        return 404;
    }

    location @handler { ## Magento uses a common front handler
        rewrite / /index.php;
    }


至于seo优化等等,都待安装完成后再做,安装过程未修改文件夹权限,未出现404
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-23 11:12 , Processed in 0.024995 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表