I am currently trying to enable cURL on my EC2 server (free tier).
I set php5_curl and I can run curl through php via SSH.
I use the following file to check if cURL is installed correctly.
testCurl.php
<?php function _iscurlsupported() { if (in_array ('curl', get_loaded_extensions())) { return true; } else { return false; } } if (_iscurlsupported()) { echo "cURL is supported\n"; } else { echo "cURL isn't supported\n"; } ?>
The command through ssh: php testCurl.php shows that curl is supported. The command, when I access it through a browser, shows that curl is NOT supported.
I checked the php.ini file located in php5 / apache2 (the php.ini file downloaded by the browser (tested through another script)), and the extension does not exist where to find it.
I checked the "extensions_dir" directory located on my server and the curl.so file is there.
I am not sure why I cannot run curl when accessing my script through a browser.
Any help would be greatly appreciated.
Cheers, jt234
Note. If you need more information, please ask. My problem is similar (if not the same). It is not possible to use PHP twist at amazon ec2 free level , but the problem has not been resolved.
rmplanner
source share