在Linux上启用GD PHP中imagecreatefromstring功能和发送电子邮件 [英] Enabling GD in PHP on linux for imagecreatefromstring function and sending email

查看:311
本文介绍了在Linux上启用GD PHP中imagecreatefromstring功能和发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经部署在亚马逊云计算我的PHP Web应用程序。我已经在服务器上安装PHP和MySQL在那里。 但我的PHP安装不支持某些功能,这些是我的开发机器present在我的默认的XAMPP安装。 功能不工作的    imagecreatefromstring功能    和电子邮件发送功能 因为在服务器上的PHP安装不具备所需的文件那些需要的,以便从字符串和发送电子邮件创建图像,包括

I have Deployed my PHP web application on Amazon Cloud. I have installed PHP and mySql there on server. But my PHP installation is not supporting some features those were present in my default XAMPP installation on my development machine. Features not working are imagecreatefromstring function and email sending functionality because PHP installation on server does not have required files those are needed to include in order to create image from string and sending email.

我试图手动安装在服务器上的一些rpm包,但它们与现有packages.Also冲突,我不具备Linux的很多知识。

I have tried to manually install some rpm packages on server , but they conflict with existing packages.Also I don't have much knowledge of Linux .

我应该怎么做,我应该在服务器上创建一个新的PHP安装,这个时候,我想我应该去XAMPP for Linux安装,因为XAMPP安装提供安装的所有基本功能,pre。

What should I do should I create a new PHP installation on server and this time I think I should go with XAMPP for Linux installation , because XAMPP installation provides all basic functionality pre installed.

另一种方式如果可能的话,可以将需要手动各自的目录中这两项任务的一些required.php文件。不知道这种做法是否会奏效。

One More way if possible could be placing some required.php files required for these two tasks in respective directories manually. Don't know whether this approach will work.

请帮助,如果您有任何关于这方面的一些类似的经历或知识。 我与这些功能的脚本能正常工作本地Windows开发的机器。

Please help if you have some similar experience or knowledge regarding this. My scripts with these functionalities works fine on local windows development machine.

推荐答案

这里是 PHP GD安装手册

您也可以看到,如果您有它通过一个PHP文件安装

You can also see if you have it installed by making a php file with

<?php
phpinfo();
?>

和寻找GD部分,看是否GD支持已启用。

And looking for the GD section to see if "GD Support" is enabled.

这篇关于在Linux上启用GD PHP中imagecreatefromstring功能和发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