April 29Apr 29 Hello,I am trying to give customers access to the PHP error log from their FTP account. I have been experimenting with the error_log statement in the php.ini setting under PHP > PHP Configurations > [User PHP Config], however it only seems to work if the destination file has already been created. Obviously, this is not ideal as users could accidentally delete the file or the process I would have to setup to create the file could fail. Leaving the statement blank sends the data to Froxlor's error logging system. Since I passed 1 for the option "speciallogfile", the user seems to have their own dedicated log file in the system (Please correct me if either of these statements are wrong). Is there a way to get this log file accessible to the user over FTP without manually creating systemlinks? I want the customer to be able to access their php error logs via FTP. Where that file is stored I don't really have a preference as long as it is easily accessible. I took a look at past forum posts and the documentation, but did not see anything relevant.Thank you!
April 29Apr 29 Solution Currently not intended this way. Customers can see logs in the UI if allowed by the admin
May 1May 1 it's currently only the last 1000 lines iirc, depending on the customer, these logs can get HUGE and froxlor won't be able to load them (or php timeouts etc.).Maybe we will think of a better solution for froxlor3, this is unlikely to change in 2.x
May 2May 2 Author For future reference, I managed to resolve this by setting error_log = {CUSTOMER_HOMEDIR}error_logs/php_errors.log in php.ini and chown <user>:www-data the error_logs folder.
Create an account or sign in to comment