![]() |
[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=/usrCode:
'./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'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'Full Log can be found at: http://pastie.org/pastes/5696964/text Code:
checking for MySQL support... yesCode:
cat /usr/local/lsws/phpbuild/php-5.3.16/config.logCode:
/usr/bin/ld: cannot find -lmysqlclientCode:
[root@server15 etc]# cat /etc/ld.so.confCode:
[root@server15 etc]# ls /etc/ld.so.conf.d/Code:
[root@server15 etc]# cat /etc/ld.so.conf.d/libmysqlclient15-x86_64.confAfter 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_configCode:
--with-mysql --with-mysqliCode:
--with-mysql=mysqlnd --with-mysqli=mysqlnduname -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 |
how about remove "--with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config" ?
|
Quote:
For sake of testing: I did: Code:
--with-pdo-mysql=shared,/usr/lib64/mysql/mysql_configCode:
--with-pdo-mysqlCode:
Removed It. |
what's current options (from phpinfo) ?
maybe different mysql package conflict: #rpm -qa|grep -i mysql |
Quote:
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'Code:
--with-freetype-dir=/usrAlso: Code:
[root@server15 bin]# rpm -qa|grep -i mysql |
how about remove following rpms?
php-mysql-5.3.3-14.el6_3.x86_64 libmysqlclient15-5.0.95-1.w5.x86_64 |
I've remove those you asked and same result.
I've tried downloading the libmysqlclient for MySQL 5.5 https://www.archlinux.org/packages/e...ibmysqlclient/ and got a different issue, but I think this may fix it as the .so files is .18 and the one I was running was .15 ^Nevermind - Looks like it's working now. Backup: Code:
mkdir /root/mysqlbakCode:
mkdir /usr/src/libmysqlclient/Code:
cd /usr/src/libmysqlclient/usr/Changed: Code:
'--with-mysql=shared,/usr/lib64/mysql/mysql_config'Code:
'--with-pdo-mysql=shared,/usr/bin/mysql_config'Code:
'--with-mysql=shared,/usr/bin/mysql_config'Code:
'--with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config'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=shared,/usr/bin/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/bin/mysql_config' |
thanks fot the sharing. useful for others when encountering same issue.
|
Quote:
Compiles fine successfully, now just have a issue where MySQL isn't connecting at all. All the pages are blank. Nothing in the error.log file. Compiling now and I reply if this fixes it. |
I did get "Blank Pages" and I just fixed it.
You don't necessarily need to the the libs like I did above; Code:
cd /usr/src/Config: 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-freetype-dir=/usr' '--with-gd' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/usr' '--with-mysql' '--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'Code:
extension_dir="/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626"Regards, Cory |
| All times are GMT -7. The time now is 02:03 PM. |