Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

Zend loader require mod_php to be _non_ thread-safe by Mind Map: Zend loader require mod_php
to be _non_ thread-safe
0.0 stars - reviews range from 0 to 5

Zend loader require mod_php to be _non_ thread-safe

Apache/PHP configuration

Worker MPM

PHP, 5.3 mod_php, thread_safe, --> zend loader is broken, fixed by building mod php non-thread-safe - this in turn, breaks whole mod_php in Apache worker mode, 5.2 mod_php, CGI, non thread-safe, zend_extension="/hsphere/shared/php-accelerators/ioncube/ \ ioncube_loader_lin_5.3_ts.so", breaks with error "undefined symbol: core_globals_id", FastCGI

Prefork MPM

PHP, mod_php, non thread safe, Zend Guard Loader is happy, php CGI, php FastCGI

How to build

httpd.prefork

httpd.worker

apxs

options

php thread safe + worker = OK

php thread safe + prefork = OK

php non-thread-safe + worker = FAIL, --> because of that, mod_php is always built thread-safe

flavors of php binaries

4, php4-2/bin/, php-cli, origin?, usage?, php4/bin/, php, php-cgi, php-cli

5, php5-2/bin/, php-cli, origin, build_php.sh: line167: mv ${PREFIX}/bin/php ${PREFIX}/bin/php-cli, usage, commented out: usitebuilder: line 348: # phpcli_path=/hsphere/shared/php5-2/bin/php-cli, php5/bin/, php, origin, build_extensions.sh: line 9: ln -s php-cli ${PREFIX}/bin/php, usage, php-cgi, postinstall.sh.linux: line 22: ln -d php-cgi php, php-cli, origin, build_php.sh: line167: mv ${PREFIX}/bin/php ${PREFIX}/bin/php-cli

5.3, php53-2/bin/, php-cli, usage, php-cli -n /hsphere/shared/php53/lint/php_ini_set.php

workarounds

1

build mod_php thread-safe

make zend loader loaded only in CGI, FastCGI modes

--> zend loader is not available with mod_php

2

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

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

Q

dependencies

script execution

apache-restart.pl, env_prepare, [ w httpd.conf.startup ], set_hssettings, [r] /hsphere/shared/scripts/scripts.cfg, [rw /tmp/php_ini_values], /hsphere/shared/php4/lint/php_ini_set.php, [w httpd${j}/php${i}/php.ini], usemodule, [ w httpd.conf.startup ], [ w httpd.conf.startup.tmp ], [ w httpd.conf.startup.orig ], usemodule.phpmode, [w httpd2/macro/php*.macro], httpd.conf.tmpl, httpd.conf.startup

hsphere-php53-plugins/postinstall.sh.linux, php53/php.d/so-defaults.sh, [w /hsphere/local/config/httpd/php53/php.d/*.ini], [w /hsphere/local/config/httpd2/php53/php.d/*.ini], lint/php_ini_set.php, [ r php.ini.tmpl.custom ], [rw php.ini]

config files

[...]

common directory names

scripts, /hsphere/local/config/scripts/

config files, /hsphere/local/config/