Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86806 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15121 invoked from network); 23 Jun 2015 10:17:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2015 10:17:27 -0000 Authentication-Results: pb1.pair.com header.from=lisachenko.it@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lisachenko.it@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: lisachenko.it@gmail.com X-Host-Fingerprint: 209.85.215.47 mail-la0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:34937] helo=mail-la0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/B0-09700-D2239855 for ; Tue, 23 Jun 2015 06:17:17 -0400 Received: by lagi2 with SMTP id i2so3445910lag.2 for ; Tue, 23 Jun 2015 03:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Rh3fh6WCThOHZcX+rIjjg0Rw8ca/gvQZz6WddalPmh0=; b=Y/xypSmujpso2lmvlN5bYC35vi6rGWuesy6G/LyA0P6m619U4Im/a564EOgZIg1vdC z2f9Hzk/rtjmehdGEx0AVAjI05Q2VIIJAYi4Oxf/aUa/b2AqSpIg4Q0dNIq9eG4pbnHE 4cRVq1npkFMgRdz/KIKozLOiC/KL/KAUMkXhJ9zoyYM8mdgmPFRmbBkR/i8vGxnjaciG 98ZzKnIIsbLGDJE/GIhj5dBjZDqxSeCKzOBlEoTIcZJQ4obGPqcfnp6lGaSOp3PV0NaN SkpuRltU+19XaP//0YP5pJIqNOfXnqfI60hk0usFHy9yM8ZUWtLXeWfyenbyoeG1Ev0w YXfA== MIME-Version: 1.0 X-Received: by 10.112.210.9 with SMTP id mq9mr34239401lbc.4.1435054634052; Tue, 23 Jun 2015 03:17:14 -0700 (PDT) Received: by 10.112.72.169 with HTTP; Tue, 23 Jun 2015 03:17:13 -0700 (PDT) In-Reply-To: References: <55840E5D.1090809@php.net> <5584394B.2070804@lerdorf.com> <55886163.5090801@php.net> Date: Tue, 23 Jun 2015 13:17:13 +0300 Message-ID: To: Ferenc Kovacs Cc: Sebastian Bergmann , PHP Internals Content-Type: multipart/alternative; boundary=001a11c3c842b2358f05192cb1de Subject: Re: [PHP-DEV] PHP-FPM: How to clear the realpath cache on deployment? From: lisachenko.it@gmail.com (Alexander Lisachenko) --001a11c3c842b2358f05192cb1de Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, internals! I remember the crazy code for invalidating the opcache/realpath entries from CLI. Logic was the following: tool asks for the server name with php-fpm to connect to via ssh connection, then it prepares a small PHP-file and uploads it to the temp directory on this server and then connects directly to the php-fpm socket on this server via FCGI protocol (implemented in PHP) to issue an request to this temporary file. So, it's possible to access all shared variables/states in this php-fpm instance. After that it's possible to execute a command in the context of server. This can be used for invalidating the realapth/opcode cache. Hope, that this information can be useful for you ) Thanks 2015-06-22 23:27 GMT+03:00 Ferenc Kovacs : > On Mon, Jun 22, 2015 at 9:26 PM, Sebastian Bergmann > wrote: > > > On 06/19/2015 05:46 PM, Rasmus Lerdorf wrote: > > > I think this is a symptom of doing deploys incorrectly. > > > > You are right, of course. Thank you for pointing out this layer 8 > > problem :-) No clue why I did it different (read: stupid) for a > > private project when I know better. Oh, well. > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > another alternative is using absolute paths everywhere: > > http://grokbase.com/p/php/php-internals/133qxh5ndm/php-dev-continuous-int= egration-atomic-deploys-and-php-5-5 > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu > --001a11c3c842b2358f05192cb1de--