Clearing php_error_log

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Clearing php_error_log

Postby Yod4 » 21. October 2020 18:47

Hello everyone

I am a beginner in php and thus I fill the php_error_log file with a lot of lines ;)
I can't open that file from the finder (it weights several tens of Gos). Is there any way of clearing up this file ?

Thank you for your answers !
Yod4
 
Posts: 2
Joined: 21. October 2020 18:22
XAMPP version: 7.4.10
Operating System: mcOS Mojave

Re: Clearing php_error_log

Postby JJ_Tagy » 21. October 2020 23:09

Just delete it
JJ_Tagy
 
Posts: 786
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Clearing php_error_log

Postby Yod4 » 22. October 2020 13:56

well actually when I try to delete the file, my finder says I don't have the rights to delete the file. I therefore try to modify the rights in the file information but once again the finder says I am not allowed to modify the rights

Same thing when I click on the uninstall file, my finder says I am not allowed to open the file

Edit:
Only daemon user is allowed to modify the files.
When I do a php query get_current_user(); I get that the user it Bitmani

However I do not succeed in changing the current user or the user allowed to modify
I have tried to do sudo chown bitnami /Users/... /xampp/volumes/root/logs/php_error_log but it says the operation is not permitted
Yod4
 
Posts: 2
Joined: 21. October 2020 18:22
XAMPP version: 7.4.10
Operating System: mcOS Mojave

Re: Clearing php_error_log

Postby JJ_Tagy » 22. October 2020 20:28

The sudo command should take care of that. Since you are on a Mac, you may have to do a few steps to enable it.
JJ_Tagy
 
Posts: 786
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 2 guests