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-8-05, 05:10 PM   #1
pageperf
 
Posts: n/a
ZenCart Errors in tmp dir

Hi,

I've been running a ZenCart version of OSCommerce for about a year now with virtually no problems up until recently I've noticed that I am getting the following errors, apparently from reading some other posts POWEB has recently diabled the common tmp directory for user uploads using PHP/Mysql, I took the info I found in regards to creating a php.ini file with the fix info in it and placed it according to what was directed and created a temp dir, etc. but nothing I do has no effect and I still get the following errors when accessing the catalog at my site:

Quote:
Warning: mkdir(/tmp/ce): Permission denied in /www/b/biomed/htdocs/catalog/includes/classes/adodb/adodb.inc.php on line 1510

Warning: fopen(/tmp/ce/adodb_ced7467a5c5d70302a1d18354ee4d555.cache): failed to open stream: No such file or directory in /www/b/biomed/htdocs/catalog/includes/classes/adodb/adodb.inc.php on line 3559

Warning: session_start(): open(/tmp/sess_4c104d3d3de451d8914d1c3c01f6bbc3, O_RDWR) failed: Permission denied (13) in /www/b/biomed/htdocs/catalog/includes/functions/sessions.php on line 111
Warning: I am not able to write to the SQL cache directory: /tmp. SQL cacheing will not work until the right user permissions are set.


If anyone can give me some help as to how I would be able to fix this problem step by step I would sincerely appreciate your help.

My site address for the catalog is located at http://www.biomedical-communications.com/catalog

Thanks,

Mike
 
Old 1-8-05, 05:45 PM   #2
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
See this thread. You need to create a customized php.ini.
__________________
Steve
stevel is offline  
Old 1-11-05, 03:09 AM   #3
cjcraven
 
Join Date: Jul 2004
Location: Japan
Posts: 30
Reputation: 5
php.ini file content

Thank you! That explained quite a bit except the content of the php.ini file. What needs to be in there?
cjcraven is offline  
Old 1-11-05, 10:25 AM   #4
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
The definition of upload_tmp_dir needs to be changed from empty to your package's /www/u/username path That's the only change you have to make.
__________________
Steve
stevel is offline  
Old 1-11-05, 09:22 PM   #5
cjcraven
 
Join Date: Jul 2004
Location: Japan
Posts: 30
Reputation: 5
Thanks Steve,
Actually what I wanted to know is where to get the php.ini file since I don't have one. I found the answer in the PowWeb Announcements under PHP File Uploading. There they have one that can be copied, modified, and uploaded into the htdocs folder.

Regrettably Zen Cart still reports SQL cacheing doesn't work and I can't upload images with the application.

I'll fool around with the file a bit more, perhaps I'm missing something.
cjcraven is offline  
Old 1-11-05, 09:30 PM   #6
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
Send me a Private Message and include the "File Uploads" section of your php.ini. Make sure that you uploaded it in ASCII mode.
__________________
Steve
stevel is offline  
Old 1-11-05, 09:37 PM   #7
cjcraven
 
Join Date: Jul 2004
Location: Japan
Posts: 30
Reputation: 5
Okay, images upload now but still have the SQL problem. Error message reads;

Warning: I am not able to write to the SQL cache directory: /tmp. SQL cacheing will not work until the right user permissions are set.

Any idea how to fix this?
cjcraven 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 12:36 PM.


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