Skip to main content

Bitnami WordPress 503 Error Resolution

By May 2, 2014Wordpress

As I was trying to update the company website today, I was getting bombarded with errors while I was trying to upload images. These errors eventually caused a number of 503 errors, to which I had no clue what the cause was. After digging around for several hours, it seems that the issue was related the to APC extension.

We’re running our server on Amazon Web Services (AWS) and were using the Bitnami WordPress AMI, which auto-enables this extension and thus in order to fix it temporarily, we had to disable it. In order to do so, all you need to do is the following:

  1. Browse to: /opt/bitnami/php/etc
  2. Using your favorite editor, edit the php.ini file.
  3. Search for the line that says extension=apc.so
  4. Add a semi-colon to the start of that line to comment it out ;extension=apc.so
  5. Restart Apache  - /opt/bitnami/ctlscript.sh restart apache2
  6. Restart PHP-FPM - /opt/bitnami/ctlscript.sh restart php-fpm

Once you’re done, your website should work normally again. Obviously we’d still want this extension to handle our cache, so feel free to use another until the bug is fixed.