Question

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

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 : )


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You could try:

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

This comment has been deleted

  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