Since I played with a php script, I have no disk space. Before the disk space was at 130MB, now it is at 200 MB – the maximal allowed file size at the webhoster. My Website has 130MB so it seems the log files take the other available disk space. My PHP script used the following functions:
imagepng
imagettftext
I have used imagedestroy. The errors I had in the script were
- undefined offset
- use of undefined constant
In which directory I can find the log files which causes this problem?
Solution:
/var/log/httpd called error_log
I removed my error lines and uploaded the file back to the server.
As I told you in my comment, error_log file inside /var/log/httpd folder is the Apache webserver error log.
When an error occurs inside your script (for example), it’s appended in that file.
So it’s really important (if you want to understand what’s happening) that you take a look at that file to improve your script removing faults.
Then you can try to delete it, even if I’m not sure Apache won’t complain because it’s using it… Stopping webserver, removing that file and restarting Apache would be a better solution, even if I understands that could be impossible if your web-space is hosted and not under your control…