At this point, you need to uncomment the line by removing the semicolon at the beginning of the line, as below.Īfter saving the file, restart the Apache server. Step 2: Then, update the server: sudo apt update. Load the “php.ini” file located into your favorite text editor (if you are using Windows, we suggest Notepad++), then search for “php_curl”. 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. PHP CURL is a library, this can helps to communicate with other. ) sudo apt-get install python-software-properties: sudo add-apt-repository ppa:ondrej/php: sudo apt-get update: sudo apt-get install -y php5.6: heck Installed PHP Version: php -v: Install PHP 5.6 Modules: Show available PHP Modules list: sudo apt-cache search php5.6- Install modules which is. I assume you have downloaded the latest version as explained in the prerequisite section. Install PHP 5.6 On linux (Debian, Ubuntu, Mint. Step 2: Enable cURL extension in the “php.ini” file Install CURL PHP extension CentOS/Ubuntu. It will take a few seconds to complete, and once done you can verify the version to ensure it has installed successfully. So Im struggling to get php curl installed on my windows xp professional machine and Ive probably tried 5 different sites which either dont work or refers to missing file references like the ca. On Linux, it depends on which Linux distro the server is installed with, so you might need to run the appropriate command.įor example, with Ubuntu/Debian server, you need to run this command: sudo apt-get install php5-curlĪfter that, restart the Apache server: sudo /etc/init.d/apache2 restartĪfter the Apache server has restarted, the extension should be enabled by default. Fortunately, the cURL extension is pre-installed with those bundles, so you can proceed to Step 2. On Windows, people often use WAMP (Windows, Apache, MySQL, PHP) bundles for local development. Go to the ext directory of your php installation and copy phpcurl.dll to the Windows/system32 folder after you have followed the advise given elsewhere. Step 1: Ensure cURL extension for PHP is installed
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |