php-install Digest 7 Dec 2001 03:17:28 -0000 Issue 590

Topics (messages 5219 through 5224):

getting .so files
        5219 by: brain_damaged
        5224 by: Chris

adding imap support after inital install
        5220 by: brain_damaged
        5222 by: Fred

Re: Call to undefined function: mysql_connect()
        5221 by: Fred
        5223 by: Ana Cerejo

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hello,
I have php 4.06 installed. I need php_imap to work with the phpgroupware newsgroups. 
However a search of the drive shows that I do not have that file.
How and were can I get it from ?
 and does it go in /lib or /libexec ?

thanks
bd
--- End Message ---
--- Begin Message ---
Greetings,
 Perhaps we're all supposed to know this already. But *what* system (OS)
are you running? The answer to your question requires this information.
In order to give the best answer.

Best wishes,
 Chris


> Hello,
> I have php 4.06 installed. I need php_imap to work with the
> phpgroupware newsgroups. However a search of the drive shows that I do
> not have that file. How and were can I get it from ?
> and does it go in /lib or /libexec ?
> 
> thanks
> bd
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]


-- 
H.R. Communications Corp.
http://www.dnswatch.com
http://www.1command.com


............................................
This email was sent using DNSWATCH WebMail.
   "Get an account today!"
http://www.dnswatch.com/dnswm112/


--- End Message ---
--- Begin Message ---
I have php 4.06 and apache 1.3.22 (i think or .19) on freebsd 4.3. I am told i need 
imap support for a program called phpgroupware (www.phpgroupware.org).

I installed the php when i setup the freebsd machine. How can I now add it. ?

I read the php docs and it scares me.

thanks
bd
--- End Message ---
--- Begin Message ---
Don't be scared, its only a manual.

And it clearly states:

To get these functions to work, you have to compile PHP with --with-imap.
That requires the c-client library to be installed. Grab the latest version
from ftp://ftp.cac.washington.edu/imap/ and compile it. Then copy
c-client/c-client.a to /usr/local/lib/libc-client.a or some other directory
on your link path and copy c-client/rfc822.h, mail.h and linkage.h to
/usr/local/include or some other directory in your include path.

I could not state it any clearer.  I am not a freebsd user, but I believe
most Linux distibutions come with this library.  If you are certain your
system does not inlude this library then follow the directions above to
install it.

Fred

Brain_damaged <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have php 4.06 and apache 1.3.22 (i think or .19) on freebsd 4.3. I am
told i need imap support for a program called phpgroupware
(www.phpgroupware.org).
>
> I installed the php when i setup the freebsd machine. How can I now add
it. ?
>
> I read the php docs and it scares me.
>
> thanks
> bd


--- End Message ---
--- Begin Message ---
I am assuming that you installed the binary RPMs rather than building from
the source files.  If this is the case, you could try to unintall the PHP
RPM and then reinstall it.  I make this suggestion only because it is
possible that the PHP RPM was installed before the MySQL RPM in which case
it may default to --without-mysql.  Installing the PHP RPM with MySQL
installed first may fix this problem.

Unfortunately, I am just guessing here because I am not sure about the
behavior of those RPMs.  What I am sure of is that RPM installation of
software that needs to work with other software is a gamble at best.  You
are relying on the person who wrote the dependancy and install scripts for
the RPM to know how you want your progs configured.

For this reason I never install interdependant programs from RPM.  I always
install from source, which has the added benefit of allowing me to set any
compile-time settings I chose.

Fred

