兩行代碼,請根據PHP安裝位置,更改引號內的地址。
找到 DirectoryIndex index.html,修改為 DirectoryIndex index.php index.html
找到 AddType application/x-gzip .gz .tgz ,在下面分別添加
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
保存httpd.conf
然后在PHP的安裝文件夾中,將php.ini-recommended備份并重命名為php.ini,打開php.ini
找到 ;extension=php_bz2.dll,下面一長串類似的列表,是可供選擇加載的模塊,可以根據自己的需求加載它們,方法是去掉前面的;號。例如我這里加載了:
extension=php_gd2.dll
新聞熱點
疑難解答