|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71189 No space available for static Thread Local Storage
Submitted: 2015-12-22 03:17 UTC Modified: 2016-04-05 13:50 UTC
Avg. Score:4.6 ± 0.7
Reproduced:24 of 28 (85.7%)
Same Version:7 (29.2%)
Same OS:5 (20.8%)
From: php at wesha dot name Assigned:
Status: Open Package: Apache2 related
PHP Version: 7.0.1 OS: FreeBSD-8.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: php at wesha dot name
New email:
PHP Version: OS:


 [2015-12-22 03:17 UTC] php at wesha dot name
When attempting to launch Apache 2.4.18 with PHP 7.0.1 module I recieve the following message:

Syntax error on line 153 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/ into server: /usr/local/apache2/modules/ No space available for static Thread Local Storage

Line 153 is where the module loads:
LoadModule php7_module        modules/

PHP5 module loads just fine without any problems.

PHP7 configure string:

--with-mysql=[...censored...] --with-mysqli=mysqlnd --with-gd --with-apxs2=[...censored...] --with-zlib --enable-gd-native-ttf --with-freetype-dir=[...censored...] --with-jpeg-dir=[...censored...] --with-openssl --with-iconv --enable-mbstring --enable-sockets --enable-pcntl --with-mcrypt --with-pdo-mysql --with-bz2 --enable-zip --with-curl ac_cv_decimal_fp_supported=no --mandir=[...censored...] --without-pear


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-14 21:37 UTC] eu_gen at mail dot ru
I've get the same error, Apache fails to start.
This error occurs regardless of the enabled modules/MPMs.
Have FreeBSD 10.2, Apache 2.4.18, PHP 7.0.4.
 [2016-04-03 13:11 UTC] vd_all at mail dot ru
I've get the same error too.
Have FreeBSD 10.1 32bit, Apache 2.4.18 mpm-itk 2.4.7-04, PHP 7.0.4.
 [2016-04-05 12:39 UTC] inacio at isec dot pt
You should unset ZTS on mod_php, and choose option nÂș1 in MPM for apache.
It will work, for apache 2.4.18 and php 7.0.5
 [2016-04-05 13:50 UTC] php at wesha dot name
@inacio: I have absolutely no idea what you are talking about. I have never "set ZTS on mod_php", and therefore, I have no idea how to unset it. Can you point me to the respective manuals? Thank you.
 [2016-06-07 17:29 UTC] php2006 at sensation dot net dot au
Same problem with PHP 7.0.7, FreeBSD 8.3, Apache 2.4.x

With regards to ZTS, configure --help says:

  --enable-maintainer-zts Enable thread safety - for code maintainers only!!

...but this seems to be enabled by default (generated Makefile contains -DZTS)

Trying configure with --enable-maintainer-zts=no gets rid of the -DZTS from Makefile, but when compiling with the new config there's still the same error on attempted start.

Original bug is 6+ months old, has anyone found a solution? Thanks.
 [2016-06-07 17:45 UTC] php2006 at sensation dot net dot au
Correction to my last comment: --enable-maintainer-zts=no does nothing (it still includes -DZTS). I accidentally compared with a manually edited Makefile.

Regardless, the presence or lack of -DZTS in the Makefile does not change the behaviour... Apache still bombs out with the error in the OP.
 [2016-07-08 07:41 UTC] vd_all at mail dot ru
Upgrade to FreeBSD 10.3 32bit, Apache 2.4.23, PHP 7.0.8_1.
This problem is still not fixed.
But, on the system running on FreeBSD 64bit with same configuration all work fine.
This error most likely occurs only on 32-bit systems.

Excuse me for my English - I use Google translator

I read a comment inacio (04/05/2016)
What I want to say.
It was possible to run as follows:
1. Disable the ZTS in mod_php70 (cd /usr/ports/www/mod_php70 && make config) settings and php70 (cd /usr/ports/lang/php70 && make config). Recompile it.
2. Use the prefork module to work (you can also use ITK-MPM)
3. All works well.
In this case, we lose the threads.
 [2017-01-04 22:06 UTC] info at freestyling dot de
Using latest Freebsd 11 + Latest php 7.1 and the problem still exists. Running freebsd in a virtual box as a note for testing.
 [2021-05-29 18:57 UTC] eg329371 at gmail dot com
The following pull request has been associated:

Patch Name: Update
On GitHub:
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Jun 16 20:01:23 2021 UTC