[英]Enable GD support in PHP
I'm trying to install pixelpost on an Apache server on windows. 我正在尝试在Windows上的Apache服务器上安装pixelpost。 The installer is failing because: 安装程序失败,因为:
Pixelpost will not run if your PHP installation is not compiled with the GD graphics library. 如果您的PHP安装未使用GD图形库进行编译,则Pixelpost将无法运行。
I've added the following line to php.ini 我已经将以下行添加到php.ini中
extension=php_gd2.dll
But I still get the same error message. 但我仍然得到相同的错误消息。 When I run phpinfo()
I don't see any reference to GD, so I guess it really isn't installed. 当我运行phpinfo()
我没有看到任何对GD的引用,所以我猜它确实没有安装。 I searched for php_gd2.dll
and it's in the ext
subfolder of my PHP root dir. 我搜索了php_gd2.dll
,它位于我的PHP根目录的ext
子文件夹中。
I know nothing about PHP, so be gentle with me. 我对PHP一无所知,所以对我很温柔。
To answer the questions raised in the comments: 回答评论中提出的问题:
php.ini
我在修改php.ini
后重新启动了Apache php.ini
is in the root dir of my PHP installation C:\\php\\php.ini
php.ini
位于我的PHP安装C:\\php\\php.ini
的根目录中 Following are the steps for any php
extension (on MS-Windows
): 以下是任何php
扩展的步骤(在MS-Windows
):
/
) instead of backslashes ( \\
); 给扩展目录提供绝对路径(不是相对路径)[使用正斜杠( /
)而不是反斜杠( \\
); I'm not too sure whether it's required to end the path with trailing slash. 我不太确定是否需要以尾随斜杠结束路径。
extension_dir = c:/php5/ext
例如: extension_dir = c:/php5/ext
php
is referring your php.ini
, now php.ini
can be inside your php
installation root dir. 确保php
引用你的php.ini
,现在php.ini
可以在你的php
安装root目录中。
php.ini
are reflected on phpinfo()
, it's OK. 如果您对php.ini
的更改反映在phpinfo()
,那phpinfo()
。 If not, please refer to INSTALL
file in php
root dir. 如果没有,请参考php
root dir中的INSTALL
文件。 apache
if you're binding php
as a module to apache
重新启动apache
,如果你要绑定php
作为一个模块来apache
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.