Re: Plz help quick - mysql/php/web server undefined function all of a sudden
| From: | Chip Wiegand | Date: | Mon, 03 May 2004 20:56:15 +0000 |
| Subject: | Re: Plz help quick - mysql/php/web server undefined function all of a sudden | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185255@lists.php.net to get a copy of this message | ||
John Nichel <john@kegworks.com> wrote on 05/03/2004 01:46:37 PM:
> Chip Wiegand wrote:
> > John Nichel <john@kegworks.com> wrote on 05/03/2004 01:15:39 PM:
> >
> >
> >>Chip Wiegand wrote:
> >>
> >>>John,
> >>>Yep, looking at phpinfo.php shows no support for mysql. This is very
> >>>strange. I know these things don't just happen by themselves. I also
> >
> > know
> >
> >>>there are only two people with the password to the server, myself and
> >
> > my
> >
> >>>boss (and he knows nothing about the server to begin with).
> >>>Anyway, looks like php needs to be configured to work with mysql. Now
> >
> > that
> >
> >>>it is the way it is, how do I go about that? According to pkg_info
the
> >
> >
> >>>version of php is 4.3.4_3.
> >>>Being a port install how do I configure it to use mysql?
> >>>Thanks,
> >>>Chip
> >>>
> >>
> >>Windows, *nix, something else? Apache, IIS, something else? If
Apache
> >>and *nix, was Apache setup with apxs?
> >>
> >>--
> >>John C. Nichel
> >
> >
> > That bit of info was snipped out of the original post.
> > Its FreeBSD-5.1/Apache-2.0.46/mysql-4.0.1_1/php-4.3.4.
> > --
> > Chip
> >
>
> If Apache is setup with apxs, you'll just need to recompile php. On the
> phpinfo page, look for --with-apxs=/path/to/apxs or
--with-apache=../apache
>
> If it's not setup with apxs, you _may_ have to recompile both (I haven't
> touched Apache2 yet).
>
> --
> John C. Nichel
It is compiled with apxs2.
Does recompile mean running make ; install; clean in the ports? Do I have
to specify all the --with stuff listed below if I have to do that?
--
Chip
-----------------
'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all'
'--with-regex=php' '--with-pear' '--with-bz2=/usr'
'--enable-ctype'
'--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv'
'--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-xpm-dir=/usr/local'
'--with-iconv-dir=/usr/local' '--enable-overload'
'--with-pcre-regex=yes'
'--enable-posix' '--enable-session' '--enable-tokenizer'
'--with-expat-dir=/usr/local' '--enable-xml' '--with-xmlrpc'
'--with-zlib=yes' '--with-apxs2=/usr/local/sbin/apxs'
'--prefix=/usr/local' 'i386-portbld-freebsd5.1'