Nginx 安装配置magento 1.8.0.0

3 篇文章 0 订阅
1 篇文章 0 订阅

1.  下载Magento 

       http://www.magentochina.org/download   Magento-1.8.0.0正式版下载


2.  解压缩magento-1.8.0.0.tar.gz

     cd /var/www

     tar xvf magento-1.8.0.0.tar.gz

     cd magento

     chmod -R o+w media var

chmod o+w app/etc


Optionally delete the download file and empty directory from the extracted files:


  
  
  1. rm -rf magento-1.8.0.0.tar.gz


3. Install Nginx, PHP5, SSL and MySQL.


  
  
  1. sudo apt-get install nginx php5 php5-cli php5-cgi spawn-fcgi php5-mysql php5-mcrypt php5-curl php5-gd php5-fpm openssl mysql-server

Choose and enter a secure password for MySQL when prompted and enter again to confirm. This is called mypassword in the following steps but replace that with the password you have chosen here.

4. Install php-apc. APC is an opcode cache that can significantly speed up your PHP applications, by caching both PHP code and user variables.


  
  
  1. sudo apt-get install php-apc

5. Create the MySQL Database


  
  
  1. mysql -u root -pmypassword
  2. create database mymagentoshop;
  3. grant all privileges on mydatabasename.* to mydatabasename@localhost identified by 'mypassword';
  4. exit

6. Configure Nginx


  
  
  1. nano /etc/nginx/sites-enabled/default
  2. listen 80; ## listen for ipv4; this line is default and implied
  3. #listen [::]:80 default ipv6only=on; ## listen for ipv6

Uncomment listen links above by removing the preceding #
ctrl + x to exit and save

7.  Nginx setup

 




ERROR FIX:

PHP extension "gd" must be loaded.

RESOLVE:

add the following two lines to the end of /etc/php5/fpm/php.ini 

extension=mysql.so
extension=gd.so

restart php

sudo /etc/init.d/php5-fpm restart




    • URL “http://localhost/” 无法访问。
    • Error parsing body - doesn't seem to be a chunked message

    RESOLVE:

  •  Check

    如果不能自动验证基本URL,就选中该选项。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值