PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Content Management Systems > E-commerce and Shopping Carts
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 1-12-05, 07:58 AM   #1
evaland
 
Posts: n/a
Unhappy Dear admin please help serious osc error

I just know powweb.com opgrade the sql server
Cause my osc can not run
the error message below

Warning: session_start(): open(/tmp/sess_22de7f674b2722e7f3633702ae0512b1, O_RDWR) failed: Permission denied (13) in /www/g/gomail/htdocs/catalog/includes/functions/sessions.php on line 67

Dear Admin
please help
 
Old 1-12-05, 10:53 AM   #2
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
I would have expected to see this error weeks ago. In the two configure.php files, find the line near the bottom that reads:
PHP Code:
define('STORE_SESSIONS',''); 
and change it to
PHP Code:
define('STORE_SESSIONS','mysql'); 
__________________
Steve
stevel is offline  
Old 2-7-05, 10:59 PM   #3
Chemo
 
Posts: n/a
BTW, if you do set the storage to mysql be sure to go back and add a multi-column index on the sesskey and expiry columns. This will use slightly more room on the disk but will greatly improve performance...especially if you have more than a few sessions in the table.

Bobby
 
Old 2-8-05, 11:44 AM   #4
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
Care to elaborate, Bobby? Or point to a discussion elsewhere?
__________________
Steve
stevel is offline  
Old 2-8-05, 01:56 PM   #5
Chemo
 
Posts: n/a
The default installation has the sesskey as primary but this alone is not enough. Most of the session related queries also have a expiry check (as a simple garbage collection system). This will cause an entire table scan on each page request.

Let's say the store is somewhat active and gets 500 unique hits per hour. Further, let's say that the store admin has it configured to recreate sessions and also the other checks such as IP verification, user agent, etc. The sessions table could potentially get rather large and range from 12,000 to 6,000 rows depending on store configuration and also customer browser settings.

Hence, those entire table scans slow down the performance of the entire store even though they appear to be simple and fast executing. The problem is with that expiry!

I have tested this thoroughly on stores that range from $100 daily revenue to $10K daily revenue...the results are proven and the technique is simple.

Go into phpMyAdmin and select the sessions table. Next, add a multi-column index by using the "Create an index on ___ columns" option. The next screen will allow you to select which columns will be used. Don't worry about giving it a name...it'll use the columns as default when naming. The index type should be "INDEX".

Make sure the two columns chosen are first sesskey then next expiry. This is critical as MySQL uses left most prefixing when choosing which index to use!!

After creating the new multi-olumn index you may need to analyze the table. Either select this action from the menu available in phpMyAdmin or run this query:
PHP Code:
ANALYZE TABLE `sessions`; 

This will force MySQL to analyze the table and use the new index.

Does 1 set of queries determine overall page performance? No. However, if one were versed in all the optimization techniques from application_top.php to application_bottom.php the page parse time and MySQL time can be reduced by roughly 90%

Bobby
 
Old 2-8-05, 02:46 PM   #6
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
Thanks - I'll have to try that.
__________________
Steve
stevel is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:23 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.