Text Books Short Manuals That You Really Need!

3Jan/100

compiling php with modules to php with custombuild (DA)

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

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.