Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    May 2005
    Posts
    106
    Plugin Contributions
    0

    Default Problem with restricted tmp folder on new host

    Been a long time since I came here for any advice, I'm glad to see how large Zen cart has grown since! :)

    Anyway, my problem is quite simple. I've moved hosting provider, instead of re-installing zen cart I'm just trying to transition it to the new server. Seems successful aside from one error, which is a restriction against accessing the root 'tmp' directory on my new, free hosting.

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/sential.co.uk/htdocs/shop/admin/includes/local/skip_version_check.ini) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a8601869/public_html/shop/admin/includes/application_top.php on line 52


    I did my googling, and saw someone solve a very similar problem on the same hosting provider, but with different software. The solution was:

    just replace $_SERVER['DOCUMENT_ROOT']; with '/home/a7396436/public_html/'
    forum.phpvideotutorials.com/showthread.php?p=65606#post65606

    …which makes sense to me, but can someone tell me what file, and which line[s], I should edit in zen cart.

    Thank you! :)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Problem with restricted tmp folder on new host

    Is there a reason why you're not following the tried-and-true FAQ which tells you the best way to switch between hosts? https://www.zen-cart.com/tutorials/i...hp?article=100
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2005
    Posts
    106
    Plugin Contributions
    0

    Default Re: Problem with restricted tmp folder on new host

    Oh, I didn't think it was a problem with the installation per se, but I'll give it a go and hopefully you're right.

  4. #4
    Join Date
    May 2005
    Posts
    106
    Plugin Contributions
    0

    Default Re: Problem with restricted tmp folder on new host

    Started the installation process and got this big red X in the prerequisites…

    PHP open_basedir restrictions = /home/:/usr/lib/php:/tmp

    The same error I said before. So is there some way I can change the tmp directory zen cart is trying to use to a tmp directory within /public_html/ ?

  5. #5
    Join Date
    May 2005
    Posts
    106
    Plugin Contributions
    0

    Default Re: Problem with restricted tmp folder on new host

    My host doesn't allow access to that directory. I think all I need to do is edit the chosen path and that should fix it, right?

    I don't know if this problem is solved in the latest version, I'm currently on a patched 1.2.7 installation. I'm aware of the security risks, but I'm not in a position to re-customize the whole store again at the moment.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Problem with restricted tmp folder on new host

    Zen Cart does *NOT* need to use the /tmp folder.
    The error message in your first post is a result of your 2 configure.php files containing path references that were used on the OLD server. And now since your NEW server is trying to use those references (because you've not edited them properly to suit the new server) , you're getting error messages.

    Following the FAQ instruction to do a complete new installation on the new server will result in correct NEW configure.php files being built to suit your NEW server specifically.

    You can ignore the open_basedir restriction *warning* in the installation prerequesites screen. It's simply there to alert you that your particular server *is* using that feature as part of its security setup and thus if you attempt to use paths outside of its allowed restrictions you will encounter problems.

    Just carry on with the installation as guided by the FAQ article. There are only a couple truly fatal system-inspection situations and if those occur then the "Install" button won't be clickable and won't let you proceed, but will give you very specific details about what's wrong and needs fixing.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v139f access to database restricted by host
    By buildingblocks in forum General Questions
    Replies: 4
    Last Post: 5 May 2014, 01:02 AM
  2. tmp/analog folder - HELP
    By helpme2008 in forum General Questions
    Replies: 3
    Last Post: 13 Aug 2008, 08:08 PM
  3. Fresh install of 1.3.0.2 on a new host server - problem with database
    By henrygoh in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 14 Jul 2006, 09:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg