花了2天来研究这个问题,最终成功安装。参考了大量资料,软件比较新,可以查看的资料非常少。不停的google去查找资源。经过反复尝试,最终实验成功。

先后尝试过LNMP 最新1.3版 用php7,但是试过了很多次,都不成功。

Magneto is an open source e-commerce application owned by eBay. It operates using a LAMP stack on most Linux distributions. This guide will focus on how to setup Magento on Ubuntu 15.04 – but the steps here should work for other versions as well.

Please note that Magento is a very resource-heavy application. For a test server, PHP requires a minimum of 512MB of RAM, but you should use at least 1GB for a small store and 4GB for a medium to large store with hundreds of products.

This tutorial assumes that you are using a freshly created VPS with no installed packages.

Installing

LAMP Stack

First, ensure that the apt-get package library is up to date by running the command below. This will ensure that the latest version of the packages are installed.

$ apt-get update

After this has completed, it is time to install the LAMP components that powers Magento (Linux, Apache, MySQL, PHP). Run the following command with sudo to install all 3 packages in one go. Alternatively, you may install these packages separately using this tutorial.

$ sudo apt-get install lamp-server^

You will need to specify a password for the MySQL root user. Make sure this password is secure and note it down as it will be needed later.

Apache Setup

Before Magneto is installed, we need to configure Apache to properly redirect and rewrite the incoming traffic. Create a virtual host file for Apache using the following command. Here, we use the nano editor, however any text editor could be used.

$ sudo nano /etc/apache2/sites-available/magento.conf

Inside this file, copy and paste our setup options into the nano interface.

<VirtualHost *:80>
    DocumentRoot /var/www/public
    <Directory /var/www/public/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
    </Directory>
</VirtualHost>

It should look similar to the screenshot below.

Save and close the file using Control + O 然后回车一下 ,然后Control + X. Next, we have to tell Apache to use the new config file, and to ignore the default config file. Execute the following commands below (in order):

$ sudo a2ensite magento.conf

$ sudo a2dissite 000-default.conf

Then, reload Apache using the command.

$ sudo service apache2 reload

PHP Setup

PHP also needs to be configured to properly handle the Magento application. As it is an extremely resource heavy application, we need to increase the memory allocation given to PHP. In this case, I will allocate 512MB as this will only be running a test store, however most stores require 1-4GB of memory.

First, open the php.ini config file with a text editor.

$ sudo nano /etc/php5/apache2/php.ini

Find the line which declares the memory limit for PHP and change it to your desired number (in this case, 512MB).

memory_limit = 512M

Save and close the file using Control + O 记得每次都要回车一下and Control + X.

Magento also needs some additional PHP modules which can be installed using apt-get. Execute the following command.

$ sudo apt-get install php5-mcrypt php5-curl php5-gd libcurl3 php5-intl php5-xsl

Once the install finishes, run the following commands.

$ sudo a2enmod rewrite
$ sudo php5enmod mcrypt

Finally, restart Apache.

$ sudo service apache2 restart

MySQL Setup

Magento uses MySQL to store almost all the data associated with the site. We need to create a database for the application to use. Start the MySQL commandline using the command below, using the password from the LAMP setup earlier.

$ mysql -u root -p

Next, execute the command below to create the database.

CREATE DATABASE magento;

Leave the MySQL commandline using Control + C.

Installing Magento

Install composer with the following command:

$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

We need to generate a keypair to clone the Magento repo. Since this requires authentication, see the Magento developer documentation for the latest instructions.

Next, place these keys in the auth file for composer using the command below.

$ sudo nano /root/.composer/auth.json

Copy and paste the contents below into the file.下面要获得magento 官方的key,官方有教程。 然后更改下面的 对应的两个key。

{
"http-basic": {
      "repo.magento.com": {
         "username": "<your public key>",
         "password": "<your private key>"
      }
   }
}

CD to the web directory.

$ cd /var/www

Clone the Magento Github repo.

$ git clone -b 2.0 https://github.com/magento/magento2.git public

CD into the cloned folder.

$ cd public

Run composer install to update the dependencies.

 $ composer install

