这个Magento安装有什么问题

时间:2011-10-21 02:49:51

标签: php magento

当我在本地环境中安装Magento程序时,在完成安装后,我访问了URL http://localhost/job/magento/并显示以下错误。

There has been an error processing your request
Illegal scheme supplied, only alphanumeric characters are permitted

Trace:
#0 D:\www\job\magento\app\code\core\Mage\Core\Model\Store.php(712): Zend_Uri::factory('{{base_url}}')
#1 D:\www\job\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(313): Mage_Core_Model_Store->isCurrentlySecure()
#2 D:\www\job\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(161): Mage_Core_Controller_Varien_Front->_checkBaseUrl(Object(Mage_Core_Controller_Request_Http))
#3 D:\www\job\magento\app\code\core\Mage\Core\Model\App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#4 D:\www\job\magento\app\Mage.php(640): Mage_Core_Model_App->run(Array)
#5 D:\www\job\magento\index.php(80): Mage::run('', 'store')
#6 {ma

如何纠正?谢谢!

11 个答案:

答案 0 :(得分:5)

请使用localhost IP地址127.0.0.1

安装magento

Ex:http://127.0.0.1/job/magento/

答案 1 :(得分:3)

尝试加载https://localhost/magento

请注意 https 而不是http。

答案 2 :(得分:2)

通过在协议后的第一个屏幕中选中第三个复选框("在下一步&#34之前跳过基本URL验证;)来解决此问题。

我在LAMP服务器上安装了FQD。

答案 3 :(得分:1)

我修正了这个问题,将目录权限更改为755,正如安装指南中所述 http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/magento_installation_guide

答案 4 :(得分:1)

通过在协议后第一个屏幕中选中第三个复选框(“在下一步之前跳过基本URL验证”)解决了这个问题。

并使用firefox

当我使用chrome时,我在安装后遇到问题。

我不知道为什么

答案 5 :(得分:1)

试试这个肯定会帮助你...... https://127.0.0.1/magento/

答案 6 :(得分:0)

您可以尝试直接从数据库更改base_url变量。

使用phpmyadmin或任何其他软件转到magento数据库。

在“core_config_data”表中查找web / unsecure / base_url的条目,并将其更改为“{{base_url}}”或http://127.0.0.1 对web / secure / base_url执行相同的操作

答案 7 :(得分:0)

在Wamp和XAMPP上遇到同样的问题。几乎放弃了。 最后找到解决方案,Magento 1.6无法正常使用WAMP 2.1和XMAPP 1.7,我猜它是由Mysql版本引起的,不太确定。 但在我将WAMP改为2.0之后,一切都很好。 Magento 1.6运行良好。 下载WAMP2.0i:http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.0/WampServer2.0i.exe/download

我无法在Chrome上安装,但在firefox上取得了成功。

祝你好运。

答案 8 :(得分:0)

当我在安装magto之后安装magento示例数据时,这通常会发生在我身上,你应该以其他方式执行此操作(相同的数据会清除core_config_data表)。

来自http://www.magentocommerce.com/download

示例数据 - 必须在基本Magento安装之前安装。

答案 9 :(得分:0)

安装'配置' magento安装步骤,你必须使用' http://127.0.0.1/magento/'在base url文本框中,而不是' http:// localhost / magento'这样做。

祝你好运。

答案 10 :(得分:0)

处理您的请求SQLSTATE[28000] [1045] Access denied for user \\\’demo\\\’@\\\’localhost\\\’ (using password: YES)

时出错

如果没有数据库连接,则会发生此错误。首先,您需要检查local.xml文件...然后检查数据库中core_config_data的网址路径....清除您的cache sessionlocks ....如果在执行所有这些操作后仍然出现错误\\“您只需查看app/etc文件夹......如果有任何额外的内容xml文件只删除该特定文件......我遇到了同样的问题..在local_org.xml文件夹中找到了一个etc文件.......只是删除了那个文件它会正常工作..........笑容