Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling GD in PHP on linux for imagecreatefromstring function and sending email

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.

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 .

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.

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.

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

like image 246
Abhi Avatar asked Mar 09 '11 04:03

Abhi


1 Answers

here is the PHP GD Installation Manual

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

<?php
phpinfo();
?>

And looking for the GD section to see if "GD Support" is enabled. enter image description here

like image 112
Joe Avatar answered Oct 16 '22 20:10

Joe