至此安装完成,在浏览器输入域名或者ip,加上 、setup执行在线安装,这个一步一步地操作就行了。

期间可能会遇到一些问题,拿着问题去google一下就可以搞定。

权限

根据你的系统,执行以下命令

Typical examples:

  • CentOS: chown -R :apache .
  • Ubuntu: chown -R :www-data .

记得后面有个点 要加上。

然后执行下面一段命令

find . -type d -exec chmod 770 {} \; && find . -type f -exec chmod 660 {} \; && chmod u+x bin/magento

安装magento 2 simple data

这个是有难度的,看了几个教程,尝试过很多次才搞定。

我们用的是composer安装

执行这个命令,自动下载数据。记得把括号内更换成你的目录

php <your Magento install dir>/bin/magento sampledata:deploy

上面的过程中会让你输入magento key的。记得别忘记了。

 

下载完成以后执行下面命令安装 ,记得把括号内更改成你的目录

php <your Magento install dir>/bin/magento setup:upgrade

上面执行完了以后,可能有一个小错误提示,Please re-run Magento compile command 这个是可以忽略的。

全部执行以后,返回看你的网站,发现网站打不开了,这个时候搜索过很多,都没找到原因。

后来发现,重新执行了下权限命令,网站可以访问了。

我的用系统

  • Ubuntu: chown -R :www-data .

 

后记:

不吃不喝研究了两天,痛苦的过程。先后使用了linode vultr等vps。


 

参考:https://www.vultr.com/docs/installing-magento-2-on-ubuntu

安装magento 2 测试数据参考 http://devdocs.magento.com/guides/v2.0/install-gde/install/sample-data-after-composer.html

 

Dear Mr. President:

I’m sorry so long to submit this proposal, in this period, we have been discussion about how to improve the performance of our account.

Please forgive our English is not good enough.

First, we introduce ourselves, we are Shenzhen Haibucuo Technology Co., Ltd, an e-commerce company, founded in 2012, mainly engaged in several major foreign trade platforms. AliExpress, ebay, Amazon, and our own B2C website.

Since early this year, our sales strategy have Change to DIY toys, we want give service to Makers around the world. So we have removed a lot of the previous product. We want sell some special product .We also have registered their trademarks SINONING for toys, currently being reviewed trademark. But unfortunately, the not stable product make more problem. But we will never give up, we will do our best on what we want do.

We have get the reason of our poor performance showing below:

  1. We have choose a diverse catalogue, it difficult fully handle at short time.
  2. Our efforts is not enough
  3. send product not in time.
  4. before ship the good, we not fully carefully check and test.
  5. Customer response is not timely, not in time solve the problem which customers meet.
  6. Product description is not clear enough
  7. There have some personal reasons in early June, some customer the product robot tank chassis parts missing, not timely reply and resend the missing parts.

 

We will take the following measures showing below:

  1. work harder on the Amazon Store
  2. Learn Amazon regulation.
  3. Carefully chooses product to sell on Amazon.
  4. Timely ship out the product.
  5. timely reply and solve customer questions
  6. Product must Check and test carefully before shipment
  7. clear and accrual describe product.

 

Finally, I urge restoration of our rights to sell, we will not let you down.

美国亚马逊产品编辑的8个要点

1-要使用详细的商品名称。
2-要写上你的商品品牌、套系、材料、颜色、尺寸和数量。
3-要在search terms 里面写【单词】,而不是长段的词语,词与词之间要有标点符号作分隔。
4-不要为了搜索排名靠前而故意添加与自己产品没有关系的单词或者品牌。
5-英文的拼写一定要正确无误。
6-商品名称的单词要按照一定的规则来排列。比如大号毛绒泰迪熊,而不是泰迪毛绒大号熊。
7-尽量不要使用买家不明白的专业缩写。
8-不断的做实验,不断地调整自己的商品关键词,你会成功的。

打开includes/config.php

在下面增加以下代码即可

define(‘COMPILER_INCLUDE_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’src’);
define(‘COMPILER_COLLECT_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’stat’);

关闭的话
修改成

