fatTrav
08-23-2004, 06:04 PM
I have the standard mysql/apache/php isntalled from the Slackware 10 isntaller.
phpinfo() returns that it was configured with: './configure' '--prefix=/usr' '--disable-static' '--with-apxs=/usr/sbin/apxs' '--sysconfdir=/etc' '--enable-discard-path' '--with-config-file-path=/etc/apache' '--enable-safe-mode' '--with-openssl' '--with-mhash' '--enable-bcmath' '--with-bz2' '--with-pic' '--enable-calendar' '--enable-ctype' '--with-gdbm' '--with-db3' '--enable-dbase' '--enable-ftp' '--with-iconv' '--with-exif' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png' '--with-gmp' '--with-mysql=shared,/usr' '--with-pgsql=/usr/local/pgsql' '--with-gettext=shared,/usr' '--with-expat-dir=/usr' '--with-xml' '--enable-wddx' '--with-mm=/usr' '--enable-trans-sid' '--enable-shmop' '--enable-sockets' '--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared' '--disable-debug' '--with-zlib=/usr'
However if I scroll down that page to view the loaded modules, pgsql is loaded just fine but there is no MySql.
Google'ing returnd nothing super helpful, at least that I found.
% php -r 'echo mysql_connect()."\n";'
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/extensions/mysql.so' - /usr/lib/php/extensions/mysql.so: undefined symbol: OnUpdateLong in Unknown on line 0
PHP Warning: Unknown(): (null): Unable to initialize module
Module compiled with module API=20040412, debug=0, thread-safety=0
PHP compiled with module API=20020429, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Fatal error: Call to undefined function: mysql_connect() in Command line code on line 1
MySQL did NOT work straight out of the box with the install. I had to change the perms and groups of the mysql dirs in /lib/mysql to even get mysqld to start. Before I did that, it would just exit right away. Mysqld runs just fine now.
The end goal is to setup phpMyAdmin. Any information on how to get php to force load this module is appreciated.
Oh, and in my php.ini (which is the stanard one for slackware) i do load the mysql.so in the dynamic extensions section.
travis
phpinfo() returns that it was configured with: './configure' '--prefix=/usr' '--disable-static' '--with-apxs=/usr/sbin/apxs' '--sysconfdir=/etc' '--enable-discard-path' '--with-config-file-path=/etc/apache' '--enable-safe-mode' '--with-openssl' '--with-mhash' '--enable-bcmath' '--with-bz2' '--with-pic' '--enable-calendar' '--enable-ctype' '--with-gdbm' '--with-db3' '--enable-dbase' '--enable-ftp' '--with-iconv' '--with-exif' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png' '--with-gmp' '--with-mysql=shared,/usr' '--with-pgsql=/usr/local/pgsql' '--with-gettext=shared,/usr' '--with-expat-dir=/usr' '--with-xml' '--enable-wddx' '--with-mm=/usr' '--enable-trans-sid' '--enable-shmop' '--enable-sockets' '--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared' '--disable-debug' '--with-zlib=/usr'
However if I scroll down that page to view the loaded modules, pgsql is loaded just fine but there is no MySql.
Google'ing returnd nothing super helpful, at least that I found.
% php -r 'echo mysql_connect()."\n";'
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/extensions/mysql.so' - /usr/lib/php/extensions/mysql.so: undefined symbol: OnUpdateLong in Unknown on line 0
PHP Warning: Unknown(): (null): Unable to initialize module
Module compiled with module API=20040412, debug=0, thread-safety=0
PHP compiled with module API=20020429, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Fatal error: Call to undefined function: mysql_connect() in Command line code on line 1
MySQL did NOT work straight out of the box with the install. I had to change the perms and groups of the mysql dirs in /lib/mysql to even get mysqld to start. Before I did that, it would just exit right away. Mysqld runs just fine now.
The end goal is to setup phpMyAdmin. Any information on how to get php to force load this module is appreciated.
Oh, and in my php.ini (which is the stanard one for slackware) i do load the mysql.so in the dynamic extensions section.
travis