Skip to content
Snippets Groups Projects
Commit 6d13808e authored by Nicole Cordes's avatar Nicole Cordes Committed by Jigal van Hemert
Browse files

[TASK] Add information about ThreadStackSize to report status

There is an information about the ThreadStackSize on Windows systems in
the Install.txt

This information should be displayed in report status as well

Change-Id: I70512b15ec672aa16dee8223a48ea5d51f3a8964
Resolves: #42235
Releases: 6.0
Reviewed-on: http://review.typo3.org/15845
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
parent ea901fa0
Branches
Tags
No related merge requests found
......@@ -166,7 +166,15 @@ class SystemStatus implements \TYPO3\CMS\Reports\StatusProviderInterface {
* @return \TYPO3\CMS\Reports\Status The server software as a status
*/
protected function getWebserverStatus() {
return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Reports\\Status', $GLOBALS['LANG']->getLL('status_webServer'), $_SERVER['SERVER_SOFTWARE']);
$value = $_SERVER['SERVER_SOFTWARE'];
$message = '';
// The additional information are only important on a Windows system with Apache running.
// Even with lowest Apache ServerTokens (Prod[uctOnly]) the name is returned.
if (TYPO3_OS === 'WIN' && substr($value, 0, 6) === 'Apache') {
$message .= '<p>' . $GLOBALS['LANG']->getLL('status_webServer_infoText') . '</p>';
$message .= '<div class="typo3-message message-warning">' . $GLOBALS['LANG']->getLL('status_webServer_threadStackSize') . '</div>';
}
return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Reports\\Status', $GLOBALS['LANG']->getLL('status_webServer'), $value, $message);
}
/**
......
......@@ -165,6 +165,18 @@
<trans-unit id="status_webServer" xml:space="preserve">
<source>Web Server</source>
</trans-unit>
<trans-unit id="status_webServer_infoText" xml:space="preserve">
<source>For your Web Server some notifications have been found:</source>
</trans-unit>
<trans-unit id="status_webServer_threadStackSize" xml:space="preserve">
<source><![CDATA[Fluid uses complex regular expressions which require a lot of stack space during the first processing.
On Windows the default stack size for Apache is a lot smaller than on unix.
You can increase the size to 8MB (default on unix) by adding to the httpd.conf:
<br />&lt;IfModule mpm_winnt_module&gt;
<br />ThreadStackSize 8388608
<br />&lt;/IfModule&gt;
<br />Restart Apache after this change.]]></source>
</trans-unit>
<trans-unit id="status_phpModules" xml:space="preserve">
<source>PHP Modules</source>
</trans-unit>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment