運行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