note 85418 added to install.pecl.phpize
| From: | jplahti at osu1 dot php dot net | Date: | Fri, 29 Aug 2008 06:48:18 +0000 |
| Subject: | note 85418 added to install.pecl.phpize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143967@lists.php.net to get a copy of this message | ||
Minimizing harm on upgrading extensions on busy server.
I upgraded (phpize,make... way) APC-extension on quite busy server and found out that Apache
segfaults if i just restart it gracefully with the new extension in place. I found a way around
this, so that the users of the server only see small slow down of the services.
1. Comment out extension loading (old extension) in php.ini (or separate .ini-file).
2. Restart Apache gracefully (now system runs without extension).
3. Replace old extension with new version (can be done already before first restart) and edit .ini
again to include extension.
4. Restart Apache gracefully again (new extension loads).
Of course this only works for extensions which your php-application can live without for a short
period of time. ;-)
----
Server IP: 80.81.171.181
Probable Submitter: 130.234.89.116
----
Manual Page -- http://www.php.net/manual/en/install.pecl.phpize.php
Edit -- https://master.php.net/note/edit/85418
Del: integrated -- https://master.php.net/note/delete/85418/integrated
Del: useless -- https://master.php.net/note/delete/85418/useless
Del: bad code -- https://master.php.net/note/delete/85418/bad+code
Del: spam -- https://master.php.net/note/delete/85418/spam
Del: non-english -- https://master.php.net/note/delete/85418/non-english
Del: in docs -- https://master.php.net/note/delete/85418/in+docs
Del: other reasons-- https://master.php.net/note/delete/85418
Reject -- https://master.php.net/note/reject/85418
Search -- https://master.php.net/manage/user-notes.php