Add custom modules to php with custombuild

If you want to add any extra modules to php, they'll most likely need to be compiled in. Any module that needs to be compiled in will have a –with-module type flag which will need to be used. To add this flag, run the following:

cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -fp configure/ap2/configure.php5 custom/ap2/configure.php5
#add your --with-module line to the end of the custom/ap2/configure.php5 file,
# and make sure the \ character exists at the end of all lines except the last one.
./build php n

change configure.php5 to configure.php4 if you're using php4. If you're using suphp, the paths would be configure/suphp/configure.php5 and custom/suphp/configure.php5.

Restart apache:

RedHat:

/sbin/service httpd restart

FreeBSD:

/usr/local/etc/rc.d/httpd restart
 
scripts/php.txt · Last modified: 2010/02/22 06:55 by muscardin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Please visit Automatic Backlinks to start earning free backlinks Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki