Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

sometime cannot write to cache file

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
jun8888
Smarty Rookie


Joined: 07 Sep 2019
Posts: 5

PostPosted: Sat Sep 07, 2019 11:06 am    Post subject: sometime cannot write to cache file Reply with quote

hi there,

i wish to ask why smarty 3.1.33 unable to write cache file sometime. after clear user browser cache, then smarty can write cache file.

Please advise what is cause for it.


Last edited by jun8888 on Tue Sep 10, 2019 2:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sun Sep 08, 2019 5:30 pm    Post subject: Reply with quote

Because you did something wrong.
Check your webserver logs, check the filesystem access rights, check that your filesystem has enough storage space, etc.
Back to top
View user's profile Send private message
jun8888
Smarty Rookie


Joined: 07 Sep 2019
Posts: 5

PostPosted: Mon Sep 09, 2019 3:33 am    Post subject: Reply with quote

filesystem got enough storage space. Access right for folder cache/templates_c is 755. file permission is 644

however, this issue will happen sometime. Please check the following picture



got many blank cache file with 666. When cache file is blank, then user unable to access website with blank cache file. So user need to clear browser cache and can regenerate new cache file.

I searched WebServer logs that i cannot see any errors from the above happened time
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Sep 09, 2019 6:37 pm    Post subject: Reply with quote

755 what? 644 what? Apples? Oranges?
POSIX access mode is useless without knowing file owner and group, and EUID of accessing process.
Either way, POSIX filesystem basics is not a Smarty question.
Back to top
View user's profile Send private message
jun8888
Smarty Rookie


Joined: 07 Sep 2019
Posts: 5

PostPosted: Tue Sep 10, 2019 1:41 am    Post subject: Reply with quote

os is linux centos. however, got suphp installed and hence requires all file permission is 644, folder permission is 755. I understand it is not smarty question. Any idea to know which can cause the blank cache issue?
Back to top
View user's profile Send private message
jun8888
Smarty Rookie


Joined: 07 Sep 2019
Posts: 5

PostPosted: Tue Sep 10, 2019 2:05 pm    Post subject: Reply with quote

i think issue maybe caused by php warning error. It can disturb smarty cache and return cache page issue. after modified php warning error, then the issue should be resolved as well. thanks.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Wed Sep 11, 2019 12:18 am    Post subject: Reply with quote

jun8888 wrote:
got suphp installed

Well, too bad. Remove it.
Back to top
View user's profile Send private message
jun8888
Smarty Rookie


Joined: 07 Sep 2019
Posts: 5

PostPosted: Wed Sep 11, 2019 12:27 pm    Post subject: Reply with quote

suphp is useful for enhancing security for user file access. our server will not not only shared by one website. It maybe hosted by different user website and required to be accessed by different user. Hence, one user unable to access other folder which owned by another user.

now, our server using PHP-FPM. upgraded from suphp. PHP-FPM can easy to handle process limit for one website.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sat Sep 14, 2019 5:38 am    Post subject: Reply with quote

It's useless, as PHP FPM already provides this functionality.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP