View previous topic :: View next topic |
Author |
Message |
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Wed Nov 19, 2003 11:02 pm Post subject: php-mysql problem |
|
|
Im want to try a groupware program from www.obliquid.com
Problem with accessing the MySQL DB , which they say is due to php-mysql or php4-mysql not being installed
Ive emerged mod_php with "use=mysql" and emerged php
any idea where i get the necessary package from ( or how I prove its installed) |
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Wed Nov 19, 2003 11:13 pm Post subject: |
|
|
echo "<?phpinfo();?>" > test.php
now put that somewhere so you can look at the page. It'll tell you everything you need to know about your php build. You can also do php -i | more from the commandline if you installed command line php assuming you didn't change USE flags along the way.
example
Code: |
azul kashani # php -i| more
phpinfo()
PHP Version => 4.3.2
System => Linux laxmail.webquest.net 2.4.20-gentoo-r5 #2 SMP Fri May 30 05:05:46 PDT 2003 i686
Build Date => Sep 29 2003 11:28:44
Configure Command => './configure' '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/
man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/li
b' '--with-readline' '--with--ncurses' '--disable-cgi' '--enable-cli' '--without-db3' '--without-db4
' '--without-db2' '--with-mcrypt=/usr' '--with-mhash' '--with-gdbm=/usr' '--without-pgsql' '--with-p
dflib=/usr' '--without-gd' '--with-png-dir=/usr' '--with-jpeg' '--with-jpeg-dir=/usr' '--enable-exif
' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with
-ttf' '--with-t1lib' '--with-gettext' '--without-qtdom' '--with-pspell' '--with-openssl' '--without-
imap' '--without-ldap' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--without-kerberos' '--wit
h-pam' '--disable-memory-limit' '--disable-ipv6' '--without-curl' '--enable-dbx' '--with-zlib' '--wi
th-zlib-dir=/usr/lib' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--e
nable-wddx' '--with-xml' '--enable-mbstring=all' '--enable-mbregex' '--with-bz2' '--with-crack' '--w
ith-ndbm' '--with-cdb' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--
enable-ftp' '--with-mime-magic' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-s
ysvipc' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-inline-optimization' '--enable-trac
k-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/cli-php4'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/cli-php4/php.ini
|
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Thu Nov 20, 2003 11:18 pm Post subject: |
|
|
cant see php-mysql or php4-mysq. Where do i get it from?
'./configure' '--prefix=/usr' '--host=i586-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--without-readline' '--with-apxs2=/usr/sbin/apxs2' '--with-ndbm=/usr' '--with-db4=/usr' '--with-mcrypt=/usr' '--with-mhash=/usr' '--with-gdbm=/usr' '--with-java=/opt/blackdown-jdk-1.4.1' '--with-unixODBC=/usr' '--with-pgsql=/usr' '--with-snmp=/usr' '--enable-ucd-snmp-hack' '--with-pdflib=/usr' '--without-gd' '--with-png' '--with-png-dir=/usr' '--with-jpeg' '--with-jpeg-dir=/usr' '--enable-exif' '--with-tiff' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-freetype-dir=/usr' '--with-ttf=/usr' '--with-t1lib=/usr' '--with-gettext' '--without-qtdom' '--with-pspell=/usr' '--with-openssl=/usr' '--with-imap=/usr' '--without-ldap' '--with-dom=/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--without-kerberos' '--with-pam' '--disable-memory-limit' '--disable-ipv6' '--without-curl' '--enable-dbx' '--with-imap-ssl' '--with-zlib' '--with-zlib-dir=/usr' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--enable-mbstring=all' '--enable-mbregex' '--with-bz2=/usr' '--with-crack=/usr' '--with-cdb' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvipc' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache2-php4' |
|
Back to top |
|
|
Bosnian[X] n00b
Joined: 12 Jul 2002 Posts: 66 Location: Sweden, Malmö
|
Posted: Thu Nov 20, 2003 11:47 pm Post subject: |
|
|
have u installed MySQL ???? |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Fri Nov 21, 2003 6:30 am Post subject: |
|
|
outer root # /etc/init.d/mysql status
* status: started
router root # |
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Fri Nov 21, 2003 8:28 am Post subject: |
|
|
You've got the two --with-mysql lines in your configure so yes you've got mysql support in you php.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
|