Zen Cart Logo

Need HELP please!

Locked

Views: 5,829

Results 1 to 20 of 29
This thread is locked. New replies are disabled.
09 Jul 2006, 21:03
#1
jfuller avatar

jfuller

New Zenner

Join Date:
Aug 2005
Location:
Miramar, FL
Posts:
33
Plugin Contributions:
0

Need HELP please!

I have been trying for the past 2 days to install zencart and to no avail. I've uploaded and deleted files so many times that I've lost count. After going through the installation I receive this message when I go to the site - www.mykeepsakekreations.com:

Warning: main(includes/application_top.php): failed to open stream: Permission denied in /home/content/j/f/u/jfullermkk/html/index.php on line 26

Warning: main(includes/application_top.php): failed to open stream: Permission denied in /home/content/j/f/u/jfullermkk/html/index.php on line 26

Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/lib/php') in /home/content/j/f/u/jfullermkk/html/index.php on line 26

On the index.php page this is what's on line 26:
require('includes/application_top.php');

I get this message in the admin:

Warning: main(/home/content/j/f/u/jfullermkk/html/includes/autoload_func.php): failed to open stream: Permission denied in /home/content/j/f/u/jfullermkk/html/admin/includes/application_top.php on line 145

Warning: main(/home/content/j/f/u/jfullermkk/html/includes/autoload_func.php): failed to open stream: Permission denied in /home/content/j/f/u/jfullermkk/html/admin/includes/application_top.php on line 145

Fatal error: main(): Failed opening required '/home/content/j/f/u/jfullermkk/html/includes/autoload_func.php' (include_path='.:/usr/local/lib/php') in /home/content/j/f/u/jfullermkk/html/admin/includes/application_top.php on line 145

On the admin/includes/application_top.php page this is what's on line 145:
require(DIR_FS_CATALOG . 'includes/autoload_func.php');

Would someone please help me??? I am so FRUSTRATED with this and don't know how to fix the problem. I feel like giving up if this is going to take me another 2 days to try and figure out. Thanks in advance!

09 Jul 2006, 21:14
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Need HELP please!

This seems to be file permission issue
Make sure you have 755 permission set for files!

09 Jul 2006, 22:37
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Need HELP please!

further, please post your /includes/configure.php file contents, without the password

09 Jul 2006, 22:43
#4
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Need HELP please!

Since this is, also, about a permission denied error message, you can also check the installation documentation, from the docs folder, of the latest Zen-Cart package version you have downloaded. It will specify which permission settings needs to be set in order to run Zen-Cart properly.

09 Jul 2006, 23:03
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Need HELP please!

superprg:

This seems to be file permission issue
Make sure you have 755 permission set for files!

Make sure that you DO NOT have permissions of 755 set for files. There's no need to have any files with permissions higher than 644.

Vger

09 Jul 2006, 23:23
#6
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Need HELP please!

There's no need to have any files with permissions higher than 644.

Except during the Zen-Cart installation process:

  • includes/configure.php
  • admin/includes/configure.php

files needs to be set to CHMOD 666 on most web servers. Otherwise, these two files won't be able to be written automatically once the installation will be nearly completed.

09 Jul 2006, 23:31
#7
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Need HELP please!

Except during the Zen-Cart installation process:

  • includes/configure.php
  • admin/includes/configure.php

files needs to be set to CHMOD 666 on most web servers.

This is a post-install problem. For the install itself I'd recommend 755 on those two files, and reset afterwards to 644 on Windows servers, or 444 or 400 on Apache.

It seems that the problem is related to permissions on the 'includes' folder. Please check that they are 755.

Vger

10 Jul 2006, 01:22
#8
jfuller avatar

jfuller

New Zenner

Join Date:
Aug 2005
Location:
Miramar, FL
Posts:
33
Plugin Contributions:
0

Re: Need HELP please!

Thanks so so much guys for responding so quickly. I installed ZenCart back in May for another business, and it is working just fine, and I did the same steps for this install and it won't work. Permissions on the configure.php files were set to 644 after install.

Here's the admin/includes/configure.php contents:

<?php // /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ // Define the webserver and path parameters // Main webserver: eg, <http://localhost> - should not be empty for productive servers // HTTP_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> // HTTP_CATALOG_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_CATALOG_SERVER is your Secure webserver: eg, <https://www.yourdomain.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 */ define('HTTP_SERVER', 'http://mykeepsakekreations.com'); define('HTTPS_SERVER', 'https://mykeepsakekreations.com'); define('HTTP_CATALOG_SERVER', 'http://mykeepsakekreations.com'); define('HTTPS_CATALOG_SERVER', 'https://mykeepsakekreations.com'); // Use secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', 'false'); define('ENABLE_SSL_ADMIN', 'false'); // 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_ADMIN', '/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_ADMIN', '/admin/'); define('DIR_WS_HTTPS_CATALOG', '/'); 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) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_ADMIN', '/home/content/j/f/u/jfullermkk/html/admin/'); define('DIR_FS_CATALOG', '/home/content/j/f/u/jfullermkk/html/'); 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_SERVER', 'mysql99.secureserver.net'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'keepsake'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db' // 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', 'database'); define('DIR_FS_SQL_CACHE', '/home/content/j/f/u/jfullermkk/html/cache'); ?>

For some reason I have not been able to access the includes/configure.php file. I keep getting a little 'x' next to the file and an error message that says "Can't change the directory to /includes: Permission denied".

10 Jul 2006, 02:18
#9
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Need HELP please!

Very well. Please post your URL pointing to your techsupp.php file.

