Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
php-mysql problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Wed Nov 19, 2003 11:02 pm    Post subject: php-mysql problem Reply with quote

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
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Wed Nov 19, 2003 11:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Thu Nov 20, 2003 11:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bosnian[X]
n00b
n00b


Joined: 12 Jul 2002
Posts: 66
Location: Sweden, Malmö

PostPosted: Thu Nov 20, 2003 11:47 pm    Post subject: Reply with quote

have u installed MySQL ????
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Fri Nov 21, 2003 6:30 am    Post subject: Reply with quote

outer root # /etc/init.d/mysql status
* status: started
router root #
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Fri Nov 21, 2003 8:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum