Magento News

 

PEAR Upgrade problem: How to change the document root location?

How can I reset the document root value that PEAR seems to remember?

I had set up a Magento installation on one machine, and then migrated it to another machine.  Everything seemed to be working great until I tried the PEAR upgrade today.

As the document root had changed (no longer /srv/www/htdocs), I got this error on the PEAR upgrade screen:


ERRORfailed to mkdir /srv/www/htdocs/lib/Zend/Acl/Assert
ERROR
failed to mkdir /srv/www/htdocs/lib/Varien/Convert/Action
ERROR
failed to mkdir /srv/www/htdocs/app
ERROR
failed to mkdir /srv/www/htdocs/skin/install/default/default/css
ERROR
failed to mkdir /srv/www/htdocs/skin/adminhtml/default/default/images/tree_icons
ERROR
failed to mkdir /srv/www/htdocs/skin/frontend/default/default/css

…basically, it is just trying to put the files in the wrong location (but the right location for the original installation).

I tried to find a setting for this, but couldn’t see any in the database.  Looking through the file system the path seemed to be saved in hundreds of places!!

Is there an easy way to change the path, or do I have to search and replace it in hundreds of locations?

Thanks for any suggestions!

PEAR Upgrade problem: How to change the document root location?

Possibly Related Posts:


 

Leave a Reply