P
The CURL supports various protocols such as “IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, SMTP, SMTPS, TELNET, and TFTP”.
Jump To:
- Install CURL- Conventional Method
- Install CURL on PHP-7.2
- Restart Apache Server
- Restart Nginx Server
- Verdict
Install CURL on Ubuntu Server:
sudo apt-get install curl
The above command is the conventional method to install the CURL application in Ubuntu server. Just copy the above command and paste in Ubuntu Terminal, then hit the “Enter” button. If the above command won’t install CURL and then follow the below steps to install the CURL application after updating Ubuntu 18.04.
Install CURL on PHP-7.2 After Updating Ubuntu 18.04:
sudo add-apt-repository ppa:ondrej/php
The above command will install the PHP libraries for your Server.
sudo apt update
Now, update the server using the above command
sudo apt install php7.2-fpm php7.2-gd php7.2-curl php7.2-mysql php7.2-dev php7.2-cli php7.2-common php7.2-mbstring php7.2-intl php7.2-zip php7.2-bcmath
The above command will help you install CURL on PHP-7.2 after updating Ubuntu 18.04. The above command will enable CURL on Ubuntu 19.04 Disco Dingo editions too.
Restart Apache Server:
After enabling the CURL on Ubuntu 18.04 PHP-7.2 Server. You just need to restart your Apache Server.
sudo service apache2 restart
You can use the above or below command to restart your Apache Server.
sudo /etc/init.d/apache2 restart
Restart Nginx Server:
If you are using the Nginx server, then you need to restart your Nginx server after installing CURL with PHP-7.2 on Ubuntu 18.04 Server.
sudo systemctl restart nginx
You can use the above or below command to restart your Nginx Server.
sudo /etc/init.d/nginx restart
Verdict:
In this article, we added the information about install and enable the CURL with PHP-7.2 after updating on Ubuntu 18.04. If you have any queries or need an update in this article and then feel free to comment or contact us.
3 Comments
Leave a Reply