Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

file ownership/permissions issues

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-12-2002, 10:12 AM
 
ryan ryan is offline
 

Advanced Member
  
Join Date: Sep 2002
Location: Philly
Posts: 38
 

Default file ownership/permissions issues

Somehow my permissions/file ownership has gotten out of wack. What should file permissions be set at? Should file ownership be set to "WWW" or the user? My hosting company contacted me last week saying my site was insecure because of how the permissions were set up. I asked xcart people to fix this and they did. Then there were certain directories which I couldn't see the files (though they were there). Now I can see all file by my site totally doesn't work. My host said they changed the ownership from WWW to the user. This is the error I'm getting:

Quote:
Warning: Failed opening '../templates_c/151/1512206380/0.php' for inclusion (include_path='./:/usr/local/lib/php') in /home/mvd-ryan/musicvideodistributors-www/Smarty-2.1.1/Smarty.class.php on line 641

Any insight would be appriciated.

thanks
Reply With Quote
  #2  
Old 12-12-2002, 12:00 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

try running http://www.yoursite.com/xcartdir/cleanup.php

that will refresh the templates_c folders

I have a list of what file permissions should be set as and will post it in the faq in a while when I find it again.
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 12-13-2002, 08:58 AM
 
ryan ryan is offline
 

Advanced Member
  
Join Date: Sep 2002
Location: Philly
Posts: 38
 

Default

Thanks shan. My host has been screwing with my permissions and the last change they made everything unreadable. It has been fixed now.
Reply With Quote
  #4  
Old 12-13-2002, 09:28 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Check the faq for the word from above

http://forum.x-cart.com/viewtopic.php?p=5205#5205
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 12-16-2002, 01:13 PM
 
ryan ryan is offline
 

Advanced Member
  
Join Date: Sep 2002
Location: Philly
Posts: 38
 

Default

So everything was working ok on Friday, UNTIL I decided to make a change. Now I get this error:

Quote:
Warning: Smarty error: problem writing '../templates_c/175/1754678867/0.php.' in /home/mvd-ryan/musicvideodistributors-www/Smarty-2.1.1/Smarty.class.php on line 546

All I did was upload head.tpl and skin1.conf. The site seems to work fine though. Strange thing is the change I made was a modification to the drop-down box in the search box on head.tpl. I totally changed the contents of the drop down box though the old options are what show up even though those options are no longer in the code?? Strange huh? I'm assuming it's got to be a permissions issue since I've been having problems with them and I've modified plenty of tpl files without any problems. Can't figure it out though.
Reply With Quote
  #6  
Old 12-16-2002, 01:23 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

You could always try and run

http://www.yourhost.com/xcartdir/cleanup.php to flush out the templates folder
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 12-16-2002, 01:32 PM
 
ryan ryan is offline
 

Advanced Member
  
Join Date: Sep 2002
Location: Philly
Posts: 38
 

Default

What does that do exactly? I have made a lot of modifications.
Reply With Quote
  #8  
Old 12-16-2002, 01:42 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

It will just clear out the templates_c directory which is where smarty puts the compiled versions of your templates. Its like a cache and is updated whever you change any files.

Its fine to clear it every now and again as it does not change your .tpl files
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #9  
Old 12-16-2002, 01:48 PM
 
ryan ryan is offline
 

Advanced Member
  
Join Date: Sep 2002
Location: Philly
Posts: 38
 

Default

Well I tried that and I'm still getting the error.

I can't figure this out. The code which is currently showing up on my site, no longer is there. It has been replaced by other code yet there it is.

If you could check out my site, just to make sure i'm not insane or something.

http://208.56.135.184/customer/home.php

thanks
Reply With Quote
  #10  
Old 12-16-2002, 02:31 PM
  seaCOAST's Avatar 
seaCOAST seaCOAST is offline
 

X-Adept
  
Join Date: Oct 2002
Location: New Hampshire
Posts: 569
 

Default

Quote:
Originally Posted by ryan
Well I tried that and I'm still getting the error.

I can't figure this out. The code which is currently showing up on my site, no longer is there. It has been replaced by other code yet there it is.

If you could check out my site, just to make sure i'm not insane or something.

http://208.56.135.184/customer/home.php

thanks

Have you made sure your /templates_c/ directory permissions are chmod 777?
__________________
Xcart V4.5.5 Gold
seaCOAST
"Live FREE or DIE!"
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:55 PM.

   

 
X-Cart forums © 2001-2020