Note: You will find this file from your downloaded package within the zc_install folder.

10 Jul 2006, 02:59
#10
jfuller avatar

jfuller

New Zenner

Join Date:
Aug 2005
Location:
Miramar, FL
Posts:
33
Plugin Contributions:
0

Re: Need HELP please!

I was only able to enter 14000 characters so I had to cut the file contents in half and post twice.

<file contents removed for sake of brevity>
10 Jul 2006, 03:11
#12
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Need HELP please!

Ok, two problems found:

PHP Register Globals = ON

It should be set to OFF.

../includes/languages/english/html_includes UNWRITABLE 777 read/write (INCLUDE SUBDIRECTORIES TOO)

From what it states here, you did not set full writing on your includes/languages/english/html_includes folder.

10 Jul 2006, 03:11
#13
jfuller avatar

jfuller

New Zenner

Join Date:
Aug 2005
Location:
Miramar, FL
Posts:
33
Plugin Contributions:
0

Re: Need HELP please!

Ha, lol. I guess you see how educated I am when it comes to this stuff. Thank God you found it cause I would've been lost, lol.

10 Jul 2006, 03:13
#14
jfuller avatar

jfuller

New Zenner

Join Date:
Aug 2005
Location:
Miramar, FL
Posts:
33
Plugin Contributions:
0

Re: Need HELP please!

Ok, thanks. Gonna work on those 2 problems and see what happens.

10 Jul 2006, 10:43
#15
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Need HELP please!

TheOracle wasn't actually asking you to post the contents of the techsupp.php file, but to post the path to it so that we could look at what it outputs. But from what you describe it looks as though the permissions on your 'includes' folder (on the shop front) are incorrect, not set high enough to allow the files inside of it to be read. Make sure that the permissions on that folder are set to 755.

Vger

10 Jul 2006, 11:13
#16
jfuller avatar

jfuller

New Zenner

Join Date:
Aug 2005
Location:
Miramar, FL
Posts:
33
Plugin Contributions:
0

Re: Need HELP please!

I can't thank you guys enough for you immediate help. It's so appreciated. Quick question: Where and how do I turn off the PHP Register Globals? I'm working on the permissions for the includes file. Somehow when I went to fix the permissions I was missing the modules and templates folders, which were there yesterday, so I had to upload them again.

Would someone please explain what the permissions mean, such as 644, 755, 777, etc.? I've googled it but the language is like gibberish to me. Thanks so much guys!

10 Jul 2006, 12:17
#18
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Need HELP please!

jfuller:

Would someone please explain what the permissions mean, such as 644, 755, 777, etc.? I've googled it but the language is like gibberish to me. Thanks so much guys!

read=4 write=2 execute=1
So, 6 means rw since 6=4+2

Also, 644 means owner, group, others
=>6=group...group can read and write
=>4=owner..owner can only read
=>4=others..group can only read
More here
http://alexia.lis.uiuc.edu/manual/unix/perm.html

10 Jul 2006, 19:35
#19
jfuller avatar

jfuller

New Zenner

Join Date:
Aug 2005
Location:
Miramar, FL
Posts:
33
Plugin Contributions:
0

Re: Need HELP please!

Thanks for your help guys. I'm getting much closer to having the site up. Well, the storefront is up, but I've been getting this error message:

Warning: I am able to write to the configuration file: /home/content/j/f/u/jfullermkk/html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

I've changed the permissions to 644, 744, and 755 and none of them worked. I kept getting the same warning message.

As far the admin area, I'm getting this message now:
Warning: main(includes/languages/english.php): failed to open stream: No such file or directory in /home/content/j/f/u/jfullermkk/html/admin/includes/init_includes/init_languages.php on line 30

Warning: main(includes/languages/english.php): failed to open stream: No such file or directory in /home/content/j/f/u/jfullermkk/html/admin/includes/init_includes/init_languages.php on line 30

Fatal error: main(): Failed opening required 'includes/languages/english.php' (include_path='.:/usr/local/lib/php') in /home/content/j/f/u/jfullermkk/html/admin/includes/init_includes/init_languages.php on line 30

This is the file content:

<?php /** * @package admin * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: init_languages.php 3001 2006-02-09 21:45:06Z wilt $ */ if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } // set the language if (!$_SESSION['language'] || isset($_GET['language'])) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language(); if (isset($_GET['language']) && zen_not_null($_GET['language'])) { $lng->set_language($_GET['language']); } else { $lng->get_browser_language(); $lng->set_language(DEFAULT_LANGUAGE); } $_SESSION['language'] = $lng->language['directory']; $_SESSION['languages_id'] = $lng->language['id']; } // include the language translations require(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php'); $current_page = basename($PHP_SELF); if (file_exists(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $current_page)) { include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $current_page); } if ($za_dir = @dir(DIR_WS_LANGUAGES . $_SESSION['language'] . '/extra_definitions')) { while ($zv_file = $za_dir->read()) { if (strstr($zv_file, '.php')) { require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/extra_definitions/' . $zv_file); } } } ?>
10 Jul 2006, 19:54
#20
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Need HELP please!

It appears that some files were missing during the upload operation. Use a good FTP software - such as: LeapFTP from https://www.leapware.com .

Then, re-upload all files by using the override option - not resume (to make sure that no files were corrupted - even if they were uploaded before).

In the mean time, if you have personalized files under your Zen-Cart folder, (such as MODs, custom templates or custom languages), I'd suggest making a full backup before re-uploading the files completely.

Note: Do NOT clear out your current files from your server (leave them as they are). From there, everything should work fine once the re-upload process will be done. :wink2: