Apache HTTP Server stops working for only a certain local website

First open your wp-config.php which is located in the root WordPress directory. Then add the following line inside the main php tag:

define('WP_MEMORY_LIMIT', '64M');

We just increased the memory limit to 64M. If you still get the error after this fix, then please contact your host. Most likely, they would have to go in their php.ini file to increase the memory limit for you.

If you are working on xampp then edit php.ini .Search “memory_limit” in your php.ini, and change the value of it. If no “memory_limit” found, add the following line at the end of php.ini

 memory_limit = 128M ; /* Change the 128M to your needs */
  • Save file.Restart Apache.

Note:You can find xampp/php/php.ini

tech