Computer Magic
Software Design Just For You
 
 



Cpanel and custom Apache or PHP modules

холови гарнитуриRecently I had to recompile PHP to add additional support for modules not listed in the CPanel easyapache config options. CPanel has thought of most things even if they haven’t created a nice GUI interface for them yet.

In this case, you can add custom parameters to add to your apache or PHP compile.

By adding entries to the appropriate file, easyapache will pick them up when you use it’s wizard to rebuild your web stack.

For Apache 1.3.x — /var/cpanel/easy/apache/rawopts/Apache1
For Apache 2.0.x — /var/cpanel/easy/apache/rawopts/Apache2
For Apache 2.2.x — /var/cpanel/easy/apache/rawopts/Apache2_2
For all PHP 4.x versions — /var/cpanel/easy/apache/rawopts/all_php4
For all PHP 5.x versions — /var/cpanel/easy/apache/rawopts/all_php5
For Mod_suPHP — /var/cpanel/easy/apache/rawopts/all_suphp
For a specific PHP Version — /var/cpanel/easy/apache/rawopts/PHP-X.X.X

For example, to add LDAP support to PHP5, you would do the following…
echo “–with-ldap” >> /var/cpanel/easy/apache/rawopts/all_php5
echo “–with-ldap-sasl” >> /var/cpanel/easy/apache/rawopts/all_php5

Next time you rebuild Apache/PHP5, it will include LDAP and LDAPS modules.

The documentation on this is at: http://docs.cpanel.net/twiki/bin/view/EasyApache3/CustomConfigureFlags

Comments are closed.


Home | My Blog | Products | Edumed | About Us | Portfolio | Services | Location | Contact Us | Embedded Python | College Courses | Quick Scan | Web Spy | EZ Auction | Web Hosting
This page has been viewed 867969 times.

Copyright © 2005 Computer Magic And Software Design
(360) 417-6844
computermagic@hotmail.com
computer magic