Zend loader require mod_php to be _non_ thread-safe

Get Started. It's Free
or sign up with your email address
Zend loader require mod_php to be _non_ thread-safe by Mind Map: Zend loader require mod_php to be _non_ thread-safe

1. Q

2. Apache/PHP configuration

2.1. Worker MPM

2.1.1. PHP

2.1.1.1. 5.3 mod_php

2.1.1.1.1. thread_safe

2.1.1.2. 5.2 mod_php

2.1.1.3. CGI

2.1.1.3.1. non thread-safe

2.1.1.4. FastCGI

2.2. Prefork MPM

2.2.1. PHP

2.2.1.1. mod_php

2.2.1.1.1. non thread safe

2.2.1.2. php CGI

2.2.1.3. php FastCGI

3. How to build

3.1. httpd.prefork

3.2. httpd.worker

3.3. apxs

3.4. options

3.4.1. php thread safe + worker = OK

3.4.2. php thread safe + prefork = OK

3.4.3. php non-thread-safe + worker = FAIL

3.4.3.1. --> because of that, mod_php is always built thread-safe

3.5. flavors of php binaries

3.5.1. 4

3.5.1.1. php4-2/bin/

3.5.1.1.1. php-cli

3.5.1.2. php4/bin/

3.5.1.2.1. php

3.5.1.2.2. php-cgi

3.5.1.2.3. php-cli

3.5.2. 5

3.5.2.1. php5-2/bin/

3.5.2.1.1. php-cli

3.5.2.2. php5/bin/

3.5.2.2.1. php

3.5.2.2.2. php-cgi

3.5.2.2.3. php-cli

3.5.3. 5.3

3.5.3.1. php53-2/bin/

3.5.3.1.1. php-cli

4. workarounds

4.1. 1

4.1.1. build mod_php thread-safe

4.1.2. make zend loader loaded only in CGI, FastCGI modes

4.1.3. --> zend loader is not available with mod_php

4.2. 2

4.2.1. build mod_php in two versions: thread-safe, non-thread-safe

4.2.2. zend loader can be used with mod_php and apache in prefork mode

5. dependencies

5.1. script execution

5.1.1. apache-restart.pl

5.1.1.1. env_prepare

5.1.1.1.1. [ w httpd.conf.startup ]

5.1.1.1.2. set_hssettings

5.1.1.2. httpd.conf.tmpl

5.1.1.2.1. httpd.conf.startup

5.1.2. hsphere-php53-plugins/postinstall.sh.linux

5.1.2.1. php53/php.d/so-defaults.sh

5.1.2.1.1. [w /hsphere/local/config/httpd/php53/php.d/*.ini]

5.1.2.1.2. [w /hsphere/local/config/httpd2/php53/php.d/*.ini]

5.1.2.2. lint/php_ini_set.php

5.1.2.2.1. [ r php.ini.tmpl.custom ]

5.1.2.2.2. [rw php.ini]

5.2. config files

5.2.1. [...]

5.3. common directory names

5.3.1. scripts

5.3.1.1. /hsphere/local/config/scripts/

5.3.2. config files

5.3.2.1. /hsphere/local/config/