Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2010
    Posts
    2
    Plugin Contributions
    0

    Default 500 Internal Server Error - new install

    I have copied the files (v1.3.9) to my server (hosted by Streamline.net) and on running install for the first time received the following error message:

    Hello. Thank you for loading Zen Cart™.
    You are seeing this page for one or more reasons:

    1. This is your first time using Zen Cart™ and you haven't yet completed the normal Installation procedure.
    If this is the case for you, Click here to begin installation.

    2. Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
    If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
    See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance.
    3. Additional Details: includes/configure.php file contents invalid. ie: DIR_FS_CATALOG not valid or not set



    The portion of includes/config.php that references DIR_FS_CATALOG is as follows:

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    If I attempt to run the install I get a 500 Error.

    Thanks in advance if anyone can help me

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: 500 Internal Server Error - new install

    On a new install you wouldn't have an includes/configure.php file nor an admin/includes/configure.php file - they are created by the install using the dist-configure.php files.

    The solution, if carrying out a new install using the Zen Cart installer, is to delete any existing configure.php files.

    If you are copying a site over then you edit the two configure.php files. Pay particular attention to all DIR_FS pathways, which are the full pathways. DIR_FS_CATALOG would not just be '/'; but something more like 'home/username/public/html/';

    Vger

  3. #3
    Join Date
    Sep 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: 500 Internal Server Error - new install

    Thanks - I had more or less concluded that the physical path had to be included, however, my hosting company won't provide it.

    Can I use a php function to return it?

  4. #4
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: 500 Internal Server Error - new install

    To find out the full pathway to the root of your domain do this:

    1. Create a new text document on your desktop and name it cwd.php. Ignore the warning about changing the file type.

    2. Put this code into it:
    Code:
    <?php
    $p = getcwd();
    echo $p;
    ?>
    3. Upload it to the root of your domain via FTP.

    4. Go to http://www.yourdomain.com/cwd.php via your browser and printed on the screen will be the full pathway to the root of your domain.

    5. Write down that pathway and then delete the cwd.php file from your hosting.

    Vger

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

    Default Re: 500 Internal Server Error - new install

    Quote Originally Posted by groobie View Post
    The portion of includes/config.php that references DIR_FS_CATALOG is as follows:

    [I]// * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/');
    That's likely because you copied the file from dist-configure.php, as instructed. There's nothing wrong with that when running zc_install.
    There's no need to change that by hand. Run zc_install to do that.
    Quote Originally Posted by groobie View Post
    If I attempt to run the install I get a 500 Error.
    That's likely because you've got files or folders set to 777 permissions when your hosting company has set the server to allow only a maximum of 755. You'll have to use 755 instead.
    And if that doesn't solve the problem, ask your hosting company why the server is sending a 500 error, since that's under their control.
    .

    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. v139h Internal Server Error (500) When uploading new image
    By Bentronics in forum General Questions
    Replies: 3
    Last Post: 9 Oct 2015, 08:28 PM
  2. 500 - Internal server error after install?
    By AlanH in forum Installing on a Windows Server
    Replies: 1
    Last Post: 14 Aug 2011, 06:43 PM
  3. Replies: 14
    Last Post: 2 Jan 2011, 11:13 PM
  4. Replies: 1
    Last Post: 23 Sep 2010, 09:55 PM

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