SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Jan 2008
    Location
    Palm Harbor, FL
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Call to undefined function imagecreatetruecolor()

    My web host recently had me recompile Apache in attempt to fix an issue on my server. Ever since, my thumbnail generation script returns this error:

    Code:
    Fatal error: Call to undefined function imagecreatetruecolor()
    Do I need to reactivate/reinstall GD? If so, how do I do this?

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,198
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    In your Apache httpd file find

    ;extension=php_gd2.dll

    and simply remove the ; before it. If your on a UNIX system read this http://www.cyberciti.biz/faq/ubuntu-...ort-to-apache/

  3. #3
    SitePoint Addict
    Join Date
    Jan 2008
    Location
    Palm Harbor, FL
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SgtLegend View Post
    In your Apache httpd file find

    ;extension=php_gd2.dll

    and simply remove the ; before it. If your on a UNIX system read this http://www.cyberciti.biz/faq/ubuntu-...ort-to-apache/
    I am not very familiar with Linux or server maintenance. I am running on a CentOS server. Which httpd file would typically be the one I should edit?

  4. #4
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,198
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    httpd.conf is the file you need to edit but because your using CentOS which is a Unix system you will need to run the sudo command as only the windows server comes with GD library pre-installed

  5. #5
    SitePoint Enthusiast
    Join Date
    May 2010
    Location
    Netherlands
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Morthian View Post
    I am not very familiar with Linux or server maintenance. I am running on a CentOS server. Which httpd file would typically be the one I should edit?
    The default httpd.conf location on CentOS is /etc/httpd/httpd.conf
    Use an editor like vim or nano to adjust the config file as suggested by SgtLegend.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •