Memory limit is too low

Bug #525565 reported by George Politis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mediawiki (Ubuntu)
Opinion
Low
Unassigned

Bug Description

Binary package hint: mediawiki

OS: Ubuntu 9.10 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 02:39:34 UTC 2010 x86_64 GNU/Linux

Steps to reproduce:
# Install karmic
# apt-get install mediawiki mysql-server (shouldn't mysql-server be a dependency?)
# Uncomment "Alias /mediawiki /var/lib/mediawiki" in /etc/mediawiki/apache.conf
# Set "log_errors = On" in /etc/php5/apache2/php.ini
# /etc/init.d/apache2 restart
# Open http://localhost/mediawiki and configure mediawiki
# Try to search for a page in the mediawiki search box
# Pay attention that /var/log/apache2/error.log reports an error similar to: "Mon Feb 22 02:20:34 2010] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 131072 bytes) in /usr/share/mediawiki/includes/OutputHandler.php on line 81, referer: http://localhost/mediawiki/index.php/Main_Page"

Cause: ini_set('memory_limit', '20MB') in the generated LocalSettings.php should be higher by default.

Revision history for this message
Jonathan Wiltshire (jwiltshire) wrote :

The default memory limit in PHP5 for Karmic is 16M. The Mediawiki installer lifts it a little if it detects that the current limit is <20M. The installer does note that it's doing this, which should be a hint to the administrator that it needed doing.

This limit probably shouldn't be increased any further, since it's not for the installer to decide if the local administrator has good reason for keeping a tight hold on memory.

(mysql-server is a recommendation, not a dependency, because Mediawiki can use a number of database engines.)

Revision history for this message
Jonathan Wiltshire (jwiltshire) wrote :

I'm setting the Opinion state, because I am of the opinion that this should be closed but other parties are welcome to continue discussion.

Changed in mediawiki (Ubuntu):
importance: Undecided → Low
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.