Archived

This forum has been archived. Please start a new discussion on GitHub.

help

hi,

Have anybody succedded in using Ice PHP 1.01? I try my best but the browser always told me: :counfused:

Fatal error: unable to create Slice types: in C:\Program Files\Apache Group\Apache2\htdocs\hello.php on line 9

The PHP's version is 5.0b2. The Apache server's version is 2.0.48. What is wrong?

Comments

  • mes
    mes California
    Hi,

    We're about to release new versions of Ice and IcePHP, and I just finished running the IcePHP hello demo using PHP5b4 and Apache 2 on Windows 2000. Here is what I did:
    • Copied php5ts.dll to C:\WINNT\system32
    • Copied the Ice DLLs and all third-party dependencies to C:\WINNT\system32
    • Created C:\icephp
    • Copied php_ice.dll to C:\icephp
    • Copied Hello.ice to C:\icephp
    • Copied php.ini-dist from the PHP source directory to C:\Program Files\Apache Group\Apache2\php.ini
    • Added the following lines to C:\Program Files\Apache Group\Apache2\php.ini:

      extension_dir = "C:/icephp"
      extension = "php_ice.dll"
      ice.slice = "C:/icephp/Hello.ice"
    • Copied hello.php to C:\Program Files\Apache Group\Apache2\htdocs
    • Edited hello.php to remove the SSL endpoint from the proxy
    • Added the following lines to httpd.conf:

      LoadModule php5_module C:/php-5.0.0b4-Win32/php5apache2.dll
      AddType application/x-httpd-php .php
    Finally, I started the hello server on the same machine, pointed my browser at hello.php, and it worked fine.

    Hope that helps,
    - Mark
  • Thanks, mes. Now everything is ok. We are looking forward to see your new release.