CONTENTS
Lastmodified 2023-10-24 (火) 14:48:21
pkgng へ移行して、pkg upgrade した後、.php ファイルへアクセスすると、ダウンロードになるようになったった。
まぁ、良くあるトラブルではあるが、思わぬ原因だったんで、φ(..)メモメモ
pkg upgrade した場合、Apacheやphpなどもupgradeされるが、lang/php5 のinstall オプションの mod_php5 が外されているとのこと。
# portupgrade lang/php5 [Reading data from pkg(8) ... - 284 packages found - done] ** Port marked as IGNORE: lang/php5: doesn't install the Apache module anymore: update your OPTIONS and build www/mod_php5 port instead ** Listing the failed packages (-:ignored / *:skipped / !:failed) - lang/php5 (marked as IGNORE)
ということなので・・・
Installing mod_php81-8.1.24... [activating module `php' in /usr/local/etc/apache24/httpd.conf] ****************************************************************************** Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: <FilesMatch "\.php$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> ****************************************************************************** If you are building PHP-based ports in poudriere(8) or Synth with ZTS enabled, add WITH_MPM=event to /etc/make.conf to prevent build failures. ****************************************************************************** ===> SECURITY REPORT: This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system. /usr/local/libexec/apache24/libphp.so If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: https://www.php.net/ ===> Cleaning for mod_php81-8.1.24
Total access 3957:本日 1:昨日 3