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

10,286

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

Share:
10,286
Abhi
Author by

Abhi

I love {}Coding and love driving my Car to places full of nature. :) Currently Working as Sr. Azure Consultant on Contract in my Dream Company in Hyderabad, India. :)

Updated on June 19, 2022

Comments

  • Abhi
    Abhi almost 2 years

    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.

  • Abhi
    Abhi about 13 years
    I am not having any such GD support column in my phpinfo file
  • Abhi
    Abhi about 13 years
    Thanks man task completed successfully after installing gd package
  • m3nda
    m3nda about 9 years
    I have same issue here, php was compiled --with gd but is not GD support column is shown into phpinfo() output. Also, getting uknown function using imagecreatefromstring. php-gd package is already installed. Stucked here.