Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    7

    Default unixODBC and PHP

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

    cPanel.net Support Ticket Number:

  2. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,052

    Default

    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 05:12 PM.

Similar Threads & Tags
Similar threads

  1. Individual php.ini files for PHP FCGI and PHP CGI
    By Miraenda in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-22-2011, 09:55 AM
  2. Two php extentions (index.php.php)
    By mcyates in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-02-2007, 10:30 PM
  3. New VPS site loading but clicking php link just redirect to index.php
    By ozegreatdeals in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-20-2006, 07:38 AM
  4. php safe_mode on and /usr/lib/php/DB.php error
    By naox in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-09-2005, 06:49 PM
  5. php unixODBC
    By holymanjay in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-06-2002, 10:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube