1) Download FreeTDS
2) Extract
3) Configure $ Make
4) Add the compile flag for freetds to /var/cpanel/easy/apache/rawopts/all_php5
In this version, PHP 5 is the focus hence that specific file.
Add the following:
*If you are using other Builds of Apache or PHP you may refer to the following for the correct file to edit instead of /var/cpanel/easy/apache/rawopts/all_php5 such as the case here.
* Apache 1.3.x - /var/cpanel/easy/apache/rawopts/Apache1
* Apache 2.0.x - /var/cpanel/easy/apache/rawopts/Apache2
* Apache 2.2.x - /var/cpanel/easy/apache/rawopts/Apache2_2
* All PHP 4.x versions - /var/cpanel/easy/apache/rawopts/all_php4
* All PHP 5.x versions - /var/cpanel/easy/apache/rawopts/all_php5
* Mod_suPHP - /var/cpanel/easy/apache/rawopts/all_suphp
* Specific PHP Version - /var/cpanel/easy/apache/rawopts/PHP-X.X.X
5) Touch the following files as these are what are checked for by PHP. The following error will result if they are not in place.
configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory
Here are the files to create for PHP's conditional check:
6) Now run Easy Apache and make sure that Mysql, Mysql of the system, amd Mysqli are all selected.
7) Simply build.
I want to restate that at this time we do not support FreeTDS but we know many of you implement it's use. The main issue is with PHP not recognizing the build changes that FreeTDS developers have put in place. PHP's onditionals are still looking for 2 files that no longer exist in recent builds of FreeTDS hence PHP will always fail unless the files instructed to be `touched` here are in place.
Code:
wget http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
Code:
tar zfvx freetds-stable.tgz
Code:
cd freetds-*;
./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib --enable-dbmfix --with-gnu-ld; make ; make install
In this version, PHP 5 is the focus hence that specific file.
Add the following:
Code:
echo "--with-mssql=/usr/local/freetds" >> /var/cpanel/easy/apache/rawopts/all_php5
* Apache 1.3.x - /var/cpanel/easy/apache/rawopts/Apache1
* Apache 2.0.x - /var/cpanel/easy/apache/rawopts/Apache2
* Apache 2.2.x - /var/cpanel/easy/apache/rawopts/Apache2_2
* All PHP 4.x versions - /var/cpanel/easy/apache/rawopts/all_php4
* All PHP 5.x versions - /var/cpanel/easy/apache/rawopts/all_php5
* Mod_suPHP - /var/cpanel/easy/apache/rawopts/all_suphp
* Specific PHP Version - /var/cpanel/easy/apache/rawopts/PHP-X.X.X
5) Touch the following files as these are what are checked for by PHP. The following error will result if they are not in place.
configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory
Here are the files to create for PHP's conditional check:
Code:
touch /usr/local/freetds/lib/libtds.a
touch /usr/local/freetds/include/tds.hp
7) Simply build.
Code:
/scripts/easyapache
Last edited by a moderator: