---httpd.conf---
# probably should define those extensions to indicate media types: # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php # # AddHandler allows you to map certain file extensions to "handlers": # actions unrelated to filetype. These can be either built into the server # or added with the Action directive (see below)
httpd.confの一部ですが現在このようになっています。
現在CentOS上にappacheとPHPでサーバを構築し、ウェブ上でPHPで表示できるか確認しようとし、URLを打ち込んだところPHPファイルをダウンロードしようとしてしまう事態が発生しました。
現状htmlはしっかり表示できているのですが、PHPファイルだけそのような状態になってしまっています。
サーバ構築時点で何かミスをしてしまっているのか、何が問題なのか分かりません。
サーバ構築の際CentOSサーバ構築マニュアル(http://centos.server-manual.com/)というサイトのとおりやらせていただいています。
何か足りていない点、またアドバイスがあればご指摘いただきたいです。
よろしくお願いします。
回答3件
あなたの回答
tips
プレビュー