Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I only have access only to php.ini file and I want to be able to add curl extenssion to my linux machine. I don't have access to terminal.

I tried adding:

extension=curl.so

but it doesn't work.

Is it possible to add curl if only by FTP? Thanks.

share|improve this question
4  
"my linux machine" - if you do not have shell access, it is not your machine. Shared hosting right? Unless the webhost has added cURL support, you cannot use cURL. –  Lekensteyn Feb 6 '11 at 15:50
add comment

3 Answers

Is the curl php package installed? If it's not you will likely need to get an administrator to install it for you, or you will have to figure out how to install it as a non-root user in another directory.

share|improve this answer
add comment

If CURL module for php5 install(exist curl.so in /usr/lib/php5) and you have access to php.ini, you can add "extension=curl.so" in php.ini. CURL module must work. For test open scripts:

<?php phpinfo(); ?>

or

<?php var_dump(curl_init()); ?>

If the module is not installed, you need access to SSH(or control panel) with privileges root.

share|improve this answer
add comment

Could not fix it, but I was about to work around this, replaced the simple usage of curl with file_get_contents http://www.php.net/file_get_contents see also http://stackoverflow.com/a/1348490/782168

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.