- Posts: 38
- Thank you received: 1
Log files outside of root
9 years 3 months ago #273015
by n3t
Log files outside of root was created by n3t
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.0.20
-- Error-message(debug-mod must be tuned on) -- : The log file must only contain alphanumeric characters and end with .log
Hi,
I am trying to set log files (payments and automatic tasks) locations to folder outside of Joomla root. I tried both relative path (../.log/payments.log) and absolute path (/var/www/.log/payments.log) but in both cases I receive error "The log file must only contain alphanumeric characters and end with .log".
Folder exists and is writable (it is same folder as in Global Joomla configuration used for log path). Am I missing something, or it is not possible?
thanks for reply
Pavel
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.0.20
-- Error-message(debug-mod must be tuned on) -- : The log file must only contain alphanumeric characters and end with .log
Hi,
I am trying to set log files (payments and automatic tasks) locations to folder outside of Joomla root. I tried both relative path (../.log/payments.log) and absolute path (/var/www/.log/payments.log) but in both cases I receive error "The log file must only contain alphanumeric characters and end with .log".
Folder exists and is writable (it is same folder as in Global Joomla configuration used for log path). Am I missing something, or it is not possible?
thanks for reply
Pavel
Please Log in or Create an account to join the conversation.
9 years 3 months ago #273035
by nicolas
Replied by nicolas on topic Log files outside of root
Hi,
An absolute path is totally possible.
But as the error message says, only alphanumeric characters are allowed in the path. So the problem is with the dot in the .log folder name.
Remove the dot and it will work.
An absolute path is totally possible.
But as the error message says, only alphanumeric characters are allowed in the path. So the problem is with the dot in the .log folder name.
Remove the dot and it will work.
Please Log in or Create an account to join the conversation.
9 years 3 months ago #273073
by n3t
Replied by n3t on topic Log files outside of root
Hello,
as the path contains also domain name, (/var/www/example.com/.logs) it is impossibel to remove all dots without complete reconfiguration of server. Please consider to add dot to possible characters (maybe also dash and underscore), as it is very common character in paths. When specifying secure folder it is possible to use dot (even something like this: ../.secure works), so it would be great to have consistency in these settinngs.
thanks
Pavel
as the path contains also domain name, (/var/www/example.com/.logs) it is impossibel to remove all dots without complete reconfiguration of server. Please consider to add dot to possible characters (maybe also dash and underscore), as it is very common character in paths. When specifying secure folder it is possible to use dot (even something like this: ../.secure works), so it would be great to have consistency in these settinngs.
thanks
Pavel
Please Log in or Create an account to join the conversation.
9 years 3 months ago #273126
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Log files outside of root
Hello,
We will see what we can do in the future to improve that.
The fact that HikaShop refuses points in the path was to avoid potential security issues.
Regards,
We will see what we can do in the future to improve that.
The fact that HikaShop refuses points in the path was to avoid potential security issues.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.218 seconds