Skip to content

Instantly share code, notes, and snippets.

@janikvonrotz
Last active August 29, 2015 14:06
Show Gist options
  • Save janikvonrotz/bcd384c45aef94b65fc1 to your computer and use it in GitHub Desktop.
Save janikvonrotz/bcd384c45aef94b65fc1 to your computer and use it in GitHub Desktop.
Ubuntu: Increase Max Memory for php5-fpm website #PHP #Nginx #Markdown

Introduction

In some cases the default memory allocation for php is not enough to run an application properly.

Requirements

  • Ubuntu server
  • Nginx
  • php5-fpm
  • Nginx minimal website
  • Nginx php5-fpm website

Instruction

Update the php5-fpm config.

sudo vi /etc/php5/fpm/php.ini
Set memory_limit = 512M

Restart the php5-fpm service.

sudo service php5-fpm restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment