Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to enable Freetype for PHP's GD, and I'm getting absolutely nowhere trying to figure out how. According to this article I need to change the configuration command, but I have no clue where to find this file! I've been searching for hours and I'm really not getting anywhere, if anyone could help (or even set me on the right path to help myself) it'd be much appreciated. Thanks!

Our server is using CentOS release 5.8.

share|improve this question
    
Which Linux distribution are you using? The ./configure ... command is used when compiling PHP, and the exact method varies greatly depending on distro used. –  grawity Jun 6 '12 at 17:52
    
Please excuse my ignorance, I'm new to this networking thing so you may have to bear with me here :P I ran dmesg | head -1 and somewhere in there it said Red Hat... Is that right? –  ACobbs Jun 6 '12 at 18:00
    
It could be Red Hat (RHEL), but it might also be CentOS or Fedora... But they both are based on RHEL, so I guess the instructions would be the same on all three. You could also check the contents of /etc/redhat-release and/or /etc/os-release, if they exist. Finally, if you purchased the server, the Linux distro should have been mentioned in the server information. –  grawity Jun 6 '12 at 18:10
    
redhat-release worked, we're using CentOS release 5.8. Thanks! –  ACobbs Jun 6 '12 at 18:13

1 Answer 1

The "configuration command", ./configure, is run when compiling PHP. To change configure flags you have to download the PHP source then recompile it with the flags you need

How did you install PHP (from source or with a package manager?). If via a package manager, you should check phpinfo() for Freetype support since packagers usually enable most configure flags. You can also check your package manager for other PHP packages since one of them can have this flag enabled

share|improve this answer
    
I checked phpinfo(), and no, Freetype is not enabled. PHP came installed with the server when we purchased it so I didn't have to set anything up there. Are you saying if I reinstall PHP as if it were never installed in the first place, I can somehow modify the configure string then? –  ACobbs Jun 6 '12 at 18:04
    
@ACobbs: You have to uninstall PHP before you can install it again. Search your package manager [I have no experience with rpm] for a package named php, or php5.X or something similar and uninstall it. Then get the source from the official website and install it. You can also try to get a newer php version (if available) through rpm –  user49740 Jun 6 '12 at 18:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.