Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    13
    Plugin Contributions
    0

    Default New Install on new server.

    Hia All, I have been battling with Zen Cart and my server all day but to no avail.

    I really didn't want to post on here as ive fallen at the first hurdle and hate asking when I know somewhere deep down someone has already asked, but ive searched and gone through the recommendations and im still in limbo.

    I have PHP Version 5.2.6, Zen Cart 1.3.9f and im using FileZilla to upload.

    my webroot is;

    /htdocs/

    and ive uploaded to /htdocs/shop/ (permissions on each 707)

    I have set the dist-configure.php files to configure.php and set permissions to 777.

    I have my directory permissions set;

    admin 707
    cache 777
    docs 707
    download 707
    editors 707
    email 707
    extras 707
    images 777 & all subdirs 777 (the files contained are 604)
    includes 707
    pub 777
    zc_install 777

    When I go to;

    myweb.com/shop/

    I see the zencart page, however, the zencart image in the top left isn't showing. And when i click to install i get "internal server error" although I can confirm the file index.php is exactly where its pointing;

    /shop/zc_install/index.php



    I have been trying most of the day, re-uploading, leaving the permissions, used a different FTP client, uploaded direct to htdocs.

    My only inkling now is that the version of php im using is the cause? But im likely to be wrong!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: New Install on new server.

    As for permissions, normally folders are set to 755 and files to 644, with a few exceptions where folders or files need to be writable, in which case 777 would be typically used, depending on hosting server limitations. Discussed here: https://www.zen-cart.com/tutorials/index.php?article=9

    As for your "Internal Server Error", that's likely a conflict with .htaccess directives supplied in the Zen Cart files as security precautions to prevent hackers from doing bad things if they were ever to get into your site for any reason. The server requirements for allowing those directives to work are outlined in the /docs/whatsnew_1.3.9a.html file, among others.

    Your webserver should have an apache errorlog, which can be viewed via your hosting company's control panel. That log should show you the exact causes of the "500 Internal Server Error" messages, and you can take action accordingly.
    .

    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
    Sep 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: New Install on new server.

    Thanks DrByte. I shall go through the documentation & logs and hopefully be able to update this thread with a big smile as I document my idiocy!

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: New Install on new server.

    Quote Originally Posted by Ste_1 View Post
    and ive uploaded to /htdocs/shop/ (permissions on each 707)

    I have set the dist-configure.php files to configure.php and set permissions to 777.

    I have my directory permissions set;

    admin 707
    cache 777
    docs 707
    download 707
    editors 707
    email 707
    extras 707
    images 777 & all subdirs 777 (the files contained are 604)
    includes 707
    pub 777
    zc_install 777

    When I go to;

    myweb.com/shop/

    I see the zencart page, however, the zencart image in the top left isn't showing. And when i click to install i get "internal server error" although I can confirm the file index.php is exactly where its pointing;

    /shop/zc_install/index.php



    I have been trying most of the day, re-uploading, leaving the permissions, used a different FTP client, uploaded direct to htdocs.

    My only inkling now is that the version of php im using is the cause? But im likely to be wrong!
    I'm 99.99% sure it isn't a PHP problem. Alas, with all you have done so far it is hard to tell what your *original* problem(s) were. What I/we can tell you though is that your curent permissions are totally wrong, which is probably the cause of the infernal ,, err, internal server error.

    Almost all the directories should have permissions set to 755 ... I've no idea where you got the '707' from, but I have never ever seen this setting used for anything.

    OK, I'm not a great deal of help, but setting these back to what they should be will go a long way to getting it working.

    As for your FTP program (Filezilla), some people aren't keen on it, but it is one of my personal favourites and has never let me down.

    Good luck
    Cheers
    Rod

  5. #5
    Join Date
    Sep 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: New Install on new server.

    Thanks RodG. The permissions are what have gone up as default. Im just in the process of re-uploading to my server, ive deleted everything and re-downloaded zencart. Just to be safe.

    I was following the guide provided "installing Zen Cart (tm)" and as it mentioned to set the permissions on certain folders, but not what the ones you don't change are left to I didn't touch them! Foolish Assumptions lol!

    Thanks Again!

  6. #6
    Join Date
    Sep 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: New Install on new server.

    Ok, ive got a little further, but still no clue :). The following messages were displayed after a total re-upload and correction of the permissions;



    2. Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.

    3. Additional Details: includes/configure.php file contents invalid. ie: DIR_FS_CATALOG not valid or not set


    I took a copy of the files to have a look to see if I could do it manually but I don't know PHP and w3schools can't save me here!!

  7. #7
    Join Date
    Sep 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: New Install on new server.

    /htdocs/catalogue/includes/.htaccess: order not allowed here
    /htdocs/catalogue/zc_install/.htaccess: DirectoryIndex not allowed here

    Those are entries in my error log on the server, does anyone know what I need to do to allow said order & directory index?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: New Install on new server.

    Quote Originally Posted by Ste_1 View Post
    3. Additional Details: includes/configure.php file contents invalid. ie: DIR_FS_CATALOG not valid or not set
    That specific issue is what's causing your problem.
    ie: the path specified there is invalid or doesn't match where your store is installed.
    That's common if you've relocated the site to another server or folder, and haven't updated the configure.php files to match.

    THAT is why the Tutorial on moving to another server directs you to do a clean new install on the new server, which then builds a good set of configure.php files, then preserve those files as you upload your old site's files. 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.

  9. #9
    Join Date
    Sep 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: New Install on new server.

    This is a new install. Infact I re-downloaded everything and re-uploaded it all last night.

    So do I need to upload direct to /htdocs or edit the config file to say its in /htdocs/catalogue. The config file that is named dist-config... from the oem package.

    Im following the instructions word for word.

 

 

Similar Threads

  1. New server install questions
    By ride22 in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 28 Jun 2011, 03:00 AM
  2. New install on a linux server
    By heben in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 7 Nov 2009, 01:17 PM
  3. Replies: 5
    Last Post: 8 Oct 2009, 07:50 AM
  4. New install to Linux Server
    By eccotec in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 13 Aug 2009, 08:06 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