mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
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:
parent
3c3f9d1380
commit
5d622d89cf
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user