Re: After dist upgrade to Ubuntu 18.04, PHP 7.2 no longer finds the cURL module

luis jury <[email protected]> Wed, 22 Aug 2018 09:36:58 -0300
Newsgroups gmane.comp.web.curl.php
Message-ID <CAHvF5s2CyGgxJgaXRXEg-A7oKSwiTyiRc+MUPG8NOZz9sR9Ndg@mail.gmail.com>
--===============1098610228==
Content-Type: multipart/alternative; boundary="000000000000ab5d7c057405669b"

--000000000000ab5d7c057405669b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Dave, looking at your info.php looks like you fixed the issue.

What was the issue? how do you solve the problem?

By the way, I recommend you to delete your info.php file, you're giving
your server info for free.

Good luck

*ars longa, vita brevis*



El mar., 21 ago. 2018 a las 18:26, Dave Nelson (<[email protected]>) escribi=
=C3=B3:

> Hi Luis,
>
> Thank you for your message. Unfortunately none of that worked. Command
> line output here: http://pasted.co/d02f249e
>
> But I notice that php -v reports that I'm on 7.2.16.
>
> However, looking at https://tardis.world/info.php, at the 1st ilne, it
> reports "PHP Version 7.0.30-0ubuntu0.16.04.1"
>
> Why would this be and what would be the fix?
>
> In any case, both versions of the module (7.0 and 7.2) are installed,
> and are supposed to be included in the config by
> /etc/php/7.0/apache2/conf.d/20-curl.ini and
> /etc/php/7.2/apache2/conf.d/20-curl.ini
>
> Just to recap some info about my system:
>
> There is a pastebin of my /etc/php/7.0/apache2/php.ini at
> http://pasted.co/791ed426
>
> There is a pastebin of my /etc/php/7.2/apache2/php.ini at
> http://pasted.co/eb43179d
>
> And there is a pastebin of my /etc/php/7.2/apache2/conf.d/20-curl.ini
> at http://pasted.co/6930a601
>
> My PHP info can be seen at https://tardis.world/info.php
>
> The error message can be seen at: https://tardis.world
>
> Many thanks in advance for any other ideas, and wishing you all the best,
>
> Dave
>
> On Tue, Aug 21, 2018 at 3:39 PM, luis jury <[email protected]> wrote:
> > Hi Dave,
> >
> > Looking at your phpinfo and php.ini, it looks like you don't have curl
> > extension enabled. Anyway I'm not sure if you really have it installed
> for
> > php 7.2??. You changed your php version, and you need to install module=
s
> as
> > well, upgrading ubuntu won't install modules by default.
> >
> > Try to install it with:  `sudo apt-get install php-curl`, (you can also
> try
> > with `sudo apt-get install php7.2-curl` but, as ubuntu 18 default php
> > versi=C3=B3n is 7.2, with the first command should work. )
> > Then try to enable it with: `phpenmod curl`
> > if the second command doesn't work, try `phpenmod -v 7.2 curl` (-v is f=
or
> > the php version, but, as default is 7.2, this should not be required)
> >
> > That should do the work, but, if any of those works, look at your php.i=
ni
> > for php 7.2 and look for this line `;extension=3Dcurl` and delete the `=
;`
> > character. (the `;`is a comment, so, your .ini is not loading that
> > extension)
> >
> > if any of those works, please share the versi=C3=B3n of php running on =
your
> cli,
> > `php -v`. Most of the time upgrading Ubuntu is a bad idea, things like
> those
> > always happen when doing a dist upgrade.
> >
> > Hope this work for you.
> > Good luck!
> >
> > ars longa, vita brevis
> >
> >
> >
> > El mar., 21 ago. 2018 a las 3:04, Dave Nelson (<[email protected]>)
> escribi=C3=B3:
> >>
> >> Hi people, I was using cURL successfully on Ubuntu 16.04 (server
> >> edition) with PHP 5.6, and did a distribution upgrade to Ubuntu 18.04.
> >> That now gives me PHP 7.2. I'm using cURL for a NextCloud instance
> >> (that was running quite happily). Now my NextCloud instance is giving
> >> me the following message when I go to the login page:
> >>
> >> "PHP module cURL not installed.
> >> Please ask your server administrator to install the module.
> >> PHP modules have been installed, but they are still listed as missing?
> >> Please ask your server administrator to restart the web server."
> >>
> >> Running 'php -m' lists curl as being there, and curl.so is indeed
> >> present at /usr/lib/php/20170718/curl.so
> >>
> >> Why isn't PHP seeing cURL? And what's the solution?
> >>
> >> For info, there is a pastebin of my /etc/php/7.0/apache2/php.ini at
> >> http://pasted.co/791ed426
> >>
> >> There is a pastebin of my /etc/php/7.2/apache2/php.ini at
> >> http://pasted.co/eb43179d
> >>
> >> And there is a pastebin of my /etc/php/7.2/apache2/conf.d/20-curl.ini
> >> at http://pasted.co/6930a601
> >>
> >> My PHP info can be seen at https://tardis.world/info.php
> >>
> >> Many thanks in advance for any help,
> >>
> >> Dave
> >> _______________________________________________
> >> https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
> >
> >
> > _______________________________________________
> > https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
> >
>
> _______________________________________________
> https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>

