[TASK] Add information about ThreadStackSize to install tool
authorNicole Cordes <n.cordes@biz-design.biz>
Sat, 20 Oct 2012 23:09:55 +0000 (01:09 +0200)
committerJigal van Hemert <jigal@xs4all.nl>
Sun, 28 Oct 2012 19:47:00 +0000 (20:47 +0100)
There is an information about the ThreadStackSize on Windows systems in
the Install.txt.

This information should be displayed in the Basic Configuration of the
Install Tool as well.

Change-Id: Iedbabccea903ab108220fbaf25492478b7e3ea1e
Resolves: #42237
Releases: 6.0
Reviewed-on: http://review.typo3.org/15848
Reviewed-by: Wouter Wolters
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/install/Classes/Installer.php

index 4348f25..453cdf6 100644 (file)
@@ -2274,6 +2274,20 @@ REMOTE_ADDR was \'' . \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REMOTE
                        ';
                        $this->message($ext, 'PHPdoc comments are stripped', $description, 2);
                }
+               // ThreadStackSize on Windows systems with Apache
+               $threadStackSizeDescription = '
+                       <p>
+                               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 /><br />&lt;IfModule mpm_winnt_module&gt;
+                               <br />ThreadStackSize 8388608
+                               <br />&lt;/IfModule&gt;
+                               <br /><br />Restart Apache after this change.
+                       </p>';
+               if (TYPO3_OS === 'WIN' && substr($_SERVER['SERVER_SOFTWARE'], 0, 6) === 'Apache') {
+                       $this->message($ext, 'ThreadStackSize', $threadStackSizeDescription, 2);
+               }
        }
 
        /**
@@ -7188,4 +7202,4 @@ REMOTE_ADDR was \'' . \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REMOTE
        }
 
 }
-?>
\ No newline at end of file
+?>