{"id":515,"date":"2010-02-11T15:17:32","date_gmt":"2010-02-11T19:17:32","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=515"},"modified":"2013-03-20T08:42:24","modified_gmt":"2013-03-20T12:42:24","slug":"howto-enableinstall-t1lib-php-support-in-cpanel","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/howto-enableinstall-t1lib-php-support-in-cpanel","title":{"rendered":"Howto: Enable\/Install T1Lib PHP support in cPanel"},"content":{"rendered":"<blockquote><p><span style=\"color: #0000ff;\"><strong>How to enable\/install the T1Lib module on a cPanel server?<\/strong><\/span><\/p><\/blockquote>\n<p>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. <strong>&#8211;with-t1lib<\/strong> OR by including the module in the rawopts file.<\/p>\n<p><strong>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.<\/strong><\/p>\n<p>EasyApache during the compilation process, look for this file and compile any module mention in there along with the modules it offers. <strong>But before executing easyapache, install T1Lib manually.<\/strong><\/p>\n<p>SSH to your server as root user and goto a temporary directory<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># cd \/usr\/local\/src<\/strong><\/span><\/pre>\n<\/blockquote>\n<p>Download T1Lib<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># wget ftp:\/\/sunsite.unc.edu\/pub\/linux\/libs\/graphics\/t1lib-5.1.2.tar.gz<\/strong><\/span><\/pre>\n<\/blockquote>\n<p>Unpack the package and enter the directory<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># tar -zxf t1lib-5.1.2.tar.gz\r\n# cd t1lib-*<\/strong><\/span><\/pre>\n<\/blockquote>\n<p>Configure T1Lib<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># .\/configure<\/strong><\/span><\/pre>\n<\/blockquote>\n<p>Create the installation files and install<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># make\r\n# make install\r\n<\/strong><\/span><\/pre>\n<\/blockquote>\n<p><strong>Now, once T1Lib is installed, create a &#8220;all_php5&#8221; file under the &#8216;rawopts&#8217; directory<\/strong><\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># touch \/var\/cpanel\/easy\/apache\/rawopts\/all_php5<\/strong><\/span><\/pre>\n<\/blockquote>\n<p>Add the following line to it<\/p>\n<blockquote>\n<pre><strong><span style=\"color: #0000ff;\"># echo --with-t1lib=\/usr &gt;&gt; \/var\/cpanel\/easy\/apache\/rawopts\/all_php5<\/span>\r\n<\/strong><\/pre>\n<\/blockquote>\n<p>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<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># \/scripts\/easyapache<\/strong><\/span><\/pre>\n<\/blockquote>\n<p>Just go through the options you normally do and the custom module will be picked up automatically.<\/p>\n<p>Once Apache + PHP is compiled, you can either verify it from the command prompt<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># php -i | grep t1lib<\/strong><\/span><\/pre>\n<\/blockquote>\n<p>Or by creating a phpinfo.php file under the default directory of the server and access it via the web i.e.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong>http:\/\/yourserverip\/phpinfo.php<\/strong><\/span><\/pre>\n<\/blockquote>\n<p>You should see the &#8220;T1Lib&#8221; module under the GD section of that file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to enable\/install the T1Lib module on a cPanel server?<br \/>\nT1Lib 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. &#8211;with-t1lib OR by including the module in the rawopts file.<br \/>\nEasyapache 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.<br \/>\nEasyApache during the compilation process, look [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1145],"tags":[696,695,692,693,697,694],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/515"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=515"}],"version-history":[{"count":17,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/515\/revisions"}],"predecessor-version":[{"id":2185,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/515\/revisions\/2185"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}