mediawiki: Increase PHP maximum execution time to 100 seconds

Fixes: #2432

Tests:

- Without patch install MediaWiki. phpinfo() shows max execution time for 30
seconds. Apply patch, run 'make install' and restart service. Mediawiki app is
updated. Apache2 is reloaded. phpinfo() shows max execution time for 100
seconds.

- Create a script to 100% utilize the CPU for 90 seconds. It works.

- Create a script to 100% utilize the CPU for 110 seconds. It fails and get
killed after about 100 seconds.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2024-09-05 19:50:19 -07:00
1 parent 3c3f9d1380
commit 5d622d89cf
2 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ class MediaWikiApp(app_module.App):
app_id = 'mediawiki'
_version = 12
_version = 13
def __init__(self) -> None:
"""Create components for the app."""
@@ -86,7 +86,7 @@ class MediaWikiApp(app_module.App):
self.add(webserver)
webserver = Webserver('webserver-mediawiki-freedombox',
'mediawiki-freedombox')
'mediawiki-freedombox', last_updated_version=13)
self.add(webserver)
daemon = Daemon('daemon-mediawiki', 'mediawiki-jobrunner')
@@ -6,6 +6,9 @@
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
</IfModule>
<IfModule proxy_fcgi_module>
ProxyFCGISetEnvIf true PHP_VALUE "max_execution_time = 100"
</IfModule>
</Directory>
<Directory /var/lib/mediawiki/images>