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 2024-08-28 22:47:19 +05:30 committed by Sunil Mohan Adapa
parent 3c3f9d1380
commit 5d622d89cf
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 5 additions and 2 deletions

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')

View File

@ -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>