Tag Archives: apache

Increase PHP Memory Limit in htaccess, apache or in a php script

Most of us have come across this error: “Fatal error: Allowed memory size of xxxxxx bytes exhausted (tried to allocate yyy bytes) in ….” in the php error logs. In php, running out of memory in usually a sign that your php script is not too well written or has a bug or two in [...]

Set Apache Log Permission Using Logrotate

If you have ever wondered why your log files randomly change permissions each night. Logrotate could be up to its tricks. Similar to the other article I published on Why is apache randomly restarting which explains why logrotate could be causing apache to restart randomly. Each time logrotate runs its course, it will compress, rename and [...]

Why is Apache Restarting Randomly

Logrotate could be the cause of the issue. Each time logrotate runs, it will compress, rename and rotate your logs as well as removing older logs. Similar to the follow up of this article explaining how logrotate was changing apache log file permissions. Since the logs files are renamed, it will result in some of your [...]