php 5.3.9 de トラブル

CONTENTS


Lastmodified 2023-10-24 (火) 14:48:21


.php にアクセスするとダウンロードになる!

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)

ということなので・・・

portinstall www/mod_php81

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 3959:本日 3:昨日 3

Counter: 3959, today: 3, yesterday: 3

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-10-24 (火) 14:48:21