Fossapup64 9.5 で Perl/PHPを利用しようとしています。
Perlは実行できていますが、PHPが実行できません。
PPMで php_7.4+75 / php-cgi_7.4+75 / php-fpm_7.4+75 をインストールし、https://wiki.archlinux.jp/index.php/Hiawatha
https://takaq1.plala.jp/contents/puppy/php/index.html などを参考に、hiawatha.conf を設定しましたが
ターミナルで "hiawatha -k" の実行は "Configuration OK."が返りますが、
"php-cgi --version" は "bash: php-cgi: コマンドが見つかりません" が返ってきます。
また、phpスクリプトを含む index.php をブラウザで表示しようとすると ファイルがダウンロードされてしまいます。
Windowsで Xamppを利用したときは比較的情報が多く、http/https で PHPも簡単に実行出来ていたのですが、
かなり "hiawatha php" などのワードで検索して試しましたが、実行に至っていません。
fcgiのインストールが必要なのか? とか思っていますが、PPMで検索しても該当するパッケージが分かりませんでした。
実行出来ている方がおられましたらアドバイスを頂けると助かります。
hiawatha.conf の内容は以下 (内容はほとんど理解できていませんが上記サイトを参考にしています)
コード: 全て選択
ServerId = webuser
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
Binding {
Port = 80
Interface = 127.0.0.1
}
Binding {
BindingId = CGI
Port = 8080
Interface = 192.168.1.16
MaxRequestSize = 128
TimeForRequest = 3,20
}
Hostname = localhost
WebsiteRoot = /root/Web-Server
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
MimetypeConfig = /etc/mime.types
CGIhandler = /usr/bin/perl:pl
CGIextension = pl,bin,cgi
ExecuteCGI = yes
SecureURL = no
FastCGIserver {
FastCGIid = PHP7
ConnectTo = /run/php-fpm/php-fpm.sock
Extension = php
SessionTimeout = 30
}
Virtualhost{
RequiredBinding = CGI
Hostname= 192.168.1.16
WebsiteRoot= /var/www/hiawatha
StartFile = index.php
showIndex = no
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
UseFastCGI = PHP7
UseXSLT = yes
ExecuteCGI = yes
TimeForCGI = 10
}
どうかよろしくお願いいたします。