#問題
FreeBSD11.1でPHP5.6がインストールされているかの確認をこのサイトの一番下の画像を出すことで行いたかったのですが、上手くいきませんでした。info.phpの記述内容がそのまま表示されるという結果になります。echoコマンドで確認しても、パスが表示されるわけではなくinfo.phpの内容がそのまま表示されてしまいます。この原因が何かわかる方いますか?回答お願いします。足りない情報があれば随時追記します。
#/usr/local/www/apache24/data/info.phpの内容
#http://<サーバのIPアドレス>/info.phpにアクセスした時の画面
<?php phpinfo(); ?>#補足
FreeBSD11.1
Apache2.4.29
PHP5.6
mod_php56
#追記 httpd -Mの結果
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_prefork_module (shared)
authn_file_module (shared)
authn_core_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_user_module (shared)
authz_core_module (shared)
access_compat_module (shared)
auth_basic_module (shared)
reqtimeout_module (shared)
filter_module (shared)
mime_module (shared)
log_config_module (shared)
env_module (shared)
headers_module (shared)
setenvif_module (shared)
version_module (shared)
unixd_module (shared)
status_module (shared)
autoindex_module (shared)
dir_module (shared)
alias_module (shared)
php5_module (shared)
#which httpdの結果
/usr/local/sbin/httpd
#追記の追記 /usr/local/etc/apache24/Includes/php56.confの内容
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType text/html .php
DirectoryIndex index.html index.htm index.php
<FilesMatch ".php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch ".php$">
SetHandler application/x-httpd-php-source
</FilesMatch>
Includesの中身
no-accf.conf php.conf php56.conf
回答4件
あなたの回答
tips
プレビュー