Re: [PHP-DEV] Re: Bug #12994 Updated: MySQL socket problem From: Jani Taskinen (sniper <email protected>)
Date: 08/28/01

Either set the location with --with-config-file-path=PATH
or put the php.ini file into /opt/ezpublish/php-4.0.6/lib/
(there is an example php.ini in the distribution package, php.ini-dist)

Ask further support questions on php-install <email protected> or
php-general <email protected>

Thank you.

--Jani

On Tue, 28 Aug 2001, Sten Thorstensen wrote:

>
>Where do I find php.ini ?
>This is my configure line:
>./configure --prefix=/opt/ezpublish/php-4.0.6
>--with-mysql=/opt/ezpublish/mysql-3.23.40
>--with-apxs=/opt/ezpublish/apache-1.3.20/bin/apxs
>--enable-track-vars --enable-trans-sid
>--disable-magic-quotes --with-dom --with-zlib
>
>
>On Tuesday 28 August 2001 11:16, Bug Database wrote:
>> ID: 12994
>> Updated by: sniper
>> Reported By: st <email protected>
>> Old Status: Open
>> Status: Bogus
>> Old Bug Type: *Compile Issues
>> Bug Type: MySQL related
>> Operating System: red hat 7.1
>> PHP Version: 4.0.6
>> New Comment:
>>
>> Please use this php.ini directive instead of tampering with
>> configure:
>>
>> ; Default socket name for local MySQL connects. If empty, uses the
>> built-in MySQL defaults. mysql.default_socket =
>>
>>
>> Not a bug.
>>
>>
>> Previous Comments:
>> ------------------------------------------------------------------------
>>
>> [2001-08-28 05:05:12] st <email protected>
>>
>> Hi!
>>
>> When I edit ./php-4.0.6/ext/mysql/config.m4n to this:
>> [...]
>> AC_DEFUN(PHP_MYSQL_SOCK,[
>> AC_MSG_CHECKING(for MySQL UNIX socket)
>> MYSQL_SOCK=/opt/ezpublish/mysql.sock
>> # for i in \
>> # /var/run/mysqld/mysqld.sock \
>> # /var/tmp/mysql.sock \
>> # /var/lib/mysql/mysql.sock \
>> # /var/mysql/mysql.sock \
>> # ; do
>> # if test -r $i; then
>> # MYSQL_SOCK=$i
>> # fi
>> # done
>> AC_DEFINE_UNQUOTED(MYSQL_UNIX_ADDR, "$MYSQL_SOCK", [ ])
>> [...]
>>
>> then I run ./buildconf and
>> ./configure --prefix=/opt/ezpublish/php-4.0.6
>> --with-mysql=/opt/ezpublish/mysql-3.23.40
>> --with-apxs=/opt/ezpublish/apache-1.3.20/bin/apxs
>> --enable-track-vars --enable-trans-sid
>> --disable-magic-quotes --with-dom --with-zlib
>>
>> then make ; make install
>>
>>
>> Why does it still use /var/lib/mysql.soc etc ? I don't
>> have /opt/ezpublish/mysql.sock wich I sat to MYSQL_SOCK
>> but it still work well..
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>> ATTENTION! Do NOT reply to this email!
>> To reply, use the web interface found at
>> http://bugs.php.net/?id=12994&edit=2
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>