Rob Round <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Here is the configuration command (PHP Version 4.0.4pl1).  I guess I
should
> have added this in my original email.  I did see that it
> says --without-mysql which was a clue to my problem.  Whay I don't
> understand is why, on two installs, if I pick "install everything" it
> doesn't install this.  Can I add it after the fact or do I need to
reinstall
> PHP from scratch?
>
> Thanks again.
>
> Rob.
>
> './configure' '--prefix=/usr' '--with-config-file-path=/etc'
> '--disable-debug' '--enable-pic' '--enable-shared'
> '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs'
> '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext'
> '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2'
> '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes'
> '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
> '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp'
> '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8'
> '--with-xml'
>
>
> -----Original Message-----
> From: Fred [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 06, 2001 3:13 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] Re: Call to undefined function: mysql_connect()
>
>
> Write this script and execute it:
> <? phpinfo() ?>
> It will provide you with a lengthy list of configuration information.
Copy
> the "configuration command" and any mysql info to an email so that we can
> better understand your situation.
>
> Fred
>
> Rob Round <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hello,
> >
> > I have a standard RedHat7.2 install.  In the installation I specified
> every
> > mysql, PHP and apache module available.  PHP works, mysql works and so
> does
> > Apache.  Unfortunately, I get this error when trying to make a mysql
> > connection through a PHP page "Call to undefined function:
> mysql_connect()".
> > I'm assuming that PHP is missing some compile switches that weren't
> > available at install time.  Is it possible to add this functionality
> > afterwards or do I have to recompile PHP from scratch?  If there is a
way
> > around not reinstalling from scratch that would be great as this is a
> > production machine.
> >
> > I have looked through the archives and haven't really found what I
needed.
> I
> > also did a test install on a second machine and installed every package
> > available to see if the PHP/mysql support was included... it wasn't.
> >
> > Thanks in advance.
> >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


--- End Message ---
--- Begin Message ---
Hi, I've had this problem in the past. I did NOT have to recompile PHP. I
believe that all I had to do was add (or uncomment) extension=mysql.so to
the php.ini file and restart the server. Good luck!

On Thu, 6 Dec 2001, Fred wrote:

> I am assuming that you installed the binary RPMs rather than building from
> the source files.  If this is the case, you could try to unintall the PHP
> RPM and then reinstall it.  I make this suggestion only because it is
> possible that the PHP RPM was installed before the MySQL RPM in which case
> it may default to --without-mysql.  Installing the PHP RPM with MySQL
> installed first may fix this problem.
>
> Unfortunately, I am just guessing here because I am not sure about the
> behavior of those RPMs.  What I am sure of is that RPM installation of
> software that needs to work with other software is a gamble at best.  You
> are relying on the person who wrote the dependancy and install scripts for
> the RPM to know how you want your progs configured.
>
> For this reason I never install interdependant programs from RPM.  I always
> install from source, which has the added benefit of allowing me to set any
> compile-time settings I chose.
>
> Fred
>
> Rob Round <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Here is the configuration command (PHP Version 4.0.4pl1).  I guess I
> should
> > have added this in my original email.  I did see that it
> > says --without-mysql which was a clue to my problem.  Whay I don't
> > understand is why, on two installs, if I pick "install everything" it
> > doesn't install this.  Can I add it after the fact or do I need to
> reinstall
> > PHP from scratch?
> >
> > Thanks again.
> >
> > Rob.
> >
> > './configure' '--prefix=/usr' '--with-config-file-path=/etc'
> > '--disable-debug' '--enable-pic' '--enable-shared'
> > '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs'
> > '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext'
> > '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2'
> > '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes'
> > '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
> > '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp'
> > '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8'
> > '--with-xml'
> >
> >
> > -----Original Message-----
> > From: Fred [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 06, 2001 3:13 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-INST] Re: Call to undefined function: mysql_connect()
> >
> >
> > Write this script and execute it:
> > <? phpinfo() ?>
> > It will provide you with a lengthy list of configuration information.
> Copy
> > the "configuration command" and any mysql info to an email so that we can
> > better understand your situation.
> >
> > Fred
> >
> > Rob Round <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hello,
> > >
> > > I have a standard RedHat7.2 install.  In the installation I specified
> > every
> > > mysql, PHP and apache module available.  PHP works, mysql works and so
> > does
> > > Apache.  Unfortunately, I get this error when trying to make a mysql
> > > connection through a PHP page "Call to undefined function:
> > mysql_connect()".
> > > I'm assuming that PHP is missing some compile switches that weren't
> > > available at install time.  Is it possible to add this functionality
> > > afterwards or do I have to recompile PHP from scratch?  If there is a
> way
> > > around not reinstalling from scratch that would be great as this is a
> > > production machine.
> > >
> > > I have looked through the archives and haven't really found what I
> needed.
> > I
> > > also did a test install on a second machine and installed every package
> > > available to see if the PHP/mysql support was included... it wasn't.
> > >
> > > Thanks in advance.
> > >
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>

--- End Message ---

Reply via email to