Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2009
    Posts
    8
    Plugin Contributions
    0

    Default Changing from root to sub directory problems

    Hi all. I have just moved zencart from the root to a subdirectory labelled zcart. Admin seems to be working after altering the admin/includes/configure.php file but I have no front end. I have spent hours reading this forum and am on the right track I think but still receiving the error messages below when accessing the zencart home page:

    Warning: main(): open_basedir restriction in effect. File(/includes/auto_loaders/config.core.php) is not within the allowed path(s): (/usr/local/pem/vhosts/102393) in /usr/local/pem/vhosts/102393/webspace/httpdocs/zcart/includes/initsystem.php on line 21

    Warning: main(/includes/auto_loaders/config.core.php): failed to open stream: Operation not permitted in /usr/local/pem/vhosts/102393/webspace/httpdocs/zcart/includes/initsystem.php on line 21

    Warning: main(): Failed opening '/includes/auto_loaders/config.core.php' for inclusion (include_path='.:/php/includes') in /usr/local/pem/vhosts/102393/webspace/httpdocs/zcart/includes/initsystem.php on line 21

    Warning: dir(): open_basedir restriction in effect. File(/includes/auto_loaders) is not within the allowed path(s): (/usr/local/pem/vhosts/102393) in /usr/local/pem/vhosts/102393/webspace/httpdocs/zcart/includes/initsystem.php on line 22

    Warning: dir(/includes/auto_loaders): failed to open dir: Operation not permitted in /usr/local/pem/vhosts/102393/webspace/httpdocs/zcart/includes/initsystem.php on line 22

    Warning: main(): open_basedir restriction in effect. File(/includes/counter.php) is not within the allowed path(s): (/usr/local/pem/vhosts/102393) in /usr/local/pem/vhosts/102393/webspace/httpdocs/zcart/includes/application_top.php on line 115
    Warning: main(/includes/counter.php): failed to open stream: Operation not permitted in /usr/local/pem/vhosts/102393/webspace/httpdocs/zcart/includes/application_top.php on line 115
    Fatal error: main(): Failed opening required '/includes/counter.php' (include_path='.:/php/includes') in /usr/local/pem/vhosts/102393/webspace/httpdocs/zcart/includes/application_top.php on line 115

    I have attached my includes/configure.php and admin/includes/configure.php to see the changes made. I'm pretty sure that a path is incorrect somewhere but can't find it. If anyone could help find the problem I would be very grateful.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Changing from root to sub directory problems

    Your attachment has been disabled for your site's safety. Please don't post your configure files with the database location, name, user and password. That's asking to be hacked.

    Your configure settings are confused. Are you trying to move your cart into a sub directory called "zcart"? If so then remove the portions in red below:

    define('HTTP_SERVER', 'http://www.mydomain.com.au/zencart');
    define('HTTPS_SERVER', 'https://www.mydomain.com.au/zencart');
    I'm also puzzled by the bit in red for this entry, but feel that it can't be good and should go:
    define('DIR_WS_CATALOG', '/zcart/'); define('DIR_WS_HTTPS_CATALOG', '/zcart/t/');
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jul 2009
    Posts
    8
    Plugin Contributions
    0

    Default Re: Changing from root to sub directory problems

    Thanks kuroi. Thanks for addressing my errors. I'm on a testing server and thought I'd removed any vulnerabilities from the files. We're obviously in different time zones and will address tyhese issues tomorrow. Thanks again. Really appreciate any advice. On a tight deadline for this one so glad to have any advice that puts me in the right direction. Kind regards. L

  4. #4
    Join Date
    Jul 2009
    Posts
    8
    Plugin Contributions
    0

    Default Re: Changing from root to sub directory problems

    I had neglected to remove the "/" prior to the subdirectories so zencart was reading zcart//uploads etc instead of zcart/uploads etc. Thanks for putting me on the right track.

 

 

Similar Threads

  1. v154 Change existing site from sub directory to the root of the web site
    By fjbern1943 in forum Installing on a Linux/Unix Server
    Replies: 21
    Last Post: 25 Jun 2015, 03:16 AM
  2. Moving a store to the root directory from a sub-folder
    By Hell Guapo in forum General Questions
    Replies: 3
    Last Post: 21 Sep 2011, 05:51 PM
  3. Problem moving folder from sub-root to root
    By andycowboy in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 28 Jul 2009, 02:15 AM
  4. changing from /store/ to root directory
    By stella01 in forum General Questions
    Replies: 2
    Last Post: 11 Apr 2009, 08:28 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