Thread: index.html/php

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Apr 2012
    Posts
    8
    Plugin Contributions
    0

    Default index.html/php

    Having a huge problem. Store and all customisation was working fine for months. no changes made but suddenly started getting apache test page for linux error. Wanted to follow instructions as suggested in the welcome.conf file but using Plesk control panel so have no access to linux files. I contacted service provider for access so i could edit using ssh client but was informed by SP that they do not provide this access. They simply stated that the reason i am getting the error is because i do not have an index.html, index.htm or index.php file in the root of my /httpdocs folder. My problem is that i never had one in there when the site worked properly so why now. Secondly if i do require one what should the content of it be. I created one as a test and added some generic html content from my define_main_page.php file and all it does is display the raw html content. its not linked to a stylesheet so obviously no formatting but the actual store does not load at all. i dont care about formatting but how do i get my template to load.
    I reverted back to the classic template, created a new template, searched the forums, renamed .htaccess files etc to no avail.
    Is there a way to create an index file in /httpdocs root and link it to the rest of my template files? Is that the actual solution. Forgive my ignorance but i am very new to this and know very little about web dev.
    My site address is www.poor-boys.co.za.
    I have gone around in circles here and am fresh outta ideas so any suggestions would be greatly appreciated.

    Naz

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: index.html/php

    "Aangename Kennis" Naz...

    Can you access your httpdocs folder via FTP? Is zencart's index.php file in that folder?

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: index.html/php

    Is your Zen Cart installed in the web root (/httpdocs/ in your case)? If not, where is it installed? If it is in the root, there should be an index.php as part of the Zen Cart installation.

    How have you uploaded content or file edits? Do you have FTP access?

  4. #4
    Join Date
    Apr 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: index.html/php

    I can access httpdocs folder via the control panel. there does not seem to be any index.php in the root of that folder.

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: index.html/php

    The question is, where is the rest of your Zen Cart? In the root or in a subfolder?

    If it is in the root, and you have lost your index.php, you have a major problem and probably need to restore from a backup. Either you were hacked or your server had some kind of damage.

  6. #6
    Join Date
    Apr 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: index.html/php

    Zen cart is installed in the web root /httpdocs. however no index.php in /httpdocs root.
    at the moment no FTP access but i can upload content via the control panel or copy/move files. would it help if i copy the default index.php into the root of /httpdocs. the file currently resides in location httpdocs / includes / languages / english /index.php

  7. #7
    Join Date
    Apr 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: index.html/php

    inherited the site. did not actually install myself. just did customization. unfortunately there are no working backups to restore from.
    is there no way to re-create the index file

  8. #8
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: index.html/php

    If I navigate to http://www.poor-boys.co.za/index.php, I see the site, which suggests that file is there somewhere.

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

    bug Re: index.html/php

    Quote Originally Posted by Naz_newbie View Post
    They simply stated that the reason i am getting the error is because i do not have an index.html, index.htm or index.php file in the root of my /httpdocs folder. My problem is that i never had one in there when the site worked properly
    Sorry, but you are mistaken. Without an index.php file in your httpdocs folder (or more specifically, the root folder for your store) then zencart would not have worked for you.

    This would imply your store was stored somewhere other than this folder and/or the root folder for your *domain* was set to something other than /httpdocs/

    Quote Originally Posted by Naz_newbie View Post
    Zen cart is installed in the web root /httpdocs. however no index.php in /httpdocs root.
    I'm a little intrigued about about your wording in that statement, It seems to imply that you think 'web root /httpdocs' and '/httpdocs root' are actually *different* folders/locations? One of us is confused, or is it both of us?

    Quote Originally Posted by Naz_newbie View Post
    would it help if i copy the default index.php into the root of /httpdocs
    Would it help if I said maybe, but probably not? My reasoning is that if the index.php is missing from where it should be, then what other files are also missing? It seems a little more logical to assume you could simply be looking in all the wrong places?

    Quote Originally Posted by Naz_newbie View Post
    the file currently resides in location httpdocs / includes / languages / english /index.php
    That is a *different* file entirely.

    What you *should* have is a folder/file structure that looks a lot like

    /httpdocs/admin/
    /httpdocs/cache/
    /httpdocs/docs/
    /httpdocs/download/
    /httpdocs/editors/
    /httpdocs/email/
    /httpdocs/extras/
    /httpdocs/images/
    /httpdocs/includes/
    /httpdocs/media/
    /httpdocs/pub/
    /httpdocs/index.php
    /httpdocs/install.txt
    /httpdocs/ipn_main_handler.php
    /httpdocs/license.txt
    /httpdocs/mcs_learn_more.html*
    /httpdocs/nddbc.html
    /httpdocs/page_not_found.php
    /httpdocs/robots_example.txt
    /httpdocs/vbv_learn_more.html

    What files do *you* have listed in your /httpdocs/ folder?

    Cheers
    Rod

  10. #10
    Join Date
    Apr 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: index.html/php

    i manually created a file called index.php in the root of httpdocs to see if i could get past the apache error. in it copied some generic html. This is why you are seeing site content but it is definitely not the site. as you notice no sideboxes or banners etc

    ok so now i am thinking as a last resort to pretty much start from scratch. damn. thinking i should reinstall zen cart. Only problem is there are hundreds of product descriptions, pictures, prices etc in the store catalog. is there a way of saving these files so i dont have to redo this stuff from scratch and then copying into the new install.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 How to return to index.php instead of index.html
    By headbirdbrain in forum General Questions
    Replies: 1
    Last Post: 22 Sep 2013, 08:57 PM
  2. Anyone know how to make index.html default instead of index.php?
    By msbettybebe in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 23 May 2011, 04:01 PM
  3. Replies: 3
    Last Post: 9 Oct 2007, 04:05 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR