#1 (permalink)  
Old 07-07-2003, 02:56 PM
Registered User
 
Join Date: Apr 2003
Posts: 7
kpate
unixODBC and PHP

How do I compile php with unixODBC using /scripts/easyapache?

cPanel.net Support Ticket Number:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-07-2003, 03:46 PM
Registered User
 
Join Date: Aug 2002
Posts: 1,052
ciphervendor
Download & compile unixODBC:
Code:
cd /usr/local/src/
wget http://unc.dl.sourceforge.net/source...-2.0.11.tar.gz
tar zxf unixODBC-2.0.11.tar.gz
cd unixODBC-2.0.11
./configure --prefix=/usr/local/unixODBC 
make 
make install
You may have to fulfill dependancies before the above will compile. Check to make sure you have QT compiled on your box; if not:
Code:
cd /usr/local/src/
wget ftp://ftp.trolltech.com/qt/source/qt...e-3.1.2.tar.gz
tar zxf qt-x11-free-3.1.2.tar.gz
cd qt-x11-free-3.1.2
./configure
make
make install
Once you've got all of the above compiled, you will need to go to the PHP source directory within the buildapache directory:
Code:
cd /home/cpapachebuild/buildapache/php-4.3.2
make distclean
./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-bcmath --enable-calendar --with-curl --with-swf=/usr/local/flash --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-imap --with-imap-ssl --with-kerberos --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes --with-mysql=/usr --with-pear --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --with-zlib --with-unixODBC
make
make install
If all went well the PHP compile should exit without error and then you need to restart Apache.
Code:
service httpd restart
Good luck. As always, no warranties and be sure to backup your configs first.

cPanel.net Support Ticket Number:

Last edited by ciphervendor; 07-07-2003 at 04:12 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:08 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc