Skip to Content
author's profile photo Former Member
Former Member

How to get SAPRFC working on XAMPP 1.6.2? Try this.


I have just managed to get SAPRFC working with XAMPP 1.6.2 (released on 29/05/2007). I noticed there was not much information on XAMPP in the PHP Development forum, so thought this might be useful for anyone who may wish to use it.

I originally started with Craig Cmehil's post <a href="/people/sap.user72/blog/2005/05/15/getting-started-with-php started with PHP</a>. I already had XAMPP installed, so just needed to update it and add SAPRFC support.

I am using the following:

Windows XP SP2

XAMPP 1.6.2 -">>

This includes:

1. Apache 2.2.4

2. MySQL 5.0.41

3. PHP 5.2.2 + 4.4.7 + PEAR + Switch

4. And other modules included. See XAMPP website for more information on the extra modules included.

SAPRFC 1.4-5.20 - php-52-and-saprfc-141. This provided me with a link to SAPRFC 1.4-5.2.0. Using the php_saprfc.dll file included in this ZIP file solved the problem.


1. Install XAMPP and follow setup taking defaults (I installed to C:\DEV\XAMPP)

2. Extract SAPRFC to a suitable location (e.g. C:\DEV\SAPRFC)

3. Copy the php_saprfc.dll file to the XAMPP\PHP\EXT folder (as defined in the extensions_dir in PHP.INI).

4. Copy the remainder of the SAPRFC ZIP file to the XAMPP\HTDOCS folder. Create subdirectory if required.

4. Edit PHP.INI and add the line <i>extensions=php_saprfc.dll</i> You will need to add this after the last <i>extensions=<some_extension>.dll</i> line.

5. Shutdown and restart Apache using the XAMPP Control.

6. Launch Internet Explorer and go to page <i>http://localhost/saprfc_test.php</i> or if you have put the SAPRFC PHP files in a subdirectory go to <i>http://localhost/yoursubdirectory/saprfc_test.php</i>.

7. By running the saprfc_test.php file you should see a logon page.

It should now be working on the PHP 5.2.2. I have not tested with the 4.4.7 version.

That's all you need to do, so you should now be able to test some of the examples that are in the Blogs.

Best of luck


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2007 at 11:19 AM

    hi nick,,

    I have done with the settings but still this message is showing...

    SAPRFC extension not loaded

    Message: This script use SAPRFC extension module for PHP and the extension isn't loaded. You can download it with installation instructions from If you have already the extension compiled and installed, check your php.ini configuration

    can you please help me..i have xamp 1.6.3a

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      can you tell me what number i need to mention...and also for the follwoing fields

      Message server: ?????

      R/3 system name: ????

      Logon group: ????

      Language: EN

      ?? trace (RFC debug info to syslog)

      ?? authenticate user login data (if not set, the RFC connection is opened only)

      SAP Codepage: ???



  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 08:39 AM

    Hello everybody,

    I've found simple solution for all problems with "Generate Activation Context failed for ... php_saprfc.dll". This has something to do with missing libraries at your system.

    The next trace in Event viewer -> System was:

    "Dependent Assembly Microsoft.VC80.CRT could not be found and Last Error was The referenced assembly is not installed on your system.

    The solution is install: Microsoft Visual C++ 2005 Redistributable Package (x86)

    "vcredist_x86.exe" available at Microsoft downloads page.

    Good luck


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.