Apache ADVX & PHP w/ MySQL
I just installed Mandrake 10.1 Community, went just fine.
Except that I get this : Fatal error: Call to undefined function: mysql_connect() in /home/jean-michel/www/html/mymtm/install.php on line 26 I browsed thru available docs that says that Apache ADVX is Apache w/ PHP & MySQL. Except that MySQL is statically integrated in Apache & not using DSO. I installed MySQL-Administrator and it looks like MySQL is up and well How do I get PHP to recognise MySQL ? I am a newbie and don't feel like recompiling with different options |
You probably have not loaded the apache2mod_php, or apache2mod_mysql, got to install software and find the application
install and restart apache with apachectl stop apachectl start Ensure the mysql server is started by checking for mysql check the module is working with making a text file <? phpinfo() ?> put it into your website in /var/www/html as test.php then with your browser type http://localhost/test.php This will tell you if the mysql is loaded in apache and the location of all the files etc for mysql. :Pengy: :Pengy: :Pengy: :Pengy: |
Thank you, but PHP is already installed and running : phpinfo :
Howev'./configure' '--build=i586-mandrake-linux-gnu' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-discard-path' '--disable-force-cgi-redirect' '--enable-shared' '--disable-static' '--disable-debug' '--disable-rpath' '--enable-pic' '--enable-inline-optimization' '--enable-memory-limit' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--with-pear=/usr/share/pear' '--enable-magic-quotes' '--enable-debugger' '--enable-track-vars' '--with-exec-dir=/usr/bin' '--with-versioning' '--with-mod_charset' '--with-regex=php' '--enable-track-vars' '--enable-trans-sid' '--enable-safe-mode' '--enable-ctype' '--enable-ftp' '--with-gettext=/usr' '--enable-posix' '--enable-session' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--with-openssl=/usr' '--without-kerberos' '--with-ttf' '--with-freetype-dir=/usr' '--with-zlib=/usr' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--without-pear' However, it seems to show that it's been built without MySQL support |
All times are GMT -5. The time now is 03:25 AM. |