bluehz
09-24-2002, 12:57 PM
I wanted to update my Slackware 8.1 to the newer Apache2 and PHP-Apache2 found at Linuxpackages.net (http://www.linuxpackages.net/search_view.php?by=&name=&ver=&what_cat=&=) The packages are designed to function together and are complementary. So I d/l and installed both packages with no problems.
Apache2 works great, startssl runs fine, I created a phpinfo page and it loads fine so I know both Apache2 and PHP are up and running. Yet when I am trying to connect to any of my previous php webpages that access mysql I am getting the dread:
PHP Fatal error: Call to undefined function: mysql_connect()
Searched around and everyone claims that this is indicative of an PHP install that has not been configured with mysql support. Now since I d/l and installed the two complementary packages Apache2 and the specific PHP for Apache2 I am pretty sure that mysql supprt is in there. Also when I get info on php page I can clearly see that it was configure in.
So what am I doing wrong here????
---
Configure Command './configure' '--prefix=/usr' '--disable-static' '--with-apxs2=/usr/sbin/apxs' '--enable-discard-path' '--with-config-file-path=/etc/apache2' '--enable-safe-mode' '--with-openssl' '--enable-bcmath' '--with-bz2' '--enable-pic' '--enable-calendar' '--enable-ctype' '--with-imap=shared' '--with-imap-ssl' '--enable-dba=shared' '--enable-dbase=shared' '--with-gdbm' '--with-db2' '--with-db3' '--enable-ftp' '--with-gd=/usr' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir=/usr/X11R6' '--with-t1lib=/usr' '--with-gmp=shared' '--with-mcrypt=shared,/usr' '--with-unixODBC=shared,/usr' '--with-pgsql=shared,/usr' '--with-mysql=shared,/usr' '--with-pspell=shared,/usr' '--with-xml' '--enable-trans-sid' '--enable-shmop' '--enable-sockets' '--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--enable-inline-optimization' '--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared' '--disable-debug' '--with-zlib=shared,/usr'
Apache2 works great, startssl runs fine, I created a phpinfo page and it loads fine so I know both Apache2 and PHP are up and running. Yet when I am trying to connect to any of my previous php webpages that access mysql I am getting the dread:
PHP Fatal error: Call to undefined function: mysql_connect()
Searched around and everyone claims that this is indicative of an PHP install that has not been configured with mysql support. Now since I d/l and installed the two complementary packages Apache2 and the specific PHP for Apache2 I am pretty sure that mysql supprt is in there. Also when I get info on php page I can clearly see that it was configure in.
So what am I doing wrong here????
---
Configure Command './configure' '--prefix=/usr' '--disable-static' '--with-apxs2=/usr/sbin/apxs' '--enable-discard-path' '--with-config-file-path=/etc/apache2' '--enable-safe-mode' '--with-openssl' '--enable-bcmath' '--with-bz2' '--enable-pic' '--enable-calendar' '--enable-ctype' '--with-imap=shared' '--with-imap-ssl' '--enable-dba=shared' '--enable-dbase=shared' '--with-gdbm' '--with-db2' '--with-db3' '--enable-ftp' '--with-gd=/usr' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir=/usr/X11R6' '--with-t1lib=/usr' '--with-gmp=shared' '--with-mcrypt=shared,/usr' '--with-unixODBC=shared,/usr' '--with-pgsql=shared,/usr' '--with-mysql=shared,/usr' '--with-pspell=shared,/usr' '--with-xml' '--enable-trans-sid' '--enable-shmop' '--enable-sockets' '--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--enable-inline-optimization' '--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared' '--disable-debug' '--with-zlib=shared,/usr'