Results 1 to 3 of 3

Thread: curl error 500 IIS

  1. #1
    kdbict is offline Member
    Join Date
    Oct 2010
    Posts
    8

    Default curl error 500 IIS

    Hi
    I am trying to get sugar working on windows - versions;
    SBS 2008 x64
    IIS 7
    PHP 5.4.12
    SQL 2008
    Sugar 6.0.2

    I get the warning about curl not being installed during the install process.
    I then re-ran the php installer and added curl.

    when I enable curl in PHP I get 500 - Internal server error.

    If I remark out the section in php.ini below it works (except I get the install error saying curl isnt installed).
    [PHP_CURL]
    extension=php_curl.dll

    when I run the phpinfo script with curl turned on I get the php info - BUT cant see curl anywhere in it. should it be listed?

    I have uninstalled php and reinstalled with all options needed for my implmentation (i think) -Imap, Curl, mbstring, ldap, openssl - on and same result. the error only occurs with curl enabled.

    I really want to get this going and have read posts and tried numerous options to no avail.
    Please dont advise apache etc (I understand this would be a better implementation but...) - I would really like to get this stack working if I can as it fits our clients architecture.
    Any help much appreciated.
    Thanks
    Kelvin

  2. #2
    kdbict is offline Member
    Join Date
    Oct 2010
    Posts
    8

    Default Re: curl error 500 IIS

    Hi - still banging my head against this one.
    I have also found the following in the phplog file;
    fopen(C:\inetpub\wwwroot\sugar/include/javascript/sugar_grp_quickcomp.js) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in C:\inetpub\wwwroot\sugar\include\utils\sugar_file_ utils.php on line 106

    I see on some other posts that this is due to permissions. I have tried some combinations with allowing IIS_User modify rights on the include\ folder - but no luck.


    any help really appreciated as I really want to get this going!
    cheers
    Kelvin

  3. #3
    kdbict is offline Member
    Join Date
    Oct 2010
    Posts
    8

    Default Re: curl error 500 IIS

    Hi
    ok fixed it.... man this took some figuring out. any errors are my own - but hey it works...

    right the php version I had was the root of the issue - but even then there were some extra steps... so;
    download php-5.3.3-Win32-VC9-x86.msi (make sure it is the threadsafe version)
    install with the extension you need (my list - essentials (well for me);
    cUrl, LDAP, IMAP, Multi-Byte string, Open SSL
    optional (I dont know if you need these but dont think so - however they were on by default so I left them for now)
    PDO (defaults), PostgreSQL, SOAP, Sockets, SQLite3,

    I installed to c:\php

    then download the MS sql driver - SQLServerDriverForPHP11.EXE from http://www.microsoft.com/downloads/e...a-5052214caad9
    and extract the files.

    Copy the file php_sqlsrv_53_ts_vc9.dll to c:\php\ext

    edit php.ini and change / add the following;
    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 12M

    Then add the section below to the end of the file;

    [PHP_SQL]
    extension=php_sqlsrv_53_ts_vc9.dll


    ; open_basedir, if set, limits all file operations to the defined directory
    ; and below. This directive makes most sense if used in a per-directory
    ; or per-virtualhost web server configuration file. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ;

    open_basedir = c:\inetpub\wwwroot\sugar
    NOTE - the basedir should be your website!!!


    restart IIS and it all worked!!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. curl error
    By atik in forum Developer Help
    Replies: 2
    Last Post: 2009-03-18, 06:07 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. CURL Instalation error
    By ambrish in forum Help
    Replies: 0
    Last Post: 2007-01-19, 07:16 AM
  4. curl
    By JohanS in forum Help
    Replies: 1
    Last Post: 2006-07-20, 09:04 PM
  5. Error with cURL (email settings...)
    By thomavista in forum Help
    Replies: 2
    Last Post: 2006-01-19, 09:31 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
  •