【转】magento安装域名出错Please enter a valid URL. Protocol is required
来源:互联网 发布:mysql workbench使用 编辑:程序博客网 时间:2024/05/16 05:38
错误出现在magento1.5版中。
到网上查了一下,报错的直观原因是因为js检测输入域名不合法,于是有人提出注释掉对应的js检测,大约在505行,还有人建议浏览器禁用js就行了。这两种都不失为解决方案,但是这样的解决还会带来新问题。
安装好后前台不能注册用户,后台也不能登陆直接跳出 magento 提示页面说没有设置 cookies
问题的根本原因在于,magento不在接受localhost当做域名。
所以我们需要,第一修改host文件,添加一个虚假域名指向本机。
系统目录下找到x:/windows/system32/drivers/etc/host
在下面添加上127.0.0.1 www.testmagento.com
然后配置虚拟主机
找到apache 的apache.conf文件或者是是apache/conf/extra/httpd-vhost.conf文件 ,在下面添加上
<VirtualHost *:80>
ServerAdmin example@yourmail.com
DocumentRoot “/xampp/htdocs/magento”
ServerName www.testmagento.com
ErrorLog “logs/www.testmagento.com.error.log”
CustomLog “logs/www.testmagento.com.access.log” combined
</VirtualHost>
上面的/xampp/htdocs/magento是你的magento在服务器里面的放置位置。
然后重启apache,通过www.testmagento.com访问你的magento目录就可以安装了
- 【转】magento安装域名出错Please enter a valid URL. Protocol is required
- [magento]Please enter a valid URL. Protocol is required (http://, https:// or ftp://)
- git中Please enter a commit message to explain why this merge is necessary. Please enter a commit mess
- BW:Enter a valid value
- Error: An App ID with identifier "*****" is not avaliable. Please enter a different string.
- An App ID with Identifier is not available. Please enter a different string
- An App ID with Identifier 'com.XXX.XXX’ is not available. Please enter a differ
- An App ID with Identifier 'com.domainName.AppName' is not available. Please enter a different string
- git:Please enter a commit message to explain why this merge is necessary
- An App ID with Identifier 'XXXX' is not available. Please enter a different string.
- An App ID with Identifier 'com.FE.BMH' is not available. Please enter a different string.
- 解决 an app id with identifier is not available. please enter a different string. xcode 7.3
- 解决 an app id with identifier is not available. please enter a different string
- An App ID with Identifier 'XXX.XXX.XXX’ is not available. Please enter a different string
- An App ID with Identifier "xxx" is not available . Please enter a different string.解决方法
- 【iOS开发】An Apple ID with identifier "xxx"is not available. Please enter a different string.
- Please enter a commit message to explain why this merge is necessary.
- An App ID with Identifier 'com.jd.xxx' is not available. Please enter a different string.
- XTU - 1095 连续自然数之和
- delphi 执行一个外部程序,当外部程序结束后言主程序立即响应
- 一个有趣的方法
- constructor很重要
- Android放大镜的实现
- 【转】magento安装域名出错Please enter a valid URL. Protocol is required
- 整除11
- Mstr Web客户端安装方式
- Android通过手势实现的缩放处理
- 疯狂java笔记:表达式中的陷阱
- 项目管理 工时管理 敏捷管理 Project Manager 管理软件
- Windows Mobile 常用键值(VK)对应表
- Runtime C# Expression Evaluator
- container_of 理解