#41422 [Fbk->Opn]: mysql.default_socket and configure --with-mysql-sock don't work

From: Date: Thu, 17 May 2007 20:47:30 +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-112781@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: 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" \ Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2007-05-17 20:21:48] tony2001@php.net --with-mysql="/data/dbms/mysql4/bin" <-- this does not look like installation _prefix_ ------------------------------------------------------------------------ [2007-05-17 20:16:51] tiago dot tuxkiller at gmail dot com Hello Tony. I was using "php-4.4.7.tar.gz"... and I've tried "make clean" before make && make install. How don't works, I've tried with "php4-STABLE-200705171830.tar.gz" in another directory, with restart on my apache and etc... But don't works in any tried, unfortunately. Thanks ------------------------------------------------------------------------ [2007-05-17 20:11:25] tony2001@php.net make clean && make ------------------------------------------------------------------------ [2007-05-17 20:06:46] tiago dot tuxkiller at gmail dot com Description: ------------ Hello, I'm using "PHP Version 4.4.8-dev" (php4-STABLE-200705171830.tar.gz) and still with this problem: (http://bugs.php.net/bug.php?id=32081) ./configure ... --with-mysql="/data/dbms/mysql4/bin" \ --with-mysql-sock="/tmp/mysql4.sock" \ ... php.ini: mysql.default_port = 3309 mysql.default_socket = /tmp/mysql4.sock Result of phpinfo(): Client API version 4.1.22 MYSQL_MODULE_TYPE external MYSQL_SOCKET /tmp/mysql.sock (I'm using symlinks now... but if I need of another php4 I'll be on problem :-) Reproduce code: --------------- Compile one PHP4 and try to change the path of mysql default sock. Expected result: ---------------- The path can be changed for one new. Actual result: -------------- The localization of sock was "hardcoded" on someplace :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41422&edit=1

« previous php.bugs (#112781) next »