--000000000000ab5d7c057405669b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Dave, looking at your info.php looks like you fixed the is=
sue.<br><br>What was the issue? how do you solve the problem?<br><br>By the=
 way, I recommend you to delete your info.php file, you&#39;re giving your =
server info for free.<div><br></div><div>Good luck<br><br clear=3D"all"><di=
v><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signat=
ure"><div dir=3D"ltr"><div><blockquote style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:so=
lid;padding-left:1ex"><span style=3D"color:rgb(0,0,0);font-family:modern;fo=
nt-size:medium"><i>ars longa, vita brevis</i></span></blockquote></div></di=
v></div></div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"lt=
r">El mar., 21 ago. 2018 a las 18:26, Dave Nelson (&lt;<a href=3D"mailto:da=
[email protected]">[email protected]</a>&gt;) escribi=C3=B3:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;=
padding-left:1ex">Hi Luis,<br>
<br>
Thank you for your message. Unfortunately none of that worked. Command<br>
line output here: <a href=3D"http://pasted.co/d02f249e" rel=3D"noreferrer" =
target=3D"_blank">http://pasted.co/d02f249e</a><br>
<br>
But I notice that php -v reports that I&#39;m on 7.2.16.<br>
<br>
However, looking at <a href=3D"https://tardis.world/info.php" rel=3D"norefe=
rrer" target=3D"_blank">https://tardis.world/info.php</a>, at the 1st ilne,=
 it<br>
reports &quot;PHP Version 7.0.30-0ubuntu0.16.04.1&quot;<br>
<br>
Why would this be and what would be the fix?<br>
<br>
In any case, both versions of the module (7.0 and 7.2) are installed,<br>
and are supposed to be included in the config by<br>
/etc/php/7.0/apache2/conf.d/20-curl.ini and<br>
/etc/php/7.2/apache2/conf.d/20-curl.ini<br>
<br>
Just to recap some info about my system:<br>
<br>
There is a pastebin of my /etc/php/7.0/apache2/php.ini at<br>
<a href=3D"http://pasted.co/791ed426" rel=3D"noreferrer" target=3D"_blank">=
http://pasted.co/791ed426</a><br>
<br>
There is a pastebin of my /etc/php/7.2/apache2/php.ini at<br>
<a href=3D"http://pasted.co/eb43179d" rel=3D"noreferrer" target=3D"_blank">=
http://pasted.co/eb43179d</a><br>
<br>
And there is a pastebin of my /etc/php/7.2/apache2/conf.d/20-curl.ini<br>
at <a href=3D"http://pasted.co/6930a601" rel=3D"noreferrer" target=3D"_blan=
k">http://pasted.co/6930a601</a><br>
<br>
My PHP info can be seen at <a href=3D"https://tardis.world/info.php" rel=3D=
"noreferrer" target=3D"_blank">https://tardis.world/info.php</a><br>
<br>
The error message can be seen at: <a href=3D"https://tardis.world" rel=3D"n=
oreferrer" target=3D"_blank">https://tardis.world</a><br>
<br>
Many thanks in advance for any other ideas, and wishing you all the best,<b=
r>
<br>
Dave<br>
<br>
On Tue, Aug 21, 2018 at 3:39 PM, luis jury &lt;<a href=3D"mailto:zeui16@gma=
il.com" target=3D"_blank">[email protected]</a>&gt; wrote:<br>
&gt; Hi Dave,<br>
&gt;<br>
&gt; Looking at your phpinfo and php.ini, it looks like you don&#39;t have =
curl<br>
&gt; extension enabled. Anyway I&#39;m not sure if you really have it insta=
lled for<br>
&gt; php 7.2??. You changed your php version, and you need to install modul=
es as<br>
&gt; well, upgrading ubuntu won&#39;t install modules by default.<br>
&gt;<br>
&gt; Try to install it with:=C2=A0 `sudo apt-get install php-curl`, (you ca=
n also try<br>
&gt; with `sudo apt-get install php7.2-curl` but, as ubuntu 18 default php<=
br>
&gt; versi=C3=B3n is 7.2, with the first command should work. )<br>
&gt; Then try to enable it with: `phpenmod curl`<br>
&gt; if the second command doesn&#39;t work, try `phpenmod -v 7.2 curl` (-v=
 is for<br>
