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.

Basedir Error after Migration

October 22, 2011 9:27am

Subscribe [3]
  • #1 / Oct 22, 2011 9:27am

    Hi

    I’ve just migrated an ee installation from my dev-server to the production server. Now, if I want to log in the administration-sector (/system), there ist a PHP Error:

    A PHP Error was encountered
    
    Severity: Warning
    
    Message: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/myoldpath/public_html/ee/themes/) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/httpdocs/:/tmp/)
    
    Filename: libraries/Core.php
    
    Line Number: 183

    The path “/home/myoldpath/public_html/ee/themes/” is from my old server! And I cannot find, where i can change this path.

    Any ideas? Thanks!

     

     

  • #2 / Oct 22, 2011 10:49am

    Ok, after hours of searching for a solution, i’ve found a guide for creating a robust config-file.

    By adding these lines to my config, it works for me (with some little errors, but finally, i’m the admin-sector!):

    $config[‘theme_folder_url’] = “http://mydomain.com/themes/”;
    $config[‘theme_folder_path’] = “/var/mypath/httpdocs/themes/”;

    I’m wondering, why this is not in the migration-tutorial. Am I the only one with this problem? If yes, why?

    ...moving ee is no fun. seriously

  • #3 / Oct 24, 2011 11:04am

    Mark Bowen

    12637 posts

    Hi Marco,

    What you are seeing here is a server restriction so you would need to contact your host to get them to remove that restriction on your server.

    This is also the reason why it’s not covered in the documentation as I’m afraid we can’t list all problems that might arise on all different servers.

    This is definitely something that you would need to take up with your host though in order to get that restriction lifted.

    Does that help at all?

    Thanks,

    Mark

  • #4 / Mar 20, 2012 4:28pm

    zebradog

    1 posts

    Thanks Marco! You just saved me a ton of time. FWIW, I did not need to contact the host/etc.. only add the additional two lines to my config file.

    The migration tutorial seems to make it more work than necessary:  A simple SQL dump, find/replace on the domain/www folder in SQL file, transfer site files, modify config and database files… done.

  • #5 / Mar 21, 2012 8:32pm

    Sean C. Smith

    3818 posts

    Zebradog,

    Welcome to the forums. We’re glad to have you here. Glad to see this thread was helpful to you. Is there anything else I can assist you with?

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases