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 related to finding templates after moving to another server

September 26, 2012 9:31pm

Subscribe [1]
  • #1 / Sep 26, 2012 9:31pm

    lysmith

    3 posts

    I carefully followed the directions for “Moving EE to Another Server” and was able to login to my control panel and make changes as outlined, including editing config file .

    However, when I try to go to the site, I receive errors related to the path to the templates. The old server path (lcitest.smithaddy.com) is still being found somewhere and I cannot determine where.

    New server is at:
    http://66.226.79.148

    A couple of the errors shown are:

    A PHP Error was encountered
    
    Severity: Warning
    Message: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/www/lcitest.smithaddy.com/assets/templates/default/default_site/home.group/index.html) is not within the allowed path(s): (/var/www/vhosts/lcicorp.com/httpdocs/:/tmp/)
    Filename: libraries/Template.php
    Line Number: 2318
    
    A PHP Error was encountered
    
    Severity: Warning
    Message: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/www/lcitest.smithaddy.com/assets/templates/default/default_site/includes.group/footer.html) is not within the allowed path(s): (/var/www/vhosts/lcicorp.com/httpdocs/:/tmp/)
    Filename: libraries/Template.php
    Line Number: 2318


    EE 2.5.3 Build Date: 20120911

    Thanks very much for any help you can provide.

  • #2 / Sep 27, 2012 4:12pm

    Kevin Smith

    4784 posts

    Hi lysmith,

    Unfortunately, it sounds like your host has open_basedir restrictions in effect, which can cause problems with EE (or any PHP-based web application). Could you check with your host to see if they’d be willing to lift this restriction?

    If they’re not, then you should be able to work around this by keeping all your EE files within the same hosting account’s web root. How are your files currently set up on this host?

  • #3 / Sep 28, 2012 8:42am

    lysmith

    3 posts

    I will check with host, renting cloud server which is already hosting an EE site for sister company’s website so we should be able to work this out. I added a webspace for the LCI site using Plesk server.

    Thank you!

  • #4 / Sep 28, 2012 4:08pm

    Dan Decker

    7338 posts

    Hi lysmith,

    Let us know if there is anything we can do to help after you speak with your host.

    Cheers,

  • #5 / Sep 28, 2012 4:18pm

    lysmith

    3 posts

    The information you provided helped to solve the problem. The site now comes up without error. Thank you!

  • #6 / Sep 28, 2012 4:27pm

    Kevin Smith

    4784 posts

    Great! Glad to see that helped you take care of it. If there’s anything else we can do for you, just let us know!

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

ExpressionEngine News!

#eecms, #events, #releases