Dang how did I not think of that. I am offically captain stupid.
On 6/10/05, Jason Crawford <[EMAIL PROTECTED]> wrote: > On 6/9/05, John Tate <[EMAIL PROTECTED]> wrote: > > Right, I created a hardlink of the socket into > > /var/www/mysql/mysql.sock and changed this directive in php.ini to the > > following... > > > > mysql.default_socket = /var/www/mysql/mysql.sock > > There is part of the problem, as when apache is chrooted, it doesn't > see /var/www, it would only see /mysql/mysql.sock > Personally, I would just have mysql listen on localhost, and then > wouldn't worry at all about sockets and hard links, but that is just a > personal preference. I bet if you change the /var/www/mysq/mysql.sock > in php.ini to /mysql/mysql.sock it will work. I suggest you read up on > chroot() some (man 2 chroot, possibly man 8 chroot as well). > > > > > I however could not find the my.cnf file, where is it on OpenBSD 3.6, > > I did a "find / | grep my.cnf" which showed up nothing. > > > > From phpinfo()... > > > > MySQL Support enabled > > Active Persistent Links 0 > > Active Links 0 > > Client API version 4.0.20 > > MYSQL_MODULE_TYPE external > > MYSQL_SOCKET /var/run/mysql/mysql.sock > > MYSQL_INCLUDE -I/usr/local/include/mysql > > MYSQL_LIBS -L/usr/local/lib -lmysqlclient > > > > Directive Local Value Master Value > > mysql.allow_persistent On On > > mysql.connect_timeout 60 60 > > mysql.default_host no value no value > > mysql.default_password no value no value > > mysql.default_port no value no value > > mysql.default_socket /var/www/mysql/mysql.sock > > /var/www/mysql/mysql.sock > > mysql.default_user no value no value > > mysql.max_links Unlimited Unlimited > > mysql.max_persistent Unlimited Unlimited > > mysql.trace_mode Off Off > > > > -- > > John "Rockstar" Tate > > Mobile: 0413 348 815 (Yep, old number, but I have a new phone) > > > > New Personal Website: http://kintaro.noobify.com > > > > > -- John "Rockstar" Tate Mobile: 0413 348 815 (Yep, old number, but I have a new phone) New Personal Website: http://kintaro.noobify.com