PHP Memory Exhaustion | A common cause of the WSOD (White Screen of Death)

If you are experiencing issues with your PHP based website in Cloud Sites, and are seeing the “White Screen of Death” the first thing you will want to check is your php_errors.log file which is located within the logs directory of your website in FTP.

By default, php errors are logged to that file unless otherwise specified by your application.

A very common PHP error is the “PHP Fatal error: Allowed memory size of XXXXX bytes exhausted” error.

Fortunately this is a relatively simple issue to fix.

Rackspace Cloud’s default PHP memory is set to 32M. Some plugins or themes may require more memory than this to process.

To increase the PHP memory you will need to edit the .htaccess file within your /web/content/ directory (or create a .htaccess file if it does not already exist) and add the following line of code towards the top of the file:

php_value memory_limit ?M

Replace the ? with the amount of php memory you wish to allocate. We recommend increasing it to 64M unless more is necessary.

Keep in mind that more php memory will NOT make your website run faster. Too much php memory may actually make your website run slower. The php memory value is how much memory your application is requiring to load each webpage.

So as you can imagine, if your application is requiring upwards of 128M of memory just to load a single webpage it probably won’t load very quickly. 😀

Rackspace Reduces Cloud Files Storage Price by 33%

Cloud FilesTM, powered by OpenStack®, provides easy-to-use online storage for files and media. Cloud Files integration with Akamai’s CDN allows you to serve your content globally, giving you high-speed delivery of content to your site and faster page loads for your site visitors. With pay-as-you-grow pricing, you only pay for the amount of storage and outgoing bandwidth you actually use. Cloud Servers customers will find that using Cloud Files is easy and seamless.

Cloud Files can be an excellent storage solution and is well suited for a number of applications:

  • Backups or archives of your data – For example, you can configure backup images of your Cloud ServersTM
  • Image or video streaming
  • Secondary or tertiary, web-accessible storage for your data
  • Developer-friendly cloud storage with an open API that makes it easy to build applications

Cloud Files Growth: Passing Savings to You

We are pleased to inform you that we are reducing the monthly price of Cloud Files from $0.15 per GB per month to $0.10 per GB per month for US cloud accounts. The growth of Cloud Files, now one of the largest storage platforms in the cloud, is giving us the economies of scale that allow us to reduce costs and pass savings to you.

OpenStack® Object Storage Is Thriving

While Rackspace originally contributed the code for Cloud Files “Swift” that became the OpenStack Object Storage, today there are over 170 companies and over 3,000 people that are involved in the OpenStack ecosystem. At present, Cloud Files is based on the OpenStack Object Storage Essex release which includes code contributions from a global community of developers, software companies, hardware vendors and service providers.

It’s a great time to check out all the new features that we have added to Cloud Files for your next project. Cloud Files is ideal for corporate websites, test/dev environments, ecommerce and SaaS solutions. Features that you might be interested in include: HTTP Compression, Large File Support, SSL Delivery, CNAMEs, CDN Video Streaming, Expiring Objects & Temporary URLs, and Static Website Hosting & Object Versioning. Here are two examples of customers using Cloud Files to power their business:

  • Streaming Media: Dubset uses Cloud Files to power its rich media site
  • eCommerce: Prepara uses Cloud Files to serve static files and images to handle huge ecommerce traffic on the cloud

If you need more than 100 TB of data stored in Cloud Files, please contact us for special pricing. Also, remember you can always contact Support to send us your data by mail using Bulk Import. If you have any questions regarding Cloud Files, don’t hesitate to give me or my sales team a call.