Skip to main content

Posts

Showing posts with the label Server Config

How to Increase PHP Memory Limit on DreamHost using .phprc (The Correct Way)

  If you are hosting a WordPress site or a custom PHP application on DreamHost, you have likely encountered the "Allowed memory size exhausted" fatal error. Your first instinct was probably to edit  wp-config.php . When that failed, you likely added rules to your  .htaccess  file, resulting in an immediate "500 Internal Server Error." Finally, you might have tried dropping a  php.ini  file into your web root, only to find it completely ignored. This failure occurs because DreamHost’s architecture handles PHP configuration differently than standard cPanel hosts. To persistently increase memory limits, execution time, or upload sizes, you must utilize a specific, non-standard configuration file known as  .phprc . This guide covers the root cause of these failures and details the precise engineering method to override PHP settings on DreamHost using SSH and the  .phprc  file. The Architecture: Why  .htaccess  and  php.ini  Fa...