{"id":716,"date":"2012-08-06T04:27:08","date_gmt":"2012-08-06T10:27:08","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=716"},"modified":"2018-10-04T04:40:38","modified_gmt":"2018-10-04T10:40:38","slug":"how-to-install-custom-apache-or-php-modules-via-easy-apache-on-cpanel-servers","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/how-to-install-custom-apache-or-php-modules-via-easy-apache-on-cpanel-servers\/","title":{"rendered":"How to Install custom Apache or PHP modules via easy apache on Cpanel servers?"},"content":{"rendered":"<p>We can install additional modules not listed in the cPanel easyapache config options .To add custom module, we must know the version of Apache and PHP to which we need to add the module. Easy Apache allows us to specify any configure option supported by Apache and\/or PHP. Place the option in the appropriate file; the files are as follows:<\/p>\n<blockquote><p>Apache 1.3.x \/var\/cpanel\/easy\/apache\/rawopts\/Apache1<br \/>\nApache 2.0.x \/var\/cpanel\/easy\/apache\/rawopts\/Apache2<br \/>\nApache 2.2.x \/var\/cpanel\/easy\/apache\/rawopts\/Apache2_2<br \/>\nAll PHP 4.x versions \/var\/cpanel\/easy\/apache\/rawopts\/all_php4<br \/>\nAll PHP 5.x versions \/var\/cpanel\/easy\/apache\/rawopts\/all_php5<br \/>\nMod_suPHP \/var\/cpanel\/easy\/apache\/rawopts\/all_suphp<br \/>\nSpecific PHP Version \/var\/cpanel\/easy\/apache\/rawopts\/PHP-X.X.X<\/p><\/blockquote>\n<p>Adding entries to the appropriate file, easyapache will pick them up.<\/p>\n<p><strong>For example, if we need to add LDAP support to PHP5,<\/strong><\/p>\n<p>Create all_php5 file under \/var\/cpanel\/easy\/apache\/rawopts.<br \/>\nIn this file please add the line &#8211;with-ldap<\/p>\n<blockquote><p>echo &#8211;with-ldap &gt;&gt; \/var\/cpanel\/easy\/apache\/rawopts\/all_php5<\/p><\/blockquote>\n<p>Note: Please make sure that the file having only one item per line.<\/p>\n<p>Then rebuild the Apache\/PHP. It will include the ldap module.<\/p>\n<p>If you need to avoid this module please use the &#8211;skip-rawopts option with easy apache command.<\/p>\n<blockquote><p>#\/scripts\/easyapache &#8211;skip-rawopts<\/p><\/blockquote>\n<p>WHM interface to skip these custom flags:<\/p>\n<p>1. Click the Help link on the first EasyApache (Apache Update) screen.<br \/>\n2. Check the Do not use raw opts support checkbox.<br \/>\n3. Click Submit.<br \/>\nReturn to the previous screen and build the profile.<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We can install additional modules not listed in the cPanel easyapache config options .To add custom module, we must know the version of Apache and PHP to which we need&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-716","post","type-post","status-publish","format-standard","hentry","category-miscellaneous"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=716"}],"version-history":[{"count":6,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/716\/revisions"}],"predecessor-version":[{"id":3254,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/716\/revisions\/3254"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}