Forums / Upgrading from 1.3.x to 1.3.9 / Blazed and confused

Blazed and confused

Locked

Views: 7,060

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
27 Dec 2006, 4:56 PM
#1
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Blazed and confused

Did a site transfer from one server to the other and cannot seem to work out this little error. Maybe you can see something I am not seeing.

Go here to to see the error.

Incase site doesnt load here is the error

Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/home/norman/public_html/cache) is not within the allowed path(s): (/home/wilson/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/wilson/public_html/lvl2/includes/functions/sessions.php on line 145

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/wilson/public_html/lvl2/includes/functions/sessions.php:145) in /home/wilson/public_html/lvl2/includes/functions/sessions.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /home/wilson/public_html/lvl2/includes/functions/sessions.php:145) in /home/wilson/public_html/lvl2/includes/init_includes/init_templates.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at /home/wilson/public_html/lvl2/includes/functions/sessions.php:145) in /home/wilson/public_html/lvl2/includes/functions/functions_general.php on line 44

This was shown after the error and then ran the fix cachey key file now got this. Below is the config files but I still do not see anything that is stopping me.

This is the admin config.

<?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
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// 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://wilsoncellular.us');
  define('HTTPS_SERVER', 'https://wilsoncellular.us');
  define('HTTP_CATALOG_SERVER', 'http://wilsoncellular.us');
  define('HTTPS_CATALOG_SERVER', 'https://wilsoncellular.us');

  // Use secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'true');
  define('ENABLE_SSL_ADMIN', '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_ADMIN', '/lvl2/admin/');
  define('DIR_WS_CATALOG', '/lvl2/');
  define('DIR_WS_HTTPS_ADMIN', '/lvl2/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/lvl2/');

  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/wilson/public_html/lvl2/admin/');
  define('DIR_FS_CATALOG', '/home/wilson/public_html/lvl2/');

  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', 'norman_');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'wilson');
  define('DB_SERVER_PASSWORD', '********');
  define('DB_DATABASE', 'wilson_lvl2');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

  // 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/wilson/public_html/lvl2/cache');

?>

Store config:

<?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
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

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

  // 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', '/lvl2/');
  define('DIR_WS_HTTPS_CATALOG', '/lvl2/');

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

  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', 'norman_');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'wilson');
  define('DB_SERVER_PASSWORD', '********');
  define('DB_DATABASE', 'wilson_lvl2');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

  // 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/wilson/public_html/lvl2/cache');

?>

Any help is appreciated.

Rob

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

27 Dec 2006, 10:31 PM
#2
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Blazed and confused

Also running version 1.3.6 updated sql as well.

Any ideas?

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

28 Dec 2006, 5:07 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blazed and confused

I am not seeing any errors ... and your configure.php files are showing:
http://wilsoncellular.us

But moving through your site takes you to:
http://www.wilsoncellular.us

Did you fix this?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Dec 2006, 6:42 AM
#4
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Blazed and confused

Yes, I removed the block from within the server, it was my fault after I did some deeper digging.

I tried to put SOLVED in the title of this thread but was unsuccessful and then put solved with fix in a post in this thread but guess it did not take.

So guess I will put it now. Problem Solved, Fix - Was internal permission blockage to extra installed folders for cache rewrite.

Thanks Ajeh for replying.

Rob:D

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

30 Dec 2006, 5:19 PM
#5
immy avatar

immy

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Blazed and confused

hi there nice website which template are you using?

30 Dec 2006, 5:35 PM
#6
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Blazed and confused

simply_zen however its outdated. So keep that in mind

Working on a new one like this
Rob

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

25 Jan 2007, 2:03 AM
#7
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: Blazed and confused

