运行Magento与多个商店。基地商店完美运作。在辅助存储达到结帐切换到HTTPS时,这组警告的产生:这是什么Magento的open_basedir问题呢?
Warning: require_once() [function.require-once]: open_basedir restriction in effect.
File(/var/www/vhosts/mainstore.com/httpdocs/app/Mage.php) is not within the allowed path(s): (/var/www/vhosts/secondarystore.com/httpdocs:/tmp) in /var/www/vhosts/secondarystore.com/httpdocs/index.php on line 41
Warning: require_once(/var/www/vhosts/mainstore.com/httpdocs/app/Mage.php) [function.require-once]: failed to open stream: Operation not permitted in /var/www/vhosts/secondarystore.com/httpdocs/index.php on line 41
Fatal error: require_once() [function.require]: Failed opening required '/var/www/vhosts/mainstore.com/httpdocs/app/Mage.php' (include_path='.:') in /var/www/vhosts/secondarystore.com/httpdocs/index.php on line 41
的phpinfo显示的open_basedir
local value : /var/www/vhosts/mainstore.com/httpdocs:/tmp
master value: none
是什么给了以下?
我从Magento所在的同一个目录运行php_info。我必须在这里大喊自己。小故事:每个人都把我留在这个洞里。 – 2012-02-29 16:15:53