LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > How to Compile Mssql & Mysql in PHP

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2010, 04:01 PM
SilentCoder SilentCoder is offline
Member
 
Join Date: Sep 2010
Posts: 44
Default How to Compile Mssql & Mysql in PHP [RESOLVED]

I want to compile mssql and mysql in php 5.3.3 because i want mssql and mysql connections how do i do it?

Last edited by SilentCoder; 10-24-2010 at 05:48 AM..
Reply With Quote
  #2  
Old 10-03-2010, 05:57 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,297
mssql: need compile your php with --with-mssql and --enable-msdblib. please refer php manual - http://www.php.net/manual/en/mssql.installation.php

mysql: php manul - http://www.php.net/manual/en/mysql.installation.php
Reply With Quote
  #3  
Old 10-04-2010, 04:14 AM
SilentCoder SilentCoder is offline
Member
 
Join Date: Sep 2010
Posts: 44
Should i install FreeTDS then compile php with mssql?
Reply With Quote
  #4  
Old 10-04-2010, 04:39 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,297
you need install the develop package first. in CentOS, it's:
freetds-devel.x86_64 : Header files, libraries and development documentation for freetds

in debian, may need search the package first:
aptitude search freetds
the install it.
Reply With Quote
  #5  
Old 10-04-2010, 04:41 PM
SilentCoder SilentCoder is offline
Member
 
Join Date: Sep 2010
Posts: 44
Error i get while compiling PHP.ini. I know its missing libxml2 and even after i downloaded it it still gives same error.

checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
**ERROR** Could not configure PHP build
Reply With Quote
  #6  
Old 10-05-2010, 01:44 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,297
on CentOS,
Quote:
yum install libxml2-devel.x86_64
will resolve the issue.

not sure on debian, you may need "aptitude search libxml2" first
Reply With Quote
  #7  
Old 10-07-2010, 05:05 PM
SilentCoder SilentCoder is offline
Member
 
Join Date: Sep 2010
Posts: 44
Now i get this error:


checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.
**ERROR** Could not configure PHP build
Reply With Quote
  #8  
Old 10-07-2010, 07:15 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,297
same way to resolve these errors. in CentOS,
Quote:
yum install libxml2-devel.x86_64
Reply With Quote
  #9  
Old 10-09-2010, 12:08 PM
SilentCoder SilentCoder is offline
Member
 
Join Date: Sep 2010
Posts: 44
i changed my Os to CentOS and i get this error while compiling

Code:
Changing to build directory /usr/local/lsws/phpbuild/php-5.3.3
Configuring PHP build (2-3 minutes)
./configure '--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-litespeed'
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
**ERROR** Could not configure PHP build
Reply With Quote
  #10  
Old 10-09-2010, 01:52 PM
SilentCoder SilentCoder is offline
Member
 
Join Date: Sep 2010
Posts: 44
Compiling Problem Resolved. Thank You.

Last edited by SilentCoder; 10-10-2010 at 05:53 AM..
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

Forum Jump


All times are GMT -7. The time now is 01:02 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.