cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: New Test of installation

From: Richard Ford <curl_at_cubok.com>
Date: Sun, 10 Jun 2001 12:10:55 +1000

All is working!

I will send you (Sterling) an attached copy of my documents from outputs.

What had happened, as a server (Complete physical thing) reboot cleared the
mem, as I still had dormant an old copy of the apache daemon running. I had
obviously forgot to shut it down before compiling and installing a newer
copy.

Which makes sense, as whenever I went apachectl stop - it would always go -
no server running. But I could still load a web page from the server.

Anyway, normal stand alone PHP does not have those library errors anymore.
And I DO NOT have any extension setting in php.ini and I am not doing a dl
(call) to load any libraries - yet it works. I assume this is meant to be
the case?

Anyway any info on how to compile a unique and portable php/curl module that
is 110% static and autonomous would be good.

The idea being, I can take this one module, plonk it in the src subdir of
the ISP's apache install and remake apache with the module and have full PHP
and curl support. How would this affect the usage of MySQL in this PHP
module as well?

How do you all suggest I deploy curl on someone else's system to make it as
easy for the receiving sys admin and reduce by 50000% the chances of things
not working?

Cheers,
Richard.

----- Original Message -----
From: "Sterling Hughes" <sterling_at_designmultimedia.com>
To: <curl-and-php_at_lists.sourceforge.net>
Sent: Sunday, July 08, 2001 1:51 AM
Subject: Re: New Test of installation

> Have you loaded the cURL shared object into your code before you try
> phpinfo(), ie, dl("php_curl.so")? Can you send along your script and the
> output of phpinfo() (either in a private mail or posted on a ftp site)?
> Thanks...
>
> Also, it might be easier to use cURL as a static module, I know that other
> people have had success as a shared object, but I personally use it only
as
> a static module.
>
> -Sterling
>
>
> > The following is the output of a locate libcurl command.
> >
> > Remember my curl was configured and installed with
> > a --prefix=/usr/local/curl
> >
> > And PHP with the --with-curl command would not work until I set it to
> point
> > to /usr/local/curl and not /usr/local/lib or elsewhere.
> >
> > *************************
> >
> > root_at_devlinux bin]# locate libcurl
> > /usr/local/php/ext/curl/.libs/libcurl.a
> > /usr/local/php/ext/curl/.libs/libcurl.la
> > /usr/local/php/ext/curl/libcurl.la
> > /usr/local/curl/docs/libcurl.5
> > /usr/local/curl/lib/libcurl.def
> > /usr/local/curl/lib/.libs/libcurl.so.1.1.0
> > /usr/local/curl/lib/.libs/libcurl.so.1
> > /usr/local/curl/lib/.libs/libcurl.so
> > /usr/local/curl/lib/.libs/libcurl.a
> > /usr/local/curl/lib/.libs/libcurl.lai
> > /usr/local/curl/lib/.libs/libcurl.la
> > /usr/local/curl/lib/libcurl.la
> > /usr/local/curl/lib/libcurl.so.1.1.0
> > /usr/local/curl/lib/libcurl.so.1
> > /usr/local/curl/lib/libcurl.so
> > /usr/local/curl/lib/libcurl.a
> > /usr/local/curl/man/man5/libcurl.5
> >
> >
> > ********************************
> >
> > Cheers,
> > Richard.
> >
> >
> > ----- Original Message -----
> > From: "Richard Ford" <curl_at_cubok.com>
> > To: "CurlList" <curl-and-php_at_lists.sourceforge.net>
> > Cc: "Mark Gunning" <mark.gunning_at_cubok.com>
> > Sent: Saturday, June 09, 2001 8:53 PM
> > Subject: New Test of installation
> >
> >
> > > I ran my 'stand alone' PHP again. same as my apache one - but not
> > > configured with the --with-apache switch..
> > >
> > > I get the following when I run it.
> > >
> > >
> > > [root_at_devlinux bin]# ./php < /usr/local/apache/htdocs/test2.php
> > > Content-type: text/html
> > >
> > > PHP Warning: Unable to load dynamic library './libcurl.so' -
> > ./libcurl.so:
> > > cannot open shared object file:
> > > No such file or directory in Unknown on line 0
> > > X-Powered-By: PHP/4.0.5
> > > Content-type: text/html
> > >
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
> > >
> > > <HTML>
> > >
> > > <HEAD>
> > > <TITLE>Welcome to XYZ Corporation</TITLE>
> > > <META HTTP-EQUIV="Expires" CONTENT="0">
> > > </HEAD>
> > > <snip>
> > >
> > > Blah, blah, blah it returns a web page, as this test2.php file has the
> > basic
> > > get page sample code as found ont he homepage in it.
> > >
> > > Now it would appear that curl is working, as PHP ran, recognised some
> > weird
> > > command (Curl) and ran it and the results are what it is supposed to
> do -
> > > fetch a web site.
> > >
> > > But those strange messages first hand?
> > >
> > > I assume they have something to do with sharing access, libtool and
what
> > > not - having had some rude encounters with shared libraries recently
> when
> > > trying to get mcrypt to compile into PHP and get apache to then
> compile -
> > > with various versions of the same library that apache needs one ver
and
> > > mcrypt another!
> > >
> > > Now is the above a possible cause as to why apache with php is not
> > working -
> > > but php with curl and no apache is?
> > >
> > > Should I copy the libcurl libs to /usr/lib? Or some similar action?
> > >
> > > Cheers,
> > > Richard.
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Curl-and-php mailing list
> > > Curl-and-php_at_lists.sourceforge.net
> > > http://lists.sourceforge.net/lists/listinfo/curl-and-php
> > >
> >
> >
> > _______________________________________________
> > Curl-and-php mailing list
> > Curl-and-php_at_lists.sourceforge.net
> > http://lists.sourceforge.net/lists/listinfo/curl-and-php
> >
>
>
> _______________________________________________
> Curl-and-php mailing list
> Curl-and-php_at_lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/curl-and-php
>

_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-06-10