Hi, I seem to be having the same error. I moved my zencart from a subdirectory to the root. Then I modified both of my configure.php files.
But now I'm getting this error:
Warning: main() [function.main]: open_basedir restriction in effect. File(/includes/application_top.php) is not within the allowed path(s): (/home/username:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/username/public_html/index.php on line 26

Warning: main(/includes/application_top.php) [function.main]: failed to open stream: Operation not permitted in /home/username/public_html/index.php on line 26

Warning: main() [function.main]: open_basedir restriction in effect. File(/includes/application_top.php) is not within the allowed path(s): (/home/username:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/username/public_html/index.php on line 26

Warning: main(/includes/application_top.php) [function.main]: failed to open stream: Operation not permitted in /home/username/public_html/index.php on line 26

Fatal error: main() [function.require]: Failed opening required '/includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/index.php on line **26

It looks like a server permissions error. Similar to the one you encountered. How did you modify your server and change the permissions? Please advise.
Thanks!
**

25 Jan 2007, 2:10 AM
#8
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Blazed and confused

did you use the fix cache key? from the downloads?

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

25 Jan 2007, 9:38 AM
#9
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Blazed and confused

graygraphics, if using the 'cachekey fix' (I do believe it's in the Admin section of the ZC Downloads page) doesn't solve your problem, contact your Hoster. Provide them with the error msg. so they know what's going on.

They should be able to temporarily turn off 'open_base restriction' for your account, giving you time to login to your Admin section. This would allow you to change the cache path using:
Configuration > Sessions: Session Directory

The learning is in the doing.

Potent Products

25 Jan 2007, 2:36 PM
#10
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: Blazed and confused

Hi,
Thanks to everyone for their help. Yes it was a server configuration issue not allowing php to serve the files. I contacted my host and they fixed the server config. It works great now.
Thanks again!

25 Jan 2007, 2:47 PM
#11
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Blazed and confused

glad to be of some help

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

26 Jan 2007, 12:03 AM
#12
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: Blazed and confused

HI,
After moving my zen cart from a sub directory to the root I am now encountering an error when I try to access the admin.
The front end of the site is working fine. However, when I access the admin I get this error:
ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?
Are there any other files I need to configure?
Does any one know what may be the problem?
Thanks!

26 Jan 2007, 12:15 AM
#13
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: Blazed and confused

graygraphics:

HI,
After moving my zen cart from a sub directory to the root I am now encountering an error when I try to access the admin.
The front end of the site is working fine. However, when I access the admin I get this error:
ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?
Are there any other files I need to configure?
Does any one know what may be the problem?
Thanks!

I also forgot to mention I did run the fix cache php file and received this message:
Warning: session_start() function.session-start[/U][/URL]]: Cannot send session cache limiter - headers already sent (output started at /home/user/public_html/fix_cache_key.php:43) in /home/user/public_html/includes/functions/sessions.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/fix_cache_key.php:43) in /home/user/public_html/includes/init_includes/init_templates.php on line 78

Cache Settings Synchronization Tool

Recommendations

Possible appropriate cache directory for your site is: /home/user/public_html/cache

Actual Information

Read DIR_FS_SQL_CACHE from configure.php: /home/user/public_html/cache
Found SESSION_WRITE_DIRECTORY in database: /home/ueser/public_html/cache

No changes required.
Exiting.

Security

PLEASE DELETE THIS FILE FROM YOUR SERVER NOW!!
Removing this file (fix_cache_key.php) from your server protects you from would-be hackers/predators who might seek to compromise your server.

26 Jan 2007, 12:20 AM
#14
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Blazed and confused

Security

PLEASE DELETE THIS FILE FROM YOUR SERVER NOW!!
Removing this file (fix_cache_key.php) from your server protects you from would-be hackers/predators who might seek to compromise your server.

remove the file it calls for the cache key, also check your configure file includes --> configure.php make sure there isnt a space at the end of the file right after this ?>

see what happens

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

28 Jan 2007, 5:00 PM
#15
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: Blazed and confused

HI,
I checked the file and there are no spaces. I'm still not able to access the admin login. And both my configure.php files are correct. I can see the shopping cart site from the root url. However the admin it's working.
Still get this error:
ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?
Any other ideas?
Thanks!

28 Jan 2007, 6:05 PM
#16
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: Blazed and confused

One more thing I didn't mention. I renamed my admin folder. The error message refers to the old name "admin". Where to I modify the file that is referencing the link? My admin configure.php file is set up to reference the correct path to the admin folder that has the new name. I am not able to access the admin through the browser. Any ideas?
Thanks.

28 Jan 2007, 6:50 PM
#17
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Blazed and confused

graygraphics:

HI,
I checked the file and there are no spaces. I'm still not able to access the admin login. And both my configure.php files are correct. I can see the shopping cart site from the root url. However the admin it's working.
Still get this error:
ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?
Any other ideas?
Thanks!

If it says file not found, this means the file does not exists on your ftp (server).

Download a copy of the zencart version you are using and upload the configure.php file to admin --> includes .

As for renaming the admin folder make sure you change the folder name in the configure.php file to match the folder name of your renamed folder.

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

28 Jan 2007, 6:53 PM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Blazed and confused

The error message you mention: > ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php? ... is literal text. The "admin" folder name there is coded directly into the error message. It does not detect your renamed folder.

It's only telling you that it cannot read the "includes/configure.php" file contained in your (renamed or not) admin folder.

Perhaps you set your permissions too tight so that the file is not readable.
Perhaps it doesn't exist.

Until PHP is able to read the file, you'll keep getting that error.

If you're certain that all the permissions etc are correct, you might check your server's errorlog to see if it can help you understand better what errors are occurring when trying to access the file.

.
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.

29 Jan 2007, 6:12 PM
#20
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: Blazed and confused

HI,
I have checked my configure.php files.
And both of them are set up correctly as indicated in the documentation.
I also ran the fix_cache_key.php file.
Everything seems to be configured the way it should be.
However I still get the error:
ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?
When I type in the ADMIN URL in the browser window.
My server logs didn't give me any additional clues. That ERROR (as noted above) is not appearing in the logs. Any other ideas?
Any advice would be greatly appreciated.
I've almost completed the template and CSS modifications and I would hate to have to reinstall and start from scratch.
Signed,
Desperate!