# Ubuntu 18.04 server: 'PHP modulle cURL not installed'... but it is indeed installed

**URL:** <https://help.nextcloud.com/t/ubuntu-18-04-server-php-modulle-curl-not-installed-but-it-is-indeed-installed/35308>\
**Category:** ℹ️ Support\
**Tags:** ubuntu\
**Created:** [August 20, 2018, 2:21am UTC](https://help.nextcloud.com/t/ubuntu-18-04-server-php-modulle-curl-not-installed-but-it-is-indeed-installed/35308 "2018-08-20T02:21:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave2592](https://help.nextcloud.com/user_avatar/help.nextcloud.com/dave2592/32/6043_2.png) [@Dave2592](https://help.nextcloud.com/u/Dave2592)\
**Post date:** [August 20, 2018, 2:21am UTC](https://help.nextcloud.com/t/ubuntu-18-04-server-php-modulle-curl-not-installed-but-it-is-indeed-installed/35308/1 "2018-08-20T02:21:03Z")

</div>

I have been running NextCloud 13.05 on Ubuntu 16.04 and did a distribution upgrade to Ubuntu 18.04. So that now gives me php 7 rather than php 5.  
Now when I go to the login page, I get the following message:

- 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

But running ‘php -m’ does list the curl module.  
And I ran ‘phpenmod curl’ to make sure it’s enabled.

I read a thread in the ownCloud forums that suggested I should try uninstalling php 5 and its modules.  
So I ran

sudo apt-get purge `dpkg -l | grep php5| awk '{print $2}' |tr "\n" " "`

and restarted the server. No change, still get the error message.  
Has anyone else encountered this problem during a dist upgrade to Ubuntu 18.04?

Does anyone have the solution?

Thanks in advance for whatever help.

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [August 21, 2018, 12:31pm UTC](https://help.nextcloud.com/t/ubuntu-18-04-server-php-modulle-curl-not-installed-but-it-is-indeed-installed/35308/2 "2018-08-21T12:31:21Z")

</div>

> [@Dave2592](#):
>
> Has anyone else encountered this problem during a dist upgrade to Ubuntu 18.04?

Sure, dist upgrade are always a pain so that’s why it is not recommended to do. Better install a fresh system.

---

<div class="post-metadata">

**Author:** ![Tamsy](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tamsy/32/2081_2.png) [@Tamsy](https://help.nextcloud.com/u/Tamsy)\
**Post date:** [August 21, 2018, 1:00pm UTC](https://help.nextcloud.com/t/ubuntu-18-04-server-php-modulle-curl-not-installed-but-it-is-indeed-installed/35308/3 "2018-08-21T13:00:55Z")

</div>

Maybe Curl was not updated correctly with the distro uprade? For Ubuntu 18.04  
$ curl --version  
should say: **curl 7.58.0 (x86\_64-pc-linux-gnu) libcurl/7.58.0**

Take a look here: [http://www.codebind.com/linux-tutorials/install-curl-ubuntu-18-04-lts-linux/](http://www.codebind.com/linux-tutorials/install-curl-ubuntu-18-04-lts-linux/)

---

<div class="post-metadata">

**Author:** ![Sergio\_Basto](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sergio_basto/32/9795_2.png) [@Sergio\_Basto](https://help.nextcloud.com/u/Sergio_Basto)\
**Post date:** [September 15, 2018, 6:10am UTC](https://help.nextcloud.com/t/ubuntu-18-04-server-php-modulle-curl-not-installed-but-it-is-indeed-installed/35308/4 "2018-09-15T06:10:41Z")

</div>

This happened to me after run:

```
apt-get install clamav clamav-daemon

```

(…)  
The following packages will be REMOVED:  
libcurl3 php7.2-curl  
(…)

Ubuntu 18.04 server

---

<div class="post-metadata">

**Author:** ![wga22](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wga22/32/10886_2.png) [@wga22](https://help.nextcloud.com/u/wga22)\
**Post date:** [September 18, 2018, 1:19pm UTC](https://help.nextcloud.com/t/ubuntu-18-04-server-php-modulle-curl-not-installed-but-it-is-indeed-installed/35308/5 "2018-09-18T13:19:32Z")

</div>

The issue might be that your system has multiple php.ini files. I’m having the same issue after moving to Ubuntu 18 / PHP 7.2. curl is clearly installed, but cannot sort out what is not working.

---

<div class="post-metadata">

**Author:** ![wga22](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wga22/32/10886_2.png) [@wga22](https://help.nextcloud.com/u/wga22)\
**Post date:** [September 18, 2018, 5:58pm UTC](https://help.nextcloud.com/t/ubuntu-18-04-server-php-modulle-curl-not-installed-but-it-is-indeed-installed/35308/6 "2018-09-18T17:58:51Z")

</div>

I have solved the issue, at least in my case. The problem stemmed from fact that Apache was still using older version of PHP. So any missing libraries, were inaccessible via legacy PHP.

In short order, here is what the fix was:

> ```
> sudo a2dismod php5.1
> sudo a2enmod php7.2
> sudo service apache2 restart
> 
> ```

Some suggested reading: [https://tecadmin.net/switch-between-multiple-php-version-on-ubuntu/](https://tecadmin.net/switch-between-multiple-php-version-on-ubuntu/)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 7:33am UTC](https://help.nextcloud.com/t/ubuntu-18-04-server-php-modulle-curl-not-installed-but-it-is-indeed-installed/35308/7 "2024-12-04T07:33:47Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 3:09pm UTC](https://help.nextcloud.com/t/ubuntu-18-04-server-php-modulle-curl-not-installed-but-it-is-indeed-installed/35308/8 "2024-12-09T15:09:59Z")

</div>


