Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes)

后端 未结 7 1688
没有蜡笔的小新
没有蜡笔的小新 2020-12-31 00:19

I have two domains, webhosted on 000webhost. I installed wordpress on them and for some days it functioned well, but now it shows me the following error on both of them:

7条回答
  •  梦谈多话
    2020-12-31 00:46

    GoDaddy seems to reduce the memory_limit value to 64M by default.

    I had spend a day or two trying to increase the size, by changing the .htaccess file and php.ini file in the /public_html folder. But atlast I got the issue resolved as follows:

    • Logged into Control Centre
    • Opened CGI Admin > PHP
    • Opened the phpmyinfo of my PHP version in the page (4 & 5 were shown, and mine was PHP5)
    • On the first line, there is a note specifying that "the configuration shown is not from the user's php5.ini file". Guessed the ini file to be php5.ini and not php.ini
    • Created a new file with all the configurations copied from the php.ini file in the root folder, and named it php5.ini
    • Added a new line memory_limit = 128M
    • Uploaded it to the root folder (/public_html) and it worked.

提交回复
热议问题