Restart Apache causes applications to react really weird

Solution 1:

I found a somewhat working solution.

I am using Homebrew's httpd package, so I found out that I could just reinstall it:

  1. When it begins to do that weird stuff, restart the computer.
  2. Then reinstall httpd with brew reinstall httpd
  3. You're good!

EDIT:

I later found out that it was an issue with the MySQL server that was not running/having a problem.