Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What can I do if Openads fails with the “not enough memory” error?

0
10 Posted

What can I do if Openads fails with the “not enough memory” error?

0
10

Openads is making an attempt to increase the memory limit however it may not work in all PHP versions. Openads can’t increase your memory limit if your PHP version is older than 4.2 and wasn’t compiled with option ‘–enable-memory-limit’. Openads requires 16MB for all PHP versions older than PHP5.2 and 24MB for PHP 5.2 or any newer version. There are two ways of increasing PHP memory_limit manually: • Edit php.ini file and set the “memory_limit”. • If you do not have access to your php.ini but your webserver uses Apache you may try to put following line into your .htaccess file: “php_value memory_limit 24M” and save “.htaccess” file in your main folder where Openads is installed. In order to do the latter Apache needs to allow use of .htaccess files. For more information on .htaccess file see the Apache documentation.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123