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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [solved] PHP won't install

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-16-2013, 09:02 AM
Cory Cory is offline
New Member
 
Join Date: Jan 2013
Posts: 6
Default [solved] PHP won't install

Hello,

After trying unsuccessfully, I'm unable to find a solution to recompile PHP 5.3.16 on LiteSpeed.

I'm not using a Control Panel or Apache (For Config Files)

I've successfully compiled this before when we were running MySQL 5.1 - but now after the upgrade apparently doesn't want to compile at all.

Actually all I'm trying to add is FreeType Support with GD, I know the configuration to add and this isn't the issue.

Code:
--with-freetype-dir=/usr
This is from phpinfo()

Code:
'./configure' '--prefix=/usr/local/lsws/lsphp5' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--enable-zip' '--with-bz2' '--with-curl=shared,/usr' '--with-gd' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/usr' '--with-mysql=/usr' '--with-mysqli=shared,/usr/lib64/mysql/mysql_config' '--with-openssl' '--with-openssl-dir=/usr' '--with-pic' '--with-png-dir=/usr' '--with-tidy=shared,/usr' '--with-xmlrpc=shared' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' '--with-litespeed' '--with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config'
This is what I'm adding to the LiteSpeed PHP Install:

Removed: './configure' '--prefix=/usr/local/lsws/lsphp5'
Added: '--with-freetype-dir=/usr'

Code:
'--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--enable-zip' '--with-bz2' '--with-curl=shared,/usr' '--with-freetype-dir=/usr' '--with-gd' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/usr' '--with-mysql=/usr' '--with-mysqli=shared,/usr/lib64/mysql/mysql_config' '--with-openssl' '--with-openssl-dir=/usr' '--with-pic' '--with-png-dir=/usr' '--with-tidy=shared,/usr' '--with-xmlrpc=shared' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' '--with-litespeed' '--with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config'
The Errors and Logs:

Full Log can be found at: http://pastie.org/pastes/5696964/text
Code:
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
**ERROR** Could not configure PHP build
Full log can be found at: http://pastie.org/pastes/5697031/text
Code:
cat /usr/local/lsws/phpbuild/php-5.3.16/config.log

configure:60660: checking for mysql_error in -lmysqlclient
configure:60679: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden  -L/usr/lib64  -Wl,-rpath,/usr/lib6464 -L/usr/lib6464 -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lbz2 -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lssl -lcrypto -ldl -lz 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 60668 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }
If you notice:
Code:
/usr/bin/ld: cannot find -lmysqlclient
Code:
[root@server15 etc]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
Then:

Code:
[root@server15 etc]# ls /etc/ld.so.conf.d/
kernel-2.6.32-220.13.1.el6.x86_64.conf
kernel-2.6.32-279.11.1.el6.x86_64.conf
qt-x86_64.conf
kernel-2.6.32-220.7.1.el6.x86_64.conf
kernel-2.6.32-279.9.1.el6.x86_64.conf
kernel-2.6.32-220.el6.x86_64.conf
libmysqlclient15-x86_64.conf
The file we should read:

Code:
[root@server15 etc]# cat /etc/ld.so.conf.d/libmysqlclient15-x86_64.conf
/usr/lib64/mysql
I did use: ldconfig to update it, no results.

After researching I've been unable to find a solution to get this PHP to compile.

I've tried changing this the configure config:

Code:
--with-mysql=/usr --with-mysqli=shared,/usr/lib64/mysql/mysql_config
Code:
--with-mysql --with-mysqli
Code:
--with-mysql=mysqlnd --with-mysqli=mysqlnd
Read somewhere that could of been because it needed 32bit MySQL, so I tried installing it. (Running x64) Obviously, No go. (32 Bit version, No longer installed.)

uname -a (CentOS 6)
Linux 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

MySQL 5.5 x64

Any assistance would be greatly appreciated.

Regards,
Cory

Last edited by NiteWave; 01-17-2013 at 12:02 AM..
Reply With Quote
 

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 11:13 PM.



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