Forums / General Questions / log file -- where to set it up

log file -- where to set it up

Locked

Views: 1,423

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
6 Sep 2006, 1:34 AM
#1
jdl avatar

jdl

New Zenner

Join Date:
May 2006
Posts:
59
Plugin Contributions:
0

log file -- where to set it up

I tried to set up the log file to log the display page time but I'm getting this error message:

Warning: error_log(/zen/page_parse_time.log): failed to open stream: No such file or directory in /home/content/b/e/a/bearBud2206/html/store/admin/includes/classes/logger.php on line 60

I can't use the default value because we don't have access to /var/. Our directories start with / so I created a /zen directory for the logging and gave it 777 permission for the owner.

Thanks,
jdl

6 Sep 2006, 1:49 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: log file -- where to set it up

  1. try using the full path to your cache folder on your site.
    ... or create another log folder above public_html ("html" in your case) and make it writable
  2. To set the path, go to Admin->Configuration->Logging ... which is the same place where you turned the feature on...

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

6 Sep 2006, 1:57 PM
#3
jdl avatar

jdl

New Zenner

Join Date:
May 2006
Posts:
59
Plugin Contributions:
0

Re: log file -- where to set it up

Thanks for the quick reply. I'm really glad that the error message included the full path so that gave me the clue as to where to set the log file path.

I have a question about the stats:

Parse Time: 4.636 - Number of Queries: 290 - Query Time: 1.23145909543

That seems like a lot of queries to just display the products--what exactly does Number of Queries: 290 mean?

Do you think that the Parse Time: 4.636 is slower than it should be? If so, I'll talk with the godaddy folks.

The response is much slower this morning but it was really slow yesterday evening. What's a reasonable response time for a store with 16 products?

Thanks!
jdl

6 Sep 2006, 2:20 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: log file -- where to set it up

jdl:

What's a reasonable response time for a store with 16 products?
On the server that the Zen Cart site runs on, I have a testing area set up that contains a fresh install with demo data. I've added a few products to test a few things, but right now I have 125 products. My parse time details on a first-load of the home page with an empty browser cache are:

Parse Time: 2.556 - Number of Queries: 876 - Query Time: 0.6845691

That's with all the demo products, all the sales, all the sideboxes and centerboxes active, etc.
So, that's running 876 queries in 0.68 seconds and taking 2.5 seconds to do the queries and cache the files for first hit... vs your server doing 290 queries in 1.23 seconds and 4.6 seconds to render the page.

If I then refresh the browser while things are cached, I get:```
Parse Time: 0.378 - Number of Queries: 877 - Query Time: 0.142696081207


Your shared GoDaddy hosting is NOT tuned to give performance to the database engine.  You could have more fine-tuning control if you upgraded to a virtual/dedicated server with them, or simply use a host that takes eCommerce seriously and already has their servers tuned appropriately.

You're clearly on shared hosting on VERY busy servers. Your site will be faster when fewer people are hitting the same server, and slower when everyone wakes up and gets online again...
On a Zen Cart certified host, you won't find things as volatile. Trends will still exist, but a 1/128" rise is different than a 10" rise in unacceptable response times...

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