[英]Installing PHP GD on my Windows 7 with Apache
在我的一生中,我無法在我的 Windows 7 PHP 版本中安裝 GD。 這就是我所做的:
我的路徑是 C:/webserver/php/php.ini
自然,GD 在我的 php.ini 文件中被注釋掉了。 (;擴展名=php_gd2.dll)
到處都說這應該有效,但事實並非如此。
運行 phpinfo(); 顯示 php.ini 的路徑是正確的,並且 GD仍未安裝。
我究竟做錯了什么? 我沒辦法。
AFAIK 你必須將 php_gd2.dll 留在 .../ext/ 文件夾中。
要為 Apache24 啟用 .php lib" 索引。轉到您的 Apache24\\conf 。打開 httpd.conf 文件然后搜索
粘貼以下代碼
<IfModule mime_module>
AddType text/html .shtml
AddType text/html .php .phps
</IfModule>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.