my HD crashed on my old fedora Core 1 box.
I rebuilt it with Debian Linux
I am working on rebuilding the box.
I have most of it back up and running, but am having problems with mysql.
I grabbed the most current source of mysql and compiled and installed it. Tried then compiling PHP and PHP configure was complaining about not being able to find the mysql header files even though I verified that they were where I told PHP were they were. So I got fed up and did apt-get install mysql-server. This installed mysql just fine. Then there was a reboot.
Then i compiled PHP 4.3.11
here's my config:
'./configure' '--with-apxs=/www/bin/apxs' '--with-mysql' '--with-freetype-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-pcre-regex=/usr/local/lib' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-wddx' '--with-pear=/usr/share/pear' '--enable-calendar' '--with-mssql=/usr/local/freetds' '--with-zlib'
I can now from command line log in to mysql without problems. but from my scripts I get, "mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /www/htdocs/login.php on line 6"
Any help would be appreciated.