![]() ![]() Most hosting providers today already have Curl installed on their server. Its Super Easy simply click on Copy button to copy the command and paste into your command line. STEP 2: download the latest PHP tarball, decompress it, then cd to the new directory. Create a directory for the PHP binaries to live. Check the PHP information page again, you will find PHP-CURL installed Quick Install Instructions of php5-curl on Ubuntu Server. So you dont overwrite any existing PHP installs on your system, install PHP in your home directory.Then I was stupid by trying to install php5-curl on the server. Save the file and restart apache with this command: /etc/init.d/apache2 restart I have been using lighttpd for many years now and it has worked wonderfully with PHP.After it finish open php.ini file (mine is at /etc/php5/apache2/php.ini ) and add this command: extension=curl.so.Open your terminal and type this command: sudo apt-get install curl libcurl3 libcurl3-dev php5-curl php5-mcrypt Unable to locate package php5-curl 1-> PHP 7.0: sudo apt-get install php7.0-curl 2-> PHP 7.1: sudo apt-get install php7.1-curl 3-> PHP 7.2: sudo apt-get.Step 2: Then, update the server: sudo apt update. Then Restart Apache by typing sudo service apache2 restart 3. Following are the steps for the installation of PHP-CURL on your Ubuntu system: Step 1: Install PHP libraries for the server by running the following command: sudo add-apt-repository ppa:ondrej/php. To install php-curl please follow this steps: First Install CURL by typing sudo apt-get install curl 2. You can install things after running yum search XXXX, such as yum search php-cli, it shows packages matching your need. Search for Curl, and if you cannot find it, it mean your php doesn’t have curl installed. ![]() Now you will see the Information about your PHP installation.Open your favorite browser and open that file (ex:.Create a file in your web server (in Ubuntu it would be in /var/www folder), name it info.php.Okay, now let’s start with check if php-curl is already installed in your server or not. This time i want to share with you how to install Curl in PHP5 in Linux Environtment (I’m using Ubuntu 8.10) and using apache web server, but if you have any question to install php-curl in other environment, feel free to contact me of leave any comment, i will glad to help you. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |