0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[記録][Ubuntu]FileMaker Server で、PHP を FastCGI 版に変更

Posted at

ちょっと、作業自体、現時点のものではないのですが、記録として投稿します。

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 が使えるようになります。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?