Hey, guys
I'm struggling against my Slack for these last two days. I'm trying to install Apache 2, PHP5 and Mysql 5.0. Everything is ok with Apache and MySQL. They're both running and I've managed to create DBs and tables in MySQL. The problem is with PHP. I'm trying to install and run a web-based bibliography manager, called Aigaion. And I get a blank page when I point to its index.php. Apache error log reports the following message:
[Tue Nov 28 09:19:40][error][client 127.0.0.1] PHP Fatal Error: Call to undefined function mysql_connect() in /var/www/htdocs/aigaion/_global.php on line 98
I've got packages from
www.linuxpackages.net, more specifically the following ones:
- apache2-2.0.55-i486-1jim
- php-5.1.6-i486-1kjz
- mysql-5.0.16-i486-1
I'm running Slackware 10.1 in a old K6-II (somewhat overclocked, but stable) and I needed once to do a reinstall, due to a HD change. In the older install I've got all this stuff working (although I remember that I've had similar problems).
Well, after trying all that I knew and search for answer here and elsewhere, what I can conclude up to now is:
1) the config files are all right. The lines corresponding to mysql extensions are uncommented.
2) It seems that the php package is the right one. I've installed another before, with the compile options for mysql extension not set to 'shared'. It refused to load even with the all the extension lines commented. I don't know the reason, but I downloaded the other package, with options set to shared and libphp5.so could be correctly loaded by Apache. phpinfo() reports the following compilation options: --with-mysql=shared,/usr --with-mysqli=shared
3) I have mysql.so mysqli.so pdo_mysql.so in the php extensions folder, so this is not the problem.
4) Slackware MySQL package installs the libmysqlclient libraries, I don't need to install these separately.
My hypothesis was that these packages were broken, had broken dependencies or was of a different kind from those needed by php-mysql. So, I've typed "ldd mysql.so", it reported a broken dependency with libmysqlclient.so.15 (which was in fact installed). I've made a link from the /usr/lib/ folder to /usr/lib/mysql folder contents, but now I get the following warning when I run "ldd mysql.so":
./mysql.so: /usr/lib/libmysqlclient.so.15: no version information available (required by ./mysql.so)
[EDIT: In the part of phpinfo() related to the configuration of extensions there is only configuration options to mysqli extension, but mysql_connect() is a function defined in mysql.so extension.]
I don't know anything else to do. I feel that I'm near the solution, but I don't know how to fix this specific problem.
Well, I wellcome any idea, and ask you to be forgiving with my english.