Restart Apache causes applications to react really weird
I found a somewhat working solution.

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


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


EDIT:

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