Results 1 to 9 of 9

Thread: cURL module

  1. #1
    petecorbs is offline Senior Member
    Join Date
    Dec 2008
    Posts
    24

    Default cURL module

    Hi
    After a few probs with set up on my web server i am setting up on my local machine using the xampp enviroment (1.7.0)
    php 5.2.8
    mysql 5
    sugar 5.2

    all has gone well except for an error on the system envoroment check i am receiving the error cURL module doesnt exist.
    I have set up xampp without ftp service activated is this the cause or do i have to add something to the php.ini file to activate cURL

    Thanks

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: cURL module

    In your xampp folder go to apache\bin and open php.ini. Find this line:

    ;extension=php_curl.dll

    and remove the semi-colon so it looks like:

    extension=php_curl.dll

    and save. Restart Apache and you should be good to go.

  3. #3
    dwilson is offline Junior Member
    Join Date
    Aug 2007
    Posts
    1

    Default Re: cURL module

    My php.ini looks like this....

    Code:
    ; Windows: "\path1;\path2"
    include_path = ".;C:\xampp\php\pear\"
    doc_root =
    extension_dir = "C:\xampp\php\ext\"
    ;extension=php_cpdf.dll
    ;extension=php_crack.dll
    extension=php_curl.dll
    ;extension=php_cvsclient.dll
    ;extension=php_db.dll
    My batch file looks like this....

    Code:
    cd c:\xampp\htdocs\crm
    c:\xampp\php\php-cgi.exe -c c:\xampp\php\php.ini -f cron.php
    I am still getting the following message in the "scheduler" section....

    Code:
    This system does not have the cURL libraries enabled/compiled into the 
    PHP module (--with-curl=/path/to/curl_library). 
    Please contact your administrator to resolve this issue. 
    Without the cURL functionality, the Scheduler cannot thread its jobs.
    I have restarted the Apache service and the whole server. No change.

    I am using the following versions....

    Code:
    Windows 2003 Small Business Server SP2
    Sugar Community Edition Version 5.2.0 (Build 5380)
    XAMPP 1.70
      - Apache 2.2.11
      - PHP 5.2.8
      - MySQL 5.1.30
    Please Advise.

    Thanks,

    Darren

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: cURL module

    Have you tried looking at the output of phpinfo() to see if curl is indeed enabled?
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  5. #5
    teldarren is offline Senior Member
    Join Date
    Jan 2009
    Posts
    41

    Default Re: cURL module

    Thank you for bringing that to my attention. it is NOT....

    CONFIGURE COMMAND SECTION OF PHPINFO
    Code:
    cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" 
    "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" 
    "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" 
    "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" 
    "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared"
    Now this brings me to my next question...

    How do I re-configure or re-compile PHP to include curl (--with-curl=/path/to/curl_library) in a Windows 2003 Server environment? While I am at it, I might as well disable the "oracle" modules or add-ons. we are not using it at all. And I don't know why its referencing a D: drive. I installed it all from XAMPP which was on the local C:.

    Thanks for your advice and input,

    Darren
    Last edited by teldarren; 2009-01-16 at 05:14 PM.

  6. #6
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: cURL module

    That most likely means you've edited the wrong php.ini file. I suggest doing a search on your whole computer for php.ini and edit each one. One of them is the correct one and once you've uncommented that line on the right one and restart apache everything should work fine.

  7. #7
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: cURL module

    Ditto.

    Also, the output from phpinfo() should tell you the location of the php.ini that is in play.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  8. #8
    teldarren is offline Senior Member
    Join Date
    Jan 2009
    Posts
    41

    Default Re: cURL module

    You guys are AWESOME! That did it.

    [FIX]

    I installed XAMPP 1.7.0 for Windows and by default it created a php folder with a php.ini and all the other php files and directories. I have been editing this file...

    Code:
    C:\xampp\php\php.ini
    I assumed this was the only php.ini file and have been racking my brains wondering why i was still getting the scheduler error in Sugar.

    After taking a closer look at the phpinfo output, per the really smart forum guys instructions, I found that another path was used.....

    Loaded Configuration File
    Code:
    C:\xampp\apache\bin\php.ini
    I uncommented php_curl.dll line in this file by removing the semi-colon...

    Before
    Code:
    ;extension=php_curl.dll
    After
    Code:
    extension=php_curl.dll
    I saved it, restarted Apache, and logged into Sugar and what do you know......the scheduler error was gone.

    Another thing I had to do was edit the batch file I created, per another cURL post I found in the forum.
    My new batch file is called sugarscheduler.bat and it has the following lines in it....

    Code:
    cd c:\xampp\htdocs\crm
    c:\xampp\php\php.exe -c c:\xampp\apache\bin\php.ini -f cron.php
    I have it running every 3 minutes via the Windows task scheduler. The task scheduler show the last result as...

    Code:
    0x0
    Not sure what that means, but i get no errors in sugar or in task scheduler, so I assume all is well????


    Additional NOTE.....

    My phpinfo also shows that the "Configuration File (php.ini) Path" is C:\WINDOWS
    I looked in that dir and found another php.ini file that contained some old CRM settings (from ......). I edited this file as mentioned above for good measure.


    Thanks,

    Darren

  9. #9
    osin is offline Junior Member
    Join Date
    Apr 2012
    Posts
    3

    Default Re: cURL module

    Thank you for the help. I use wamp and in wamp there are 2 php.ini files.
    File 1: C:\wamp\bin\apache\Apache2.2.21\bin\php.ini
    File 2: C:\wamp\bin\php\php5.3.10\php.ini
    Now it works fine.

    Quote Originally Posted by teldarren View Post
    You guys are AWESOME! That did it.

    [FIX]

    I installed XAMPP 1.7.0 for Windows and by default it created a php folder with a php.ini and all the other php files and directories. I have been editing this file...

    Code:
    C:\xampp\php\php.ini
    I assumed this was the only php.ini file and have been racking my brains wondering why i was still getting the scheduler error in Sugar.

    After taking a closer look at the phpinfo output, per the really smart forum guys instructions, I found that another path was used.....

    Loaded Configuration File
    Code:
    C:\xampp\apache\bin\php.ini
    I uncommented php_curl.dll line in this file by removing the semi-colon...

    Before
    Code:
    ;extension=php_curl.dll
    After
    Code:
    extension=php_curl.dll
    I saved it, restarted Apache, and logged into Sugar and what do you know......the scheduler error was gone.

    Another thing I had to do was edit the batch file I created, per another cURL post I found in the forum.
    My new batch file is called sugarscheduler.bat and it has the following lines in it....

    Code:
    cd c:\xampp\htdocs\crm
    c:\xampp\php\php.exe -c c:\xampp\apache\bin\php.ini -f cron.php
    I have it running every 3 minutes via the Windows task scheduler. The task scheduler show the last result as...

    Code:
    0x0
    Not sure what that means, but i get no errors in sugar or in task scheduler, so I assume all is well????


    Additional NOTE.....

    My phpinfo also shows that the "Configuration File (php.ini) Path" is C:\WINDOWS
    I looked in that dir and found another php.ini file that contained some old CRM settings (from ......). I edited this file as mentioned above for good measure.


    Thanks,

    Darren

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Curl Setup?
    By epoint in forum Help
    Replies: 1
    Last Post: 2008-08-04, 10:25 AM
  2. upgrade without curl...possible?
    By martinx in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-04-15, 11:29 AM
  3. PHP Warning: Module 'curl' already loaded in Unknown on line 0
    By Land in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-05-27, 02:07 PM
  4. curl
    By JohanS in forum Help
    Replies: 1
    Last Post: 2006-07-20, 09:04 PM
  5. The cURL module for PHP and Sugar
    By CyberFerret in forum General Discussion
    Replies: 3
    Last Post: 2006-02-13, 06:01 PM

Bookmarks

Posting Permissions

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