WordPress.org

Ready to get started?Download WordPress

Forums

PHP Memory allocation error fix - php.ini and ,htaccess (4 posts)

  1. yodiyo
    Member
    Posted 1 year ago #

    Hi. I was hitting the 32MB memory allocation on my website and it kept getting out of memory errors, so I tried upping the memory in wp-config.php without success. I asked my host who suggested I create a php.ini file with the following code:
    memory_limit = 64M
    upload_max_filesize = 20M
    post_max_size = 20M

    and to also add to the .htaccess.ini file in the root of the site:
    suPHP_ConfigPath /home/sitename/public_html

    This did increase the memory to 64MB which is great, but I'm getting all sorts of errors with images not loading in some browsers and now I can't even log in to the admin section on all of my wp sites on this shared host. I hit the log in button and nothing happens.

    I'm not quite clear what's happening here. If I revert the above fix, I'll have to work with the 32MB limit which is frustrating.

    I'm waiting to hear back from my host but does anybody have any advice?

    Thanks in anticipation

  2. Who is the host? 1and1? They either won't give you more ram or will want you to upgrade.

    Find a new host. WordPress › PHP / MySQL Recommended Web Hosting

  3. yodiyo
    Member
    Posted 1 year ago #

    Thanks. The host is justhostme.co.uk. They seem helpful and haven't suggested upgrading yet.

    Rather than find a new host, I would like to understand why there is an issue either with the memory limit or with repointing in the .htaccess.ini.

  4. That's for your host to tell you; they have limited the memory in your account and limited what you can do with .htaccess and php.ini.

Topic Closed

This topic has been closed to new replies.

About this Topic