haospoke 发表于 2012-7-10 10:20:20

LNMP下如何安装Magento

首先服务器配置够高,一般的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
页: [1]
查看完整版本: LNMP下如何安装Magento