If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Linux/Unix Server / Removed index.html and index of my site is now visible any suggestions

Removed index.html and index of my site is now visible any suggestions

Started by leoj on 16 May 2013, 4:53 AM · Views: 5,689

Results 1 to 11 of 11
16 May 2013, 4:53 AM
#1
leoj avatar

leoj

New Zenner

Join Date:
May 2013
Location:
New Jersey
Posts:
16
Plugin Contributions:
0

Post #1 by leoj

I put in place an index.html under construction page while I was editing my new site. Now that every thing is ready for production I went in to remove the construction page to go live and an index of my root directory is visible when I go to my url. I replaced the construction html to hide the index of my site. The index of my site was still visible. I had to put the construction index.html at the server level to hide the site index. Question one, is there supposed to be an index.php file at the server level? Question two, do I need to do any thing special to get the site to appear instead of the site index when I remove a dummy index.html. I was trying to figure out why emails were not being sent to new account signups and thought the dummy index.html was the reason. Since I was done editing and ready to go I figured I would remove the construction page and leave it live hoping that the email issue would be resolved. Somehow I think this is bigger than just taking out the dummy index.html page. Emails are being sent to my admin account but not to customers. Would greatly appreciate any help I can get with this. Thanks.

16 May 2013, 5:20 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2 by gjh42

Where is your Zen Cart installed? In your /public_html/ or similar web root, or in a subfolder? What files/folders do you see in the index when the index.html is gone? If you access your Zen Cart with a URL like https://www.yourdomain.com/store/, you probably will want to move the installation to the web root so customers can simply enter https://www.yourdomain.com. See the tutorials for instructions on doing this if necessary.
http://www.zen-cart.com/content.php?160-i-have-installed-zen-cart-to-a-directory-how-do-i-rename-or-move-that-directory

16 May 2013, 6:22 AM
#3
leoj avatar

leoj

New Zenner

Join Date:
May 2013
Location:
New Jersey
Posts:
16
Plugin Contributions:
0

Post #3 by leoj

OK I may have been a little confusing. The index.html file is in the root directory public_html and the files that are being indexed without it are all files in that directory. There is no index.php file at this level. Should there be? The zen-store folder and admin folder are also at this level along with .smileys, cgi-bin, favicon.ico, and a couple other misc. files.

16 May 2013, 6:37 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #4 by gjh42

The Zen Cart admin folder is inside the Zen Cart folder, along with about 10 other folders, index.php and a few other files. If you have an admin folder alongside the Zen Cart folder, it must belong to something else, or else it is a misplaced copy. Recent versions of Zen Cart will not let you operate with the admin folder still named /admin/; you have to rename it something secret for security. Can you give the exact URL that shows in your address bar on the Zen Cart homepage? Replace your actual domain name with "mydomain.com" if you don't want to publicize it.

16 May 2013, 6:37 AM
#5
leoj avatar

leoj

New Zenner

Join Date:
May 2013
Location:
New Jersey
Posts:
16
Plugin Contributions:
0

Post #5 by leoj

Cancel that, The zen-store folder is in public_html along with my index.html and the aforementioned folders and files with the exception of admin folder.

16 May 2013, 6:41 AM
#6
leoj avatar

leoj

New Zenner

Join Date:
May 2013
Location:
New Jersey
Posts:
16
Plugin Contributions:
0

Post #6 by leoj

https://www.mydomain.com gets me to the index.html. If I take it out the public_html gets indexed.

16 May 2013, 6:43 AM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #7 by gjh42

Okay, so if you want your customers to reach your store by the simplest route, you should now move your Zen Cart installation to the web root, out of the subfolder it is in. See the tutorial I linked to above.

16 May 2013, 6:57 AM
#8
leoj avatar

leoj

New Zenner

Join Date:
May 2013
Location:
New Jersey
Posts:
16
Plugin Contributions:
0

Post #8 by leoj

Ok, I think I see. Thanks for the help I thought the store had to be in a folder I renamed to my store name in public_html. Thanks for the link.

16 May 2013, 10:27 PM
#9
leoj avatar

leoj

New Zenner

Join Date:
May 2013
Location:
New Jersey
Posts:
16
Plugin Contributions:
0

Post #9 by leoj

I moved the zencart install to the public_html directory. All folders and files, admin folder, cache folder, download folder, editors folder, email folder, extras folder, images folder, includes folder, logs folder, media folder and pub folder, as well as index, ipn_main_handler, license, mcs_learn_more, nddbc, page_not_found, robots_example, and vbv_learn_more files. Then I removed the folder they were in.

In the includes configure.php I used.

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://www.amateurchef.com');
define('HTTPS_SERVER', 'https://www.amateurchef.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/includes/');
define('DIR_WS_HTTPS_CATALOG', '/includes/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');

// * 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', '/home/directory/public_html/');

//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '/home/directory/public_html/logs');

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/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'XXXXXXXXXX');
define('DB_SERVER_PASSWORD', 'XXXXXXXXX');
define('DB_DATABASE', 'XXXXXXXXX');

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/directory/public_html/cache');

In the admin/includes/configure.php I used

*/
define('HTTP_SERVER', 'https://www.amateurchef.com');
define('HTTPS_SERVER', 'https://www.amateurchef.com');
define('HTTP_CATALOG_SERVER', 'http://amateurchef.com');
define('HTTPS_CATALOG_SERVER', 'https://amateurchef.com');

// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'true');

// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];

define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_CATALOG', '/includes/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/includes/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

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

//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '/home/directory/public_html/logs');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'XXXXXXX');
define('DB_SERVER_PASSWORD', 'XXXXXXX');
define('DB_DATABASE', 'XXXXXXX');

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/dircetory/public_html/cache');

// Define the webserver and path parameters
// Main webserver: http://www.amateurchef.com
// HTTP_SERVER is your Main webserver: http://www.amateurchef.com
// HTTPS_SERVER is your Secure webserver: https://www.amateurchef.com
// HTTP_CATALOG_SERVER is your Main webserver: http://www.amateurchef.com
// HTTPS_CATALOG_SERVER is your Secure webserver: https://www.amateurchef.com
/*

  • URLs for your site will be built via:
  • HTTP_SERVER plus DIR_WS_ADMIN or
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
    
  • HTTP_SERVER plus DIR_WS_CATALOG or 
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    
  • ...depending on your system configuration settings
    */
    Then I used the fix Cache Key Utility to set the sessions write directory.

The site is unformatted and incomplete. What am I missing here?

17 May 2013, 12:41 AM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #10 by gjh42

define('DIR_WS_CATALOG', '/includes/');
define('DIR_WS_HTTPS_CATALOG', '/includes/');

DIR_WS_CATALOG is the place where all Zen Cart files are installed. For a site in the web root (/public_html/), it would be just /.

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

17 May 2013, 1:59 AM
#11
leoj avatar

leoj

New Zenner

Join Date:
May 2013
Location:
New Jersey
Posts:
16
Plugin Contributions:
0

Post #11 by leoj

Thank you so much black belt. You have been a great help. I went back and thought about it for a while and the same thought occurred to me. I have already resolved this issue and checked back to see if there was a reply. I want to thank you for your input. I am very grateful.