标签: opcode

两个独立的 PHP-FPM 站点似乎使用相同的代码?

我有两个带有两个代码库的网站,但是当我更改一个代码库时,我会看到两者都发生了变化。

我有两个同一个网站的结帐。它们被设置为通过带有 FastCGI 的 Apache2 使用 PHP-FPM。结帐在:

/var/www/site1
/var/www/site2
Run Code Online (Sandbox Code Playgroud)

Apache 配置如下所示:

<VirtualHost *:80>
    ServerName site1.myserver.com
    DocumentRoot /var/www/site1
    <IfModule mod_fastcgi.c>
        AddHandler php5-fcgi-handler .php
        Action php5-fcgi-handler /php5-fcgi-uri
        Alias /php5-fcgi-uri fcgi-application
        FastCgiExternalServer fcgi-application -socket /var/run/site1-fpm.sock -pass-header Authorization -idle-timeout 30000 -flush
    </IfModule>
</VirtualHost>

<VirtualHost *:80>
    ServerName site2.myserver.com
    DocumentRoot /var/www/site2
    <IfModule mod_fastcgi.c>
        AddHandler php5-fcgi-handler .php
        Action php5-fcgi-handler /php5-fcgi-uri
        Alias /php5-fcgi-uri fcgi-application
        FastCgiExternalServer fcgi-application -socket /var/run/site2-fpm.sock -pass-header Authorization -idle-timeout 30000 -flush
    </IfModule>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)

FPM 池配置如下所示:

[site1]
user = site1-user
group = site1-group
listen = /var/run/site1-fpm.sock
listen.owner …
Run Code Online (Sandbox Code Playgroud)

cache fastcgi php-fpm opcode apache-2.4

4
推荐指数
1
解决办法
4299
查看次数

标签 统计

apache-2.4 ×1

cache ×1

fastcgi ×1

opcode ×1

php-fpm ×1