虽然tomatocart的安装比较简单,但还是容易出现一些错误。
首先下载tomatocart-1.1.4.zip,解压后将含有install的文件夹catalog里面的内容部署到服务器上(在www目录下建一个目录tomato),然后打开浏览器输入:http://localhost/tomato/install
很不幸的会出现以下错误:
Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
这是由于rewrite_module没有开启,在apache的配置文件http.conf中找到 LoadModule rewrite_module modules/mod_rewrite.so,取消前面的注释。
然后就可以按照步骤进行安装了,此过程中会有一个CURL检测到不正常,这时候需要将php extension中curl项给打开,重拾一下就全部ok了。下面的就按部就班,这样就完成了!