php.log: what is the proper way to clear log file?
logging, php, unix
Solution
It is entirely safe to just delete the php.log file. It will be auto-created the next time it is needed.
Problem
I'm troubleshooting a php log file that has expanded way too rapidly and used up a lot of disk space. What is the best way to clear a log file? is it a problem to simply delete the log file? And will that log file be recreated as php tries to write to it?