もし使用しているApacheのバージョンが1.3.x である場合は、PHP5をインストールして使用することは推奨出来ません。バージョンが2.x 以上を使用してください。
設定ファイル"/etc/httpd/conf/httpd.conf "またはそれに相当するファイルを見つけて次のように変更します:
# Load config files from the config directory "/etc/httpd/conf.d". Include conf.d/*.conf
PHPの設定ファイル" /etc/httpd/conf.d/php.conf "を確認してください。
PHP5を使用している場合は、次の行を追加します。
# PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically generated webpages. LoadModule php5_module modules/libphp5.so # # Cause the PHP interpreter to handle files with a .php extension. AddHandler php5-script .php AddType text/html .php # # Add index.php to the list of files that will be served as directory # indexes. DirectoryIndex index.php