&gt; the php version, but, as default is 7.2, this should not be required)<=
br>
&gt;<br>
&gt; That should do the work, but, if any of those works, look at your php.=
ini<br>
&gt; for php 7.2 and look for this line `;extension=3Dcurl` and delete the =
`;`<br>
&gt; character. (the `;`is a comment, so, your .ini is not loading that<br>
&gt; extension)<br>
&gt;<br>
&gt; if any of those works, please share the versi=C3=B3n of php running on=
 your cli,<br>
&gt; `php -v`. Most of the time upgrading Ubuntu is a bad idea, things like=
 those<br>
&gt; always happen when doing a dist upgrade.<br>
&gt;<br>
&gt; Hope this work for you.<br>
&gt; Good luck!<br>
&gt;<br>
&gt; ars longa, vita brevis<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; El mar., 21 ago. 2018 a las 3:04, Dave Nelson (&lt;<a href=3D"mailto:d=
[email protected]" target=3D"_blank">[email protected]</a>&gt;) escribi=C3=B3:<br>
&gt;&gt;<br>
&gt;&gt; Hi people, I was using cURL successfully on Ubuntu 16.04 (server<b=
r>
&gt;&gt; edition) with PHP 5.6, and did a distribution upgrade to Ubuntu 18=
.04.<br>
&gt;&gt; That now gives me PHP 7.2. I&#39;m using cURL for a NextCloud inst=
ance<br>
&gt;&gt; (that was running quite happily). Now my NextCloud instance is giv=
ing<br>
&gt;&gt; me the following message when I go to the login page:<br>
&gt;&gt;<br>
&gt;&gt; &quot;PHP module cURL not installed.<br>
&gt;&gt; Please ask your server administrator to install the module.<br>
&gt;&gt; PHP modules have been installed, but they are still listed as miss=
ing?<br>
&gt;&gt; Please ask your server administrator to restart the web server.&qu=
ot;<br>
&gt;&gt;<br>
&gt;&gt; Running &#39;php -m&#39; lists curl as being there, and curl.so is=
 indeed<br>
&gt;&gt; present at /usr/lib/php/20170718/curl.so<br>
&gt;&gt;<br>
&gt;&gt; Why isn&#39;t PHP seeing cURL? And what&#39;s the solution?<br>
&gt;&gt;<br>
&gt;&gt; For info, there is a pastebin of my /etc/php/7.0/apache2/php.ini a=
t<br>
&gt;&gt; <a href=3D"http://pasted.co/791ed426" rel=3D"noreferrer" target=3D=
"_blank">http://pasted.co/791ed426</a><br>
&gt;&gt;<br>
&gt;&gt; There is a pastebin of my /etc/php/7.2/apache2/php.ini at<br>
&gt;&gt; <a href=3D"http://pasted.co/eb43179d" rel=3D"noreferrer" target=3D=
"_blank">http://pasted.co/eb43179d</a><br>
&gt;&gt;<br>
&gt;&gt; And there is a pastebin of my /etc/php/7.2/apache2/conf.d/20-curl.=
ini<br>
&gt;&gt; at <a href=3D"http://pasted.co/6930a601" rel=3D"noreferrer" target=
=3D"_blank">http://pasted.co/6930a601</a><br>
&gt;&gt;<br>
&gt;&gt; My PHP info can be seen at <a href=3D"https://tardis.world/info.ph=
p" rel=3D"noreferrer" target=3D"_blank">https://tardis.world/info.php</a><b=
r>
&gt;&gt;<br>
&gt;&gt; Many thanks in advance for any help,<br>
&gt;&gt;<br>
&gt;&gt; Dave<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; <a href=3D"https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-=
php" rel=3D"noreferrer" target=3D"_blank">https://cool.haxx.se/cgi-bin/mail=
man/listinfo/curl-and-php</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; <a href=3D"https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php"=
 rel=3D"noreferrer" target=3D"_blank">https://cool.haxx.se/cgi-bin/mailman/=
listinfo/curl-and-php</a><br>
&gt;<br>
<br>
_______________________________________________<br>
<a href=3D"https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php" rel=
=3D"noreferrer" target=3D"_blank">https://cool.haxx.se/cgi-bin/mailman/list=
info/curl-and-php</a><br>
</blockquote></div>

--000000000000ab5d7c057405669b--

--===============1098610228==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KaHR0cHM6Ly9j
b29sLmhheHguc2UvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL2N1cmwtYW5kLXBocAo=

--===============1098610228==--