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'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 (<<a href=3D"mailto:da= [email protected]">[email protected]</a>>) 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'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 "PHP Version 7.0.30-0ubuntu0.16.04.1"<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 <<a href=3D"mailto:zeui16@gma= il.com" target=3D"_blank">[email protected]</a>> wrote:<br> > Hi Dave,<br> ><br> > Looking at your phpinfo and php.ini, it looks like you don't have = curl<br> > extension enabled. Anyway I'm not sure if you really have it insta= lled for<br> > php 7.2??. You changed your php version, and you need to install modul= es as<br> > well, upgrading ubuntu won't install modules by default.<br> ><br> > Try to install it with:=C2=A0 `sudo apt-get install php-curl`, (you ca= n also try<br> > with `sudo apt-get install php7.2-curl` but, as ubuntu 18 default php<= br> > versi=C3=B3n is 7.2, with the first command should work. )<br> > Then try to enable it with: `phpenmod curl`<br> > if the second command doesn't work, try `phpenmod -v 7.2 curl` (-v= is for<br> > the php version, but, as default is 7.2, this should not be required)<= br> ><br> > That should do the work, but, if any of those works, look at your php.= ini<br> > for php 7.2 and look for this line `;extension=3Dcurl` and delete the = `;`<br> > character. (the `;`is a comment, so, your .ini is not loading that<br> > extension)<br> ><br> > if any of those works, please share the versi=C3=B3n of php running on= your cli,<br> > `php -v`. Most of the time upgrading Ubuntu is a bad idea, things like= those<br> > always happen when doing a dist upgrade.<br> ><br> > Hope this work for you.<br> > Good luck!<br> ><br> > ars longa, vita brevis<br> ><br> ><br> ><br> > El mar., 21 ago. 2018 a las 3:04, Dave Nelson (<<a href=3D"mailto:d= [email protected]" target=3D"_blank">[email protected]</a>>) escribi=C3=B3:<br> >><br> >> Hi people, I was using cURL successfully on Ubuntu 16.04 (server<b= r> >> edition) with PHP 5.6, and did a distribution upgrade to Ubuntu 18= .04.<br> >> That now gives me PHP 7.2. I'm using cURL for a NextCloud inst= ance<br> >> (that was running quite happily). Now my NextCloud instance is giv= ing<br> >> me the following message when I go to the login page:<br> >><br> >> "PHP module cURL not installed.<br> >> Please ask your server administrator to install the module.<br> >> PHP modules have been installed, but they are still listed as miss= ing?<br> >> Please ask your server administrator to restart the web server.&qu= ot;<br> >><br> >> Running 'php -m' lists curl as being there, and curl.so is= indeed<br> >> present at /usr/lib/php/20170718/curl.so<br> >><br> >> Why isn't PHP seeing cURL? And what's the solution?<br> >><br> >> For info, there is a pastebin of my /etc/php/7.0/apache2/php.ini a= t<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"_blank">http://pasted.co/6930a601</a><br> >><br> >> 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> >><br> >> Many thanks in advance for any help,<br> >><br> >> Dave<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/mail= man/listinfo/curl-and-php</a><br> ><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/= listinfo/curl-and-php</a><br> ><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==--