Home > 网络基础|web应用 > linode VPS安装Magento教程,献给搞外贸站的朋友

linode VPS安装Magento教程,献给搞外贸站的朋友

很多搞外贸的朋友买了linode VPS,他们不少人问我linode用Magento咋样?Magento咋安装?鉴于很多朋友缺乏必备的linux知识,而且对linux命令感到恐惧,yqf.me本次替某网友安装了webmin(virtualmin)面板,然后在此基础上安装了Magento,安装的过程蛮顺利的,下面大致说下linode安装magento的过程:

1.了解Magento的安装系统要求:

  • Supported Operating Systems:
    • Linux x86, x86-64
  • Supported Web Servers:
    • Apache 1.3.x
    • Apache 2.0.x
    • Apache 2.2.x
    • Nginx (starting from Magento 1.7 Community and 1.12 Enterprise versions)
  • Supported Browsers:
    • Microsoft Internet Explorer 7 and above
    • Mozilla Firefox 3.5 and above
    • Apple Safari 5 and above on Mac only
    • Google Chrome 7 and above
    • Adobe Flash browser plug-in should be installed
  • PHP Compatibility:
    • 5.2.13 – 5.3.15
    • Required extensions:
      • PDO_MySQL
      • simplexml
      • mcrypt
      • hash
      • GD
      • DOM
      • iconv
      • curl
      • SOAP (if Webservices API is to be used)
    • Safe_mode off
    • Memory_limit no less than 256Mb (preferably 512)
  • MySQL:
    • 4.1.20 or newer
    • InnoDB storage engine
  • SSL:
    • If HTTPS is used to work in the admin, SSL certificate should be valid. Self-signed SSL certificates are not supported
  • Server – hosting – setup:
    • Ability to run scheduled jobs (crontab) with PHP 5
    • Ability to override options in .htaccess files

2.参考centos5安装webmin/virtualmin,含升级php,升级php后手动更新下数据库,mysql_upgrade -p 这步需要留意。

3.利用magento官方提供的环境检验.php文件验证系统是否具备安装magento的要求:去http://soft.linode.im/tools/magento-check.zip将magento-check.zip下载加压到网站根目录去验证即可,以下是我的验证结果:

Congratulations! Your server meets the requirements for Magento.

You have PHP 5.2.0 (or greater)
Safe Mode is off
You have MySQL 4.1.20 (or greater)
You have the curl extension
You have the dom extension
You have the gd extension
You have the hash extension
You have the iconv extension
You have the mcrypt extension
You have the pcre extension
You have the pdo extension
You have the pdo_mysql extension
You have the simplexml extension

4.通过ssh方式安装magento:

安装完整下载版方式:

  1. wget http://www.magentocommerce.com/downloads/assets/1.7.0.2/magento-1.7.0.2.tar.gz
  2. tar -zxvf magento-1.7.0.2.tar.gz
  3. mv magento/* magento/.htaccess .
  4. chmod -R o+w media var
  5. chmod o+w app/etc
    建议删除源文件:rm -rf magento/ magento-1.7.0.2.tar.gz

接下来就可以通过网页,域名访问来安装magento了。

对于网络条件好的朋友,也可以通过网络一步一步安装:

  1. wget http://www.magentocommerce.com/downloads/assets/1.7.0.0/magento-downloader-1.7.0.0.tar.gz
  2. tar -zxvf magento-downloader-1.7.0.0.tar.gz
  3. rm -rf magento-downloader-1.7.0.0.tar.gz
    接下来就通过网络http://www.yourwebsite.com/downloader.php来搞定。

5.以下是安装截图:


若非注明,本博客内容均为原创或翻译自Linode Library,教程默认Centos为linux发行版,转载请注明转自linode中文教程www.linode.im。linode中文教程QQ群:185393826,一起讨论linode及linux,linode中文教程、linode代购、linode合租、linode推介、linode返佣、linode优惠。日本VPS、美国VPS、海外独立服务器代购均在linode.im。

  1. No comments yet.
  1. No trackbacks yet.