TheBigK Posted August 29, 2014 Share Posted August 29, 2014 I'm trying to run PrestaShop (domain.com/shop/ ) in parallel with XenForo (domain.com) on my server with about 8 GB of RAM; and ~256 MB dedicated to PHP. After installation and trying to tweak the back-office of PrestaShop, I found out that our users began getting 'Out Of Memory' error; wherein PHP could not allocate enough memory to scripts. Given the fact that I've began getting the error only after installing prestashop; I'm wondering if Prestashop eats up lot of memory on the server. The error typically happens when prestashop is loading a page; and at the same time a new page is loaded on Xenforo. It's interesting that the error appears only on Xenforo pages. I've read a few threads that talk about the topic; but couldn't find a fix that works. I don't want to go back to Magento or WooCommerce and would really appreciate your help! Link to comment Share on other sites More sharing options...
Arafat Jahan Posted August 29, 2014 Share Posted August 29, 2014 (edited) Hi, First Download the attach PHP file, and upload it to your Prestashop ROOT like domain.com/shop/phpinfo.php Now go to the link, you can see PHP info here, search here memory_limit and see what value is there. If the value is bellow 128M then you need to edit, Normally all server have only 32M for this value. An alternate is : go your BACKEND >> ADVANCED PARAMETERS >> CONFIGURATION INFORMATION here also you can see SERVER INFORMATION for memory_limit Prestashop does not take or kill your memory. But when you go backend or front end, like on module page, then the script need to load big data. For fixing that you need to go your server /etc/apache/php5/php.ini Not all server have the file in same place, You need to contact with your server company for where you find the php.ini file. Also you can see the link domain.com/shop/phpinfo.php there have Loaded Configuration File path to show exactly where are your php.ini file. Now you need to simply edit that file and change memory_limit = 128M that's it After that some server need to restart Apache. If your problem solve then please mark this post as [sOLVED] Thanks, Arafat phpinfo.php Edited August 29, 2014 by Arafat Jahan (see edit history) Link to comment Share on other sites More sharing options...
TheBigK Posted August 30, 2014 Author Share Posted August 30, 2014 Hello Arafat, Thank you for your response. The memory_limit on my server is 384M. I've began getting the OOM error only after installing prestashop in /shop/ on my domain. As I mentioned, the error appears on main domain (domain.com). I've already had a word with the server admins and they are unable to figure out what's causing the issue. My current prestashop installation is running on all the default information and data. I also noticed that the errors go away from the main domain after prestashop is uninstalled. Link to comment Share on other sites More sharing options...
Recommended Posts