
| ||
| Note: If you want the latest version of php and apache, it's recommended you use custombuild: http://files.directadmin.com/services/custombuild/1.1 The following guide is only to be used if if you still want to use the old apache versions... basically, only if you still need FrontPage. To update to php5, the build script will still work. All that you need to do is swap out the version, compile normally and make a few modifications to your /etc/httpd/conf/httpd.conf file. 1) download the php-5.2.4.tar.gz from php.net into your customapache directory: cd /usr/local/directadmin/customapache 2) change your build script for the new version: nano build change: PHP_VER=4.4.4to: PHP_VER=5.2.4 3) build php normally: ./build clean ./build clean 4) edit /etc/httpd/conf/httpd.conf Remove any referce of: LoadModule php4_module modules/libphp4.so and make sure they're replaced with: LoadModule php5_module modules/libphp5.so Remove any reference of: AddModule mod_php4.c and replace with:AddModule mod_php5.c 5) find this piece of code: <IfModule mod_dir.c> replace with: <IfModule mod_dir.c> Find this: <IfModule mod_php4.c> replace with: <IfModule mod_php5.c> If you get the following error while compiling php: checking whether to enable LIBXML support... yes --with-xml \ to: --disable-libxml \ yum -y install libxml2-devel libxslt-devel FreeBSD:pkg_add -r libxml2 wget http://files.directadmin.com/services/customapache/libxml2-2.6.30.tar.gz |
![]()
© 2003 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST