View Full Version : how disable and enable function
2012-02-21, 04:46 AM
Hello every body
when i check some script on my hosting vps
the function curl not work !!!
so i search php .ini in this var/usr/local/etc....
so how can i disable and enable function ...........
my vps is centos .....plesk10
2012-02-21, 07:18 AM
File Manager and FTP doesn't allow you to access php.ini, You need to use SSH.
Or you can try this
KB Parallels: Where can I find the php.ini configuration file on the Plesk server? (http://kb.parallels.com/1447)
Please contact customer support if you still have any problems.
2012-02-21, 11:51 AM
ok i success to access SSH and find php.ini how enable this function Curl ???
2012-02-21, 08:13 PM
I think cURL is enabled by default on linux, Have you tried to check with phpinfo.php?
create a phpinfo.php file and upload to your website and open it. here is the code:
when you run phpinfo.php, look for the CURL section, if you have it enabled, it will say something like this:
If it's disabled
add the line extension=curl.so to your php.ini file, just put it at the end of the file and restart your server.
The easiest way is ask customer support to have it enabled for you
2012-02-22, 01:29 PM