Report this

What is the reason for this report?

What do i do to edit < wp-config.php > for increasing memory allocated to PHP

Posted on March 4, 2015

Unfortunately, I am still a beginner. So I still don’t know lots of things. and still wait lots of help.

I use the VPS, Ubuntu WordPress on 14.04 (Memory 512MB, Singapore)

  1. Does My Host allow for increasing the PHP memory limit, I want 128MB?
  2. If yes, What do I do to change?
  3. If I change like ‘memory_limit = 128M’ in “php.ini”, I don’t need to edit like 'define(‘WP_MEMORY_LIMIT’, ‘128M’) ’ in “wp-config.php”

Thanks in advance to everyone who help me with comment : )



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
  1. It is your VPS, so you can configure it how you like…one of the advantages of having a VPS rather than shared hosting.

  2. you will edit your php.ini which is located at /etc/php5/apache2/php.ini

  3. edit these lines to 200M or whatever you want:

memory_limit = 200M
upload_max_filesize = 200M
post_max_size = 200M

4.restart apache and see if that works

5.start a notebook or tomboy notes and add that for future reference

This comment has been deleted

You could try:

sudo nano /var/www/wp-config.php

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.