我尝试GD
在 PHP5 上安装库:
sudo apt-get install php5-gd
下一个,
sudo service apache2 restart
之后,当尝试运行任何经过 PHP 解析的页面时,会出现一个保存对话框。
你可以看到截图:
我试图运行phpinfo.php
页面,但同样的问题:
PS:
$ php -i | grep -i --color gd
gd 输出测试结果:
PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0
gd
GD Support => enabled
GD Version => 2.1.0-alpha
gd.jpeg_ignore_warning => 0 => 0
GDMSESSION => ubuntu
_SERVER["GDMSESSION"] => ubuntu
我在 Linux/Ubuntu 12.04 上使用 LAMP 服务器