现在的位置: 首页 > 综合 > 正文

Magento本地安装基本配置

2013年02月27日 ⁄ 综合 ⁄ 共 1049字 ⁄ 字号 评论关闭

 

这篇文章讲的Magento在本地Xampp安装中经常出现的一些问题和解决办法。首先需安装Xampp

1.由于magento在使用http://localhost访问的时候会产生未知的问题,因此需要配置hosts文件和apachevhost,这样本地通过http://www.shop.com访问本地的指定目录。

Hosts文件位于c:/windows/system32/drivers/etc/hosts文件,在最下方添加一行记录:

127.0.0.1       www.shop.com

Vhost位于xampp/apache/conf/extra/httpd-vhosts.conf文件,在最下方添加如下代码:

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot E:\xampp\htdocs
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot E:\xampp\htdocs\shop
    ServerName www.shop.com
</VirtualHost>

修改之后,需要重启apache,然后在浏览器输入http;//www.shop.com可以看到访问shop目录。

 

2.安装magento的时候,系统提示配置curl。修改xampp/php/php.ini文件,然后将其中;extension=php_curl.dll中的第一个;去掉,保存,重启apache

 

3.安装Magento数据库的时候,会因为执行时间超过60秒,从而导致数据库尚未执行完成就超时,修改xampp/php/php.ini文件,将max_execution_time = 60修改为max_execution_time = 1800,将max_input_time = 60修改为max_input_time = 1800。保存并重启apache

 

4.如果Magneto安装异常,先删除app/etc/local.xml文件,这样可以开始重新安装,为安全起见,建议同时删除var/cache/var/session/目录下的所有文件。

 

原文地址:http://www.ahuasheng.com/magento-local-installation-config.html

【上篇】
【下篇】

抱歉!评论已关闭.