Rebuild php, nothing happens?

spork

Verified User
Joined
Mar 30, 2007
Messages
7
I am trying to get GD recompiled with Freetype support on my DirectAdmin server (using advice contained in this thread and others). I first tried rebuilding php using the version sitting in the custom apache directory (4.4.4), then after that didn't work I updated the script and started using php version 4.4.6. One thing I noticed is that even after rebuilding php with 4.4.6, my phpinfo() still shows 4.4.4. The build script doesn't seem to be finishing it's job by actually putting the finished install anywhere, or perhaps something is screwed up in my configs and it's still looking at the old version?

I have been restarting apache after each build, so it's not that. :) Do I need to recompile apache to take advantage of my updated php version?
 
Last edited:
Do you, don't need to recompile it. What error do you get while doing "./build php n" ? If you don't get any error - maybe you don't have these lines:
Code:
--enable-gd-native-ttf \
--with-ttf \
--with-freetype-dir=/usr \

In configure.php.

P.S. make sure that freetype-devel is installed. (yum install -y freetype-devel).
 
Do you, don't need to recompile it. What error do you get while doing "./build php n" ? If you don't get any error - maybe you don't have these lines:
Code:
--enable-gd-native-ttf \
--with-ttf \
--with-freetype-dir=/usr \

In configure.php.

P.S. make sure that freetype-devel is installed. (yum install -y freetype-devel).

No errors, it concludes as you would expect it to upon a successful build:

Code:
...
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
PHP Installed.
[root@server customapache]#

Also, my configuration.php does have the lines you mentioned in the config.

spirit said:
You've also rebuild GD?

Yes, both separately and as a part of the php build.


The issue at the moment isn't that freetype isn't working, it's that it doesn't seem that php is updating at all. My phpinfo() shows 4.4.4, even though my last compilation without error was w/ php 4.4.6. I'm more concerned with getting the php install to update than getting freetype working at this point. :)
 
Do this:
Code:
# cd /usr/local/directadmin/customapache
# perl -pi -e 's/4.4.4/4.4.6/' build
# ./build php n

After this check:
Code:
# php -v
 
Back
Top