Increase a PHP Memory Limit for DreamHost

Edited by Djinu, VisiHow, Eng, Visihow Admin

Hi! In another video, we covered how to install a WordPress theme. In this video, we're going to cover how to increase the memory limit when using DreamHost shared hosting.

Increase Php Memory Limit Dreamhost.mp4-canvas36 064653.jpg

Steps

  1. 1
    Open TextEdit
    .
    One important part to note is that you want to make sure the format is set to plain text in "Format". If you're using a rich text format, you will not be able to save the file as a format without an extension.
    Increase Php Memory Limit Dreamhost.mp4-canvas28 434011.jpg
    Increase Php Memory Limit Dreamhost.mp4-canvas19 677287.jpg
    Was this step helpful? Yes | No| I need help
  2. 2
    In the "TextEdit" menu along the top of the screen, click "Format"
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas27 040086.jpg
    Was this step helpful? Yes | No| I need help
  3. 3
    Then, click "Make Plain Text" (if available) in the menu
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas31 582394.jpg
    Was this step helpful? Yes | No| I need help
  4. 4
    Type "memory_limit = 128M" in the text document
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas34 752485.jpg
    Was this step helpful? Yes | No| I need help
  5. 5
    To save the file, click "File" in the menu at the top
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas40 803205.jpg
    Was this step helpful? Yes | No| I need help
  6. 6
    Then, click "Save"
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas42 797303.jpg
    Was this step helpful? Yes | No| I need help
  7. 7
    Save the file to the desktop as "phprc" by typing it
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas47 544669.jpg
    Was this step helpful? Yes | No| I need help
  8. 8
    Uncheck the box "If no extension is provided, use '.txt' "
    .
    This file needs to be without an extension.
    Increase Php Memory Limit Dreamhost.mp4-canvas55 018963.jpg
    Was this step helpful? Yes | No| I need help
  9. 9
    Click the blue "Save" button in the lower-right corner of this window
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas59 074563.jpg
    Was this step helpful? Yes | No| I need help
  10. 10
    Now, go to the Finder window and locate the file you've just saved on the desktop
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas67 383239.jpg
    Was this step helpful? Yes | No| I need help
  11. 11
    Also, go to your web site folder
    .
    For this tutorial, the web site folder is "xonlo.com". In your web site folder, add two new folders.
    Increase Php Memory Limit Dreamhost.mp4-canvas72 534917.jpg
    Was this step helpful? Yes | No| I need help
  12. 12
    Right-click the folder directory and select "New Folder"
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas75 672023.jpg
    Was this step helpful? Yes | No| I need help
  13. 13
    Name one folder ".php"
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas78 168863.jpg
    Was this step helpful? Yes | No| I need help
  14. 14
    Click "OK"
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas79 743425.jpg
    Was this step helpful? Yes | No| I need help
  15. 15
    Right-click the folder directory and select "New Folder"
    .
    Alternatively, click it in the menu at the top.
    Increase Php Memory Limit Dreamhost.mp4-canvas98 748577.jpg
    Was this step helpful? Yes | No| I need help
  16. 16
    Name the second folder the version of PHP you're using
    .
    In this case, it is version 5.4. Therefore, type "5.4".
    Increase Php Memory Limit Dreamhost.mp4-canvas99 643723.jpg
    Was this step helpful? Yes | No| I need help
  17. 17
    Rename the ".php" folder to "php"
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas102 981351.jpg
    Was this step helpful? Yes | No| I need help
  18. 18
    Drag the "5.4" folder into the "php" folder
    .
    Wait with name the "php" folder as ".php" until we've finished editing all of the information.
    Increase Php Memory Limit Dreamhost.mp4-canvas107 280579.jpg
    Was this step helpful? Yes | No| I need help
  19. 19
    Click the folder tab with the "phprc" file in Finder
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas111 918231.jpg
    Was this step helpful? Yes | No| I need help
  20. 20
    Click and drag "phprc" to the web site folder
    .
    It is "xonlo.com" in this video.
    Increase Php Memory Limit Dreamhost.mp4-canvas114 831045.jpg
    Was this step helpful? Yes | No| I need help
  21. 21
    Drag the "phprc" file into the "5.4" folder
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas124 40475.jpg
    Was this step helpful? Yes | No| I need help
  22. 22
    Release the mouse button to move the file
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas128 600924.jpg
    Was this step helpful? Yes | No| I need help
  23. 23
    Click the left arrow to go back
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas132 455.jpg
    Was this step helpful? Yes | No| I need help
  24. 24
    Rename "php" back to ".php"
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas137 767664.jpg
    Was this step helpful? Yes | No| I need help
  25. 25
    Click "OK"
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas141 030058.jpg
    Was this step helpful? Yes | No| I need help
  26. 26
    Now, open Adobe Dreamweaver CC 2015
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas144 199345.jpg
    Was this step helpful? Yes | No| I need help
  27. 27
    Click the "Remote server" drop-down menu
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas145 137903.jpg
    Was this step helpful? Yes | No| I need help
  28. 28
    Click "Local view"
    .
    This is the local view of the account. There is the ".php" folder.
    Increase Php Memory Limit Dreamhost.mp4-canvas146 112159.jpg
    Was this step helpful? Yes | No| I need help
  29. 29
    Click the ".php" folder
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas149 807445.jpg
    Was this step helpful? Yes | No| I need help
  30. 30
    Click 'Put file(s) to "Remote Server (xonlo.com)" '
    .
    The folder will be uploaded to the server.
    Increase Php Memory Limit Dreamhost.mp4-canvas152 069633.jpg
    Was this step helpful? Yes | No| I need help
  31. 31
    Now, switch to the web site
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas160 218457.jpg
    Was this step helpful? Yes | No| I need help
  32. 32
    Click "reactivate your previous theme"
    .
    Increase Php Memory Limit Dreamhost.mp4-canvas160 997075.jpg
    Was this step helpful? Yes | No| I need help
  33. 33
    Type the name for the theme to search for it
    .
    Now, try reactivating the theme that you wanted and see whether the error still shows up or not.
    Increase Php Memory Limit Dreamhost.mp4-canvas168 144777.jpg
    Was this step helpful? Yes | No| I need help
  34. 34
    Click "Activate"
    .
    This time, the theme activates without the error because you have increased the PHP memory limit.
    Increase Php Memory Limit Dreamhost.mp4-canvas170 954351.jpg
    Was this step helpful? Yes | No| I need help

This was a tutorial on how to increase the PHP memory limit in DreamHost shared hosting plans. Please leave any questions or comments in the section below. Thanks for watching VisiHow!

Video: Increase a PHP Memory Limit for DreamHost

If you have problems with any of the steps in this article, please ask a question for more help, or post in the comments section below.

Comments

Article Info

Categories : Online & Web Job Related | Software

Recent edits by: Eng, VisiHow, Djinu

Share this Article:

Thanks to all authors for creating a page that has been read 338 times.

x

Thank Our Volunteer Authors.

Would you like to give back to the community by fixing a spelling mistake? Yes | No