Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

New Sever Move - Issues with $_Server and [’DOCUMENT_ROOT’]
 
arthurraft
Jr. Member
 
Total Posts:  5
Joined:  2011-03-23
 

Hello Magento People,

I’m mid-way through shifting my site from a basic VPS, to a really fast dedicated server.

Issue at hand - I am getting page errors such as:

Warning: require_once(/usr/local/apache/htdocs/magento/app/Mage.php)......

This is being generated by the following script:

require_once $_SERVER[’DOCUMENT_ROOT’]."/app/Mage.php";

1 - Why is magento suddenly looking for Mage.php with a path relative to my absolute server root?

2 - Also, why in particular is it looking for Mage.php inside Apache’s /htdocs/ folder?

Any help will let me sleep a whole lot better,

Cheers.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top