Bug report: refresh.php runs out of memory when php_error.log is too large
Posted by: wjlin (---.hinet-ip.hinet.net)
Date: June 04, 2026 06:36AM

Hi,

I would like to report a possible bug in Wamp64.

After installing Wamp64, I manually installed the PHP 7.4 single installer add-on. However, the PHP menu was not updated and still showed the old PHP version list.

After investigating, I found that:

C:\wamp64\logs\php_error.log

had grown to 16,715,699,899 bytes.

When WampServer executed refresh.php, it appeared to read this large log file and ran out of memory. As a result, wampmanager.ini was not regenerated, and the PHP menu was not refreshed with the newly installed PHP 7.4 version.

Deleting or reducing the size of php_error.log allowed the refresh process to work correctly.

I think refresh.php should probably avoid reading extremely large log files into memory, or at least check the file size before processing it.

Thanks for your work on WampServer.

Options: ReplyQuote
Re: Bug report: refresh.php runs out of memory when php_error.log is too large
Posted by: Otomatic (Moderator)
Date: June 04, 2026 09:28AM

Hi,

There is an option to do this :
Right-Click -> Wamp settings -> Automatic Cleaning
By default there are :

* Clean log files automatically
* Empty log files at version change
- Number of lines before cleaning : 1000
- Number of lines after cleaning : 50
* Clean tmp files automatically

Of course, this can only be done when Wampserver starts up or restarts !

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.