admin | Category: Installations
How to enable/install the T1Lib module on a cPanel server?
T1Lib is mainly required with GD module but there is no option to enable T1Lib via easyapache OR to install it using yum. You will either have to compile PHP manually with the T1lib option i.e. –with-t1lib OR by including the module in the rawopts file.
Easyapache mostly offers all the modules that is basically required but some unique modules like T1lib is not offered in which case, you can add it to rawopts file.
EasyApache during the compilation process, look for this file and compile any module mention in there along with the modules it offers. But before executing easyapache, install T1Lib manually.
SSH to your server as root user and goto a temporary directory
# cd /usr/local/src
Download T1Lib
# wget ftp://sunsite.unc.edu/pub/linux/libs/graphics/t1lib-5.1.2.tar.gz
Unpack the package and enter the directory
# tar -zxf t1lib-5.1.2.tar.gz
# cd t1lib-*
Configure T1Lib
# ./configure
Create the installation files and install
# make
# make install
Now, once T1Lib is installed, create a “all_php5” file under the ‘rawopts’ directory
# touch /var/cpanel/easy/apache/rawopts/all_php5
Add the following line to it
# echo --with-t1lib=/usr >> /var/cpanel/easy/apache/rawopts/all_php5
Make sure to add other custom modules one per line if you need them. Now, the next step is to rebuild Apache + PHP via the usual method
# /scripts/easyapache
Just go through the options you normally do and the custom module will be picked up automatically.
Once Apache + PHP is compiled, you can either verify it from the command prompt
# php -i | grep t1lib
Or by creating a phpinfo.php file under the default directory of the server and access it via the web i.e.
http://yourserverip/phpinfo.php
You should see the “T1Lib” module under the GD section of that file.
Comments Off on Howto: Enable/Install T1Lib PHP support in cPanel