Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    didoex is offline Junior Member
    Join Date
    Feb 2012
    Posts
    5

    Default how disable and enable function

    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....
    not found
    so how can i disable and enable function ...........
    my vps is centos .....plesk10

  2. #2
    suwunk is offline Super Moderator
    Join Date
    Aug 2010
    Posts
    1,080

    Default

    Hi There,

    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?
    Please contact customer support if you still have any problems.

    Cheers
    Last edited by suwunk; 2012-02-21 at 07:22 AM.

  3. #3
    didoex is offline Junior Member
    Join Date
    Feb 2012
    Posts
    5

    Default

    ok i success to access SSH and find php.ini how enable this function Curl ???

  4. #4
    suwunk is offline Super Moderator
    Join Date
    Aug 2010
    Posts
    1,080

    Default

    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:
    PHP Code:
    <?
    echo phpinfo();
    ?>
    when you run phpinfo.php, look for the CURL section, if you have it enabled, it will say something like this:
    Attachment 72

    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

    Cheers
    Attached Images Attached Images
    Last edited by suwunk; 2012-02-21 at 08:19 PM.

  5. #5
    didoex is offline Junior Member
    Join Date
    Feb 2012
    Posts
    5

    Default

    thanksssssssssss


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts