Hi,

I can't think of any way to screwup php (except disabling it) modifying 
httpd.conf. My guess is that you don't have mysql support or you haven't 
installed the mysql module for php.

Try this php code:

<?php phpinfo(); ?>

This will give you a lot of info about your php installation. 
Two important things you'll find here:
1.- configure options (how ./configure was invoked)
2.- Info about all modules compiled-in/loaded

The first will tell you if mysql was included. 
The second will tell you if the mysql module is available in your running 
server

Here is the (edited) output for php 4.1.0 with mysql compiled in.

MySQL (if you don't see something like this, you don't have mysql support):
mysql
MySQL Support enabled 
Active Persistent Links 1
Active Links 1
Client API version 3.22.32
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited

Configure options (look for --with-mysql):
Configure Command './configure' '--prefix=/usr' 
'--with-config-file-path=/etc/httpd/conf' '--disable-debug' 
'--enable-safe-mode' '--with-exec-dir=/usr/bin' '--enable-track-vars' 
'--enable-magic-quotes' '--disable-short-tags' '--enable-pear' 
'--enable-bcmath' '--with-mod-dav' '--enable-dba' '--with-gdbm' 
'--with-dbase' '--enable-ftp' '--with-gd' '--with-ttf' '--with-ldap' 
'--with-mysql=/usr' '--with-mm' '--enable-trans-sid' '--with-snmp' 
'--with-regex=system' '--enable-xml' '--enable-versioning' 
'--with-tsrm-pthreads' '--enable-inline-optimization' '--enable-sysvsem' 
'--enable-sysvshm' '--enable-calendar' '--with-gd' '--enable-gd-native-ttf' 
'--enable-ucd-snmp-hack' '--with-jpeg-dir=/usr/lib' 
'--with-apxs=/usr/sbin/apxs' '--with-openssl' '--with-gd=../gd-1.8.4' 
'--with-freetype-dir=/tmp/freetype2'



On Sunday 28 April 2002 18:27, Ken Moffat wrote:
> I'm ising the original version that was installed during the initial
> install, but I have fiddled with my httpd.conf to try serving wml to my
> cell phone, and may have fouled up a bit. I don't think so, but as I
> said, I made no notes, so am at the mercy of my (faulty) memory!
> If push comes to shove I'll reinstall php.
>
> On Sun, 28 Apr 2002 17:52:52 -0300
>
> "Federico Voges" <[EMAIL PROTECTED]> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi,
> >
> > I don't know ELX so this might be a stupid question: can you reinstall
> > the original version of PHP??
> >
> > On Sun, 28 Apr 2002 13:40:24 -0700, Ken Moffat wrote:
> > >On Sun, 28 Apr 2002 17:09:56 -0300
> > >
> > >"Federico Voges" <[EMAIL PROTECTED]> wrote:
> > >> -----BEGIN PGP SIGNED MESSAGE-----
> > >> Hash: SHA1
> > >>
> > >> HI,
> > >>
> > >> Depending how PHp was compiled, you might be able to compile just
> > >
> > >the> mysql support as a module and load it in your scripts or via
> > >php.ini.> I allways compile with mysql support builtin because almost
> > >everything> I do uses database.
> > >
> > >
> > >OK, thanks, guess I'll have to wait for elx to answer about php
> > >compile methods.
> > >
> > >It's entirely possible that I screwed up my config while messing
> > >around with .wml serving; I tried several things without making
> > >notes, and I'm not sure if mysql support worked before I started.
> > >You'd think I'd know better.
> > >
> > >Thanks again.
> > >_______________________________________________
> > >Linux-users mailing list -
> > >http://linux-sxs.org/mailman/listinfo/linux-users
> > >Subscribe/Unsubscribe info, Archives,and Digests are located at the
> > >above URL.
> >
> > Federico Voges
> > Socio gerente
> >
> > Intrasoft
> > Malabia 2137 14 A
> > (1425) Buenos Aires
> > Argentina
> >
> > Te/Fax: 54-11-4833-5182
> > e-mail: [EMAIL PROTECTED]
> > Web: http://www.intrasoft.com.ar
> >
> > PGP Public Key Fingerprint: A536 4595 EB6F D197  FBC1 5C3A 145C 2516
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: PGPsdk version 1.7.1 (C) 1997-1999 Network Associates, Inc.
> > and its affiliated companies.
> >
> > iQA/AwUBPMxhJBRcJRaVKt4XEQI4EgCgkHRq0S1rvjio0e8IIcEgi1I3FJAAoOCp
> > RNxeQcBjia/1LbseuH4IW2Yy
> > =WugS
> > -----END PGP SIGNATURE-----
> >
> >
> > _______________________________________________
> > Linux-users mailing list -
> > http://linux-sxs.org/mailman/listinfo/linux-users
> > Subscribe/Unsubscribe info, Archives,and Digests are located at the
> > above URL.

_______________________________________________
Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.

Reply via email to