ちょっと、作業自体、現時点のものではないのですが、記録として投稿します。
XServer VPS の Ubuntu 22.04 イメージを使って、FileMaker Server をインストールして使っています。しかし、Ubuntu 22.04 イメージ では、FastCGI 版が有効にないので変更しました。その時の記録です。
PHP を FastCGI 版へ変更
sudo apt-get --purge remove php8*
sudo apt install php-fpm
Ubuntu 版 FileMaker Server で、PHP 有効化
Mac 版は Apache ですが、Ubuntu 版は nginx になっています。
default をバックアップして、内容を書き換えます。
cd /etc/nginx/sites-available/
sudo cp default default_backup
sudo vi default
以下の部分を書き換えました。
#location ~ \.php$ {
#include snippets/fastcgi-php.conf;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
(〜 略 〜)
# fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
(〜 略 〜)
}
fms_nginx.conf というファイルがあるので、バックアップして書き換えます。
cd /opt/FileMaker/FileMaker\ Server/NginxServer/conf/
cp fms_nginx.conf fms_nginx.conf_default
vi fms_nginx.conf
#index index.html index.htm index.nginx-debian.html;
index index.php index.html index.htm index.nginx-debian.html;
再起動
sudo systemctl restart nginx
より、VPS 自体を再起動することをお勧めします。
再起動後、FileMaker Server で PHP が使えるようになります。