#41422 [Fbk->Opn]: mysql.default_socket and configure --with-mysql-sock don't work
| From: | tiago dot tuxkiller at gmail dot com | Date: | Thu, 17 May 2007 21:24:50 +0000 |
| Subject: | #41422 [Fbk->Opn]: mysql.default_socket and configure --with-mysql-sock don't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112785@lists.php.net to get a copy of this message | ||
ID: 41422
User updated by: tiago dot tuxkiller at gmail dot com
Reported By: tiago dot tuxkiller at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: PHP options/info functions
Operating System: Linux x64
PHP Version: 4CVS-2007-05-17 (snap)
New Comment:
My prefix is really different, sorry. But we need to use on this way.
If I don't say "/usr/lib64" the PHP will be compiled using "/usr/lib"
(32bits)
This is my php.ini:
...
mysql.default_port = 3309
mysql.default_socket = /tmp/mysql4.sock
...
Thanks
Previous Comments:
------------------------------------------------------------------------
[2007-05-17 20:58:33] tony2001@php.net
And what is the value of mysql.default_socket in your php.ini ?
------------------------------------------------------------------------
[2007-05-17 20:57:56] tony2001@php.net
>--prefix="/data/php/php4+mysql4/bin-4.4.7" \
Your ../bin prefixes are totally wrong.
--with-freetype-dir="/usr/lib64" \
--with-jpeg-dir="/usr/lib64" \
"/usr/lib64" is NOT a prefix.
"/usr" is.
>--with-mysql-sock="/tmp/mysql4.sock" \
What do you get with this after you finish 'make':
./sapi/cli/php -i | grep sock
?
------------------------------------------------------------------------
[2007-05-17 20:56:49] tiago dot tuxkiller at gmail dot com
[root@sites-16 source]# ../bin/bin/php -i | grep sock
Configure Command => './configure'
'--prefix=/data/php/php4+mysql4/bin-4.4.7'
'--with-freetype-dir=/usr/lib64' '--with-zlib'
'--with-jpeg-dir=/usr/lib64' '--with-gd'
'--with-mysql=/data/dbms/mysql4/bin'
'--with-mysql-sock=/tmp/mysql4.sock' '--with-ttf'
'--with-config-file-path=/data/php/php4+mysql4/bin-4.4.7'
'--with-apxs2=/data/http_servers/apache2+mysql4+php4+mod_auth/bin-2.2.4/bin/apxs'
'--with-mime-magic=/data/http_servers/apache2+mysql4+php4+mod_auth/bin-2.2.4/conf/magic'
MYSQL_SOCKET => /tmp/mysql.sock
mysql.default_socket => /tmp/mysql4.sock => /tmp/mysql4.sock
default_socket_timeout => 60 => 60
Please, note the MYSQL_SOCKET has different from mysql.default_socket.
Thanks
------------------------------------------------------------------------
[2007-05-17 20:47:29] tiago dot tuxkiller at gmail dot com
Hello,
I have 02 MySQL's (v4 and v5) running on this server, and this PHP must
see the mysql 4.1.22 that I've compiled with:
./configure \
"--prefix=/data/dbms/mysql4/bin" \
"--enable-thread-safe-client" \
"--with-pthread" \
[mysqld]
port = 3309
socket = /tmp/mysql4.sock
This is the line of "configure" that I've used on PHP 4.4.7/-dev:
./configure \
--prefix="/data/php/php4+mysql4/bin-4.4.7" \
--with-freetype-dir="/usr/lib64" \
--with-zlib \
--with-jpeg-dir="/usr/lib64" \
--with-gd \
--with-mysql="/data/dbms/mysql4/bin" \
--with-mysql-sock="/tmp/mysql4.sock" \
--with-ttf \
--with-config-file-path="/data/php/php4+mysql4/bin-4.4.7" \
--with-apxs2="/data/http_servers/apache2+mysql4+php4+mod_auth/bin-2.2.4/bin/apxs"
\
--with-mime-magic="/data/http_servers/apache2+mysql4+php4+mod_auth/bin/conf/magic"
\
------------------------------------------------------------------------
[2007-05-17 20:26:02] tony2001@php.net
Cannot reproduce:
./configure --disable-all --with-mysql
--with-mysql-sock=/whatever/you/want && make
./sapi/cli/php -i | grep what
Configure Command => './configure' '--disable-all' '--with-mysql'
'--with-mysql-sock=/whatever/you/want'
MYSQL_SOCKET => /whatever/you/want
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/41422
--
Edit this bug report at http://bugs.php.net/?id=41422&edit=1