Freetype Install for Directadmin
From KoshWiki
Contents |
Origin
Freetype install instructions for CentOS/DirectAdmin[1]
Step One : Install Freetype Development libraries
# yum install freetype-devel
Setting up Install Process Setting up repositories update 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files Excluding Packages in global exclude list Finished Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for freetype-devel to pack into transaction set. freetype-devel-2.1.9-1.i3 100% |=========================| 22 kB 00:00 ---> Package freetype-devel.i386 0:2.1.9-1 set to be updated --> Running transaction check --> Processing Dependency: zlib-devel for package: freetype-devel --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for zlib-devel to pack into transaction set. zlib-devel-1.2.1.2-1.2.i3 100% |=========================| 6.2 kB 00:00 ---> Package zlib-devel.i386 0:1.2.1.2-1.2 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: freetype-devel i386 2.1.9-1 base 524 k Installing for dependencies: zlib-devel i386 1.2.1.2-1.2 base 89 k Transaction Summary ============================================================================= Install 2 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 613 k Is this ok [y/N]: y Downloading Packages: (1/2): zlib-devel-1.2.1.2 100% |=========================| 89 kB 00:01 (2/2): freetype-devel-2.1 100% |=========================| 524 kB 00:04 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: zlib-devel ######################### [1/2] Installing: freetype-devel ######################### [2/2] Installed: freetype-devel.i386 0:2.1.9-1 Dependency Installed: zlib-devel.i386 0:1.2.1.2-1.2 Complete!
Step Two : Edit the DirectAdmin PHP Configure
From here these instructions are as per the DirectAdmin help site[2], with some more precise instructions from me
# cd /usr/local/directadmin/customapache/ # vi configure.php
Where we add the freetype directory to the configure statement, this shouldn't be ncessary, but if you skip this and have problems, come back to here.
# diff /tmp/configure.php configure.php 19a20 > --with-freetype-dir=/usr/include/freetype2/ \ Make Sure to add the following line: --with-freetype (Worked for me on Fedora Core 4)
Step Three : Build the PHP Sources
Now we build like there is no tomorrow !, first we clean the build
# ./build clean All clean!
Then we start the compile.
# ./build php
The output is rather long, so I gave it it's own article Output - Building DirectAdmin PHP on CentOS
Step Four : Restart the HTTPD Service
The final step is to restart the HTTPD service, on CentOS it is the same as Red Hat
# /sbin/service httpd restart
Stopping httpd: [ OK ] Remaining processes: 3647 3649 3650 Stopping httpd: [ OK ] Starting httpd: [ OK ]
Final Step : Check the PHPInfo()
Your PHPInfo() should have something like this.
| GD | |
|---|---|
| GD Support | enabled |
| GD Version | bundled (2.0.28 compatible) |
| FreeType Support | enabled |
| FreeType Linkage | with freetype |
| GIF Read Support | enabled |
| GIF Create Support | enabled |
| JPG Support | enabled |
| PNG Support | enabled |
| WBMP Support | enabled |
| XBM Support | enabled |
And that should be it.
