75
Sorry for confusion.
Thank you for your test.
Actually the first question is: Where is the best and most reliable place to save logs?
I chose xoops_data, one can chose xoops_data/caches because he would be sure this folder is writable.
In my wesbite xoops_data is out of wwwroot so i set chmod at 755. but one may have it inside wwwroot and may prefer to make it read only.
Quote:
Then we must explain why irmtfan in his module userlog want to make it read-only in index.php
The folder 'C:/wamp/www/xoops-2.5.5test/htdocs/xoops_data/userlog' must be with a chmod '755' (it's now set on 777).'
I dont make it read-only.
755 is the minimum required chmod to write inside the folder, so any chmod above it is acceptable.
IMHO It is a displaying bug in moduleadmin class. (I forgot to post it
)
In xoops255\Frameworks\moduleclasses\moduleadmin\moduleadmin.php Line 213:
if (substr(decoct(fileperms($value[0])),2) != $value[1]) {
should be changes to:
if (substr(decoct(fileperms($value[0])),2) < $value[1]) {
then it will show OK when the chmod is above 755.
Quote:
can be done from the install folder (include/install.php):
Userlog will not create folders in install because:
1- user may prefer to dont use
log in file at all.
2- user can change the log folder location. ( currently xoops_data/userlog and uploads/userlog)
so once user choose to save logs in file the required folders will be created.
even you can add your folder easily in xoops_version.php
the log folder location is not hard-coded in the whole codes. so if you add a full path in xoops_version.php it will read it from there.