|
“挑戰Dreamweaver MX 2004 for PHP”第2章 2-2-4:“在Apache網站服務器上安裝PHP” 第二步:“修改Apache網站服務器的設置文件” 第3步:接著要設置Apache網站服務器對於PHP擴展名的程序編譯能力。選擇[編輯]\[查找]命令打開[查找]對話框,輸入“AddType”後單擊[查找下一個]按鈕來搜索要修改的設置字符串。
按照上述指示操作後出現的字符串如下: # # AddType allows you to add to or override the MIME configuration # file mime.types for specific file types. # #AddType application/x-tar .tgz # # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress # information on the fly. Note: Not all browsers support this. # Despite the name similarity, the following Add* directives have nothing # to do with the FancyIndexing customization directives above. # #AddEncoding x-compress .Z #AddEncoding x-gzip .gz .tgz # # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types: # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz
# # 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) # # To use CGI scripts outside of ScriptAliased directories: # (You will also need to add "ExecCGI" to the "Options" directive.) # #AddHandler cgi-script .cgi
但是按照書上指示,應該出現下面的字符串: # # AddType allows you to add to or override the MIME configuration # file mime.types for specific file types. # AddType application/x-tar .tgz AddType image/x-icon .ico
# # 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) # # To use CGI scripts outside of ScriptAliased directories: # (You will also need to add "ExecCGI" to the "Options" directive.) # #AddHandler cgi-script .cgi
所以現在無法運行PHP。請問這個問題應該如何解決?
|