#define(‘COMPILER_INCLUDE_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’src’);
#define(‘COMPILER_COLLECT_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’stat’);

经本人测试,客气了compiler 之后,速度明显提升

    专注于无线网络产品,遂建立无线专家英文站,向全世界展示无线网络设备的最新技术!

  Wireless-expert.com本网站主要介绍,大功率无线网卡,无线中继,无线路由器等无线技术产品。
    本网站由 Victor Ning 创建,隶属于BuyinlotCom
网址:http://www.wireless-expert.com

对于很多Magento网站来说,其实并不需要产品比较功能(Compare Products Function);产品比较功能一般只对电子产品或者大型家电产品有作用,对服饰箱包、鞋帽、工艺品礼品、珠宝饰品、文具贴纸等等绝大多数非标准化产品来说并没有作用,而且会产生与产品页面雷同的页面,影响Magento网站的SEO表现。而Magento后台又没有直接可以关闭这个功能的地方。网上给出了很多解决方案,都需要手动修改很多代码,对于新手来说很容易出错。

现在推荐一款插件可以一步轻松去掉 Magento网站的产品比较功能,Disable Compare Products

地址是:http://www.magentocommerce.com/magento-connect/disable-compare-products.html

安装方法

登录Magento网站后台,System -> Magento Connect -> Magento Connect Manager

因为这款插件作者目前仍然把他定义为 Beta版本,所以需要先在 Settings选项下将 Preferred State:设置为 Beta保存

回到 Extensions选项在 Paste extension key to install: 后面空格内填入  http://connect20.magentocommerce.com/community/Wfs_DisableCompare ,点击Install,在弹出表格下点击 Proceed,安装完毕。刷新缓存,前台产品列表和产品详情页面已经没有add to compare功能了

disable-magento-comapre-products2

当我们调试MAGENTO时候,关闭缓存(CACHE)的必要性 在调试MAGENTO的时候,我们其实不需要为了每一个小的的改动而刷新缓存(CACHE)。 我建议在MAGENTO网站没有正式运营前,关闭缓存是很有必要和方便的。 关闭缓存的地方: 后台,

SYSTEM => CACHE MANAGEMENT => CACHE CONTROL => ALL CHANGE => DISABLE 这样我们就能及时看到我们修改的成果了。

调试结束,再全部 enable

为有更好的性能,也为更简洁的系统,一些不是常用或不是基本的功能,都将做为可选的安装组件
需要用到的就安装

memcache的安装
wget -c http://down.wdlinux.cn/in/memcached_ins.sh
chmod 755 memcached_ins.sh 
./memcached_ins.sh
服务启动或停止
service memcached start|stop|restart
或在后台启动也可

mysqli的安装
wget -c http://down.wdlinux.cn/in/mysqli_ins.sh
chmod 755 mysqli_ins.sh 
./mysqli_ins.sh

pdo_mysql的安装
wget -c http://down.wdlinux.cn/in/pdo_mysql_ins.sh
chmod 755 pdo_mysql_ins.sh 
./pdo_mysql_ins.sh

mysql innodb的安装
wget -c http://down.wdlinux.cn/in/mysql_innodb_ins.sh
chmod 755 mysql_innodb_ins.sh 
./mysql_innodb_ins.sh


libmcrypt的安装
wget -c http://down.wdlinux.cn/in/libmcrypt_ins.sh
chmod 755 libmcrypt_ins.sh
./libmcrypt_ins.sh


php zip的支持
wget -c http://down.wdlinux.cn/in/zip_ins.sh
chmod 755 zip_ins.sh
./zip_ins.sh

payoneer万事达卡可以提现到中国银行卡,据说只收取2%手续费,按当时汇率结算。我忍不住好奇心就体验了一下。截图如下:

最低提现500美金,自动扣除2%即10美金作为手续费,三天之后到账,我查询了当日汇率,6.2*490=刚好3038, 几乎没有误差。这么看来,payoneer 还算实惠。

跟paypal提现相比,如果是2000美金,paypal的手续费最低要45美金, 应该是payoneer要低点。

QQ图片20140328160512 QQ图片20140328160545