ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP Error after moving EE from Stage Server to Live Server

August 13, 2012 12:20pm

Subscribe [2]
  • #1 / Aug 13, 2012 12:20pm

    bcrabtree

    60 posts

    Hi,

    I’m getting the following PHP error at the top of my Admin Panel after moving my site from it’s stage location to it’s live location on the server:

    A PHP Error was encountered
    Severity: Warning
    Message: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/mywebsite.com/subdomains/stage/httpdocs/index.php) is not within the allowed path(s): (/var/www/vhosts/mywebsite.com/httpdocs:/tmp)
    Filename: libraries/File_integrity.php
    Line Number: 95

    It looks like after moving, EE is still trying to lookup something at the old stage path. I’ve checked and double checked every setting in EE to make sure the paths are correct and can’t seem to find where the path hasn’t been changed.

    Any idea what I’m missing?

    Thanks,
    B

  • #2 / Aug 14, 2012 4:30pm

    Dan Decker

    7338 posts

    Hi Bryan,

    I hate to see you having trouble after the move!

    There are a few things to double check. First, Moving ExpressionEngine to Another Server covers most everything to follow up a move.

    Another is the error itself, open_basedir is a server setting and you should contact your host about the possible cause.

    After you speak with them, let me know if you are still getting the error.

    Cheers,

  • #3 / Aug 14, 2012 5:28pm

    bcrabtree

    60 posts

    Hey Dan,

    I ended up doing a find/replace of /subdomains/stage/httpdocs/ with /httpdocs/ in the DB and found 5 instances that needed to to be changed.

    Seems to have fixed the issue.

    Cheers,
    B

  • #4 / Aug 14, 2012 5:31pm

    J. Hull

    132 posts

    Also, don’t know if you know about it but Deeploy Helper can help you easily and quickly change all those paths at once (its what I use)

  • #5 / Aug 14, 2012 5:40pm

    bcrabtree

    60 posts

    Thanks for the Heads up J.Hull. I’ll keep that in mind for the future.

    Cheers,
    B

  • #6 / Aug 15, 2012 3:22pm

    Dan Decker

    7338 posts

    Hey Bryan,

    Glad to see you are all sorted!

    If you need anything later, just let us know.

    Thanks,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases