• I have multiple website hosted on godaddy VPS server.
    Form few days, I am facing lot of issue on all the sites on that server. these are

    Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 237121 bytes) in /home/happyeasterdaygr/public_html/wp-includes/functions.php on line384

    Fatal error: Out of memory (allocated 12845056) (tried to allocate 49152 bytes) in /home/happynewyeargree/public_html/wp-includes/class-http.php on line 250

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at oscarawardwinners2015.com Port 80

    I also cotacted hosting providers to solve this issue. they said this is due to memory. upload a Php.ini file in the server publish_html location and increase the memory.

    can any one provide me this file that will solve this problems of memory.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account.

    (in the above examples, the limit is set to 128MB)

    Regards

    KC

    Thread Starter theyouthdeb

    (@theyouthdeb)

    i changed the memory to 64M, but it still gives the same error same time.
    i have just one doubt. will this increase in memory will effect the other website

    Hello,

    I guess the changes did not made effect. Try asking your hosting provider to increase the limit for you.

    Regards

    KC

    Thread Starter theyouthdeb

    (@theyouthdeb)

    Thanks @kc

    Vatz

    (@janaminfosystem)

    Hi theyouthdeb.

    Open your php.ini file and scroll for memory_limit and set it to maximum of 1024MB (1GB). This will solve your problem asap.

    Thanks
    Vatz

    Thread Starter theyouthdeb

    (@theyouthdeb)

    hi Janaminfosystem,
    I am using godaddy VPS server. config is 1GM RAM, 40 GB of disk space.
    And hosted more then 30 website in my server.
    Are you sure that this will not effect any thing

    Hi,

    It is not recommended to set memory_limit to more than 256 MB when you host 30+ website in 1 GB VPS. Make sure you are increasing memory_limit in php.ini file which is actually in use. Upload phpinfo.php page, browse it and determine the loaded php.ini configuration. Increase memory_limit in this file and save it.

    Thanks,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Allowed memory size’ is closed to new replies.