Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-07-2006
g00fy g00fy is offline
Registered User
 
Name: Salvania
Organization: Salvania
Project: Database systems
 
Join Date: Dec 2005
Posts: 45
Send a message via ICQ to g00fy
-->
Unhappy [icePHP] strange behaviour

Hi,


I just encountered a strange behaviour in setting up a (windows) webserver with icePHP.

Let me first layout what I use:
Development-system: VS .NET 2003 (+ ice 3.1.0 for 7.0)
Deployment-system: Nothing but an apache and php configured into it.

The apache server is 2.0.59, php version is 5.1.4 (same as on the development machine). The php is configured into the apacheserver via the "LoadModule php5_module "C:/PHP/php5apache2.dll""-way.

I added the PHP-path to the system variables. In this directory I added all the needed files (from the readme) from the ICE-3.1.0-VC60 + the stlport from the ThirdParty .msi's. the php_ice.dll I put into the extensions dir.

inside the php.ini, i load the ice-plugin as well as setting the 'ice.slice' (I checked for caps) to '-I/release/slice /release/slice/file1.ice /release/slice/file2.ice'.

Now the weird behaviour...

If I just go to a commandprompt and do:
Code:
php -r "ice_loadprofile(); ice_dumpprofile();"'
it shows a bunch of php-classes and stuff... All correct I have to say (no wrong generations or whatever).

Now when I surf to 'localhost/index.php' (containing also those commands), the only thing I get is:
Code:
Ice profile: __default__

Ice configuration properties: <none>

PHP code for Slice types:

class Ice_Identity
{
public $category;
public $name;
}
class Ice_EndpointSelectionType
{
const Random = 0;
const Ordered = 1;
}
This looks to me like the default generated ICE-base for the php-plugin...

My question here is where my test1/2.ice interfaces disappeared to?
__________________
Steven Van Ingelgem
Salvania [http://www.salvania.be/]
Product Descr.: Statistical data analysis
Reply With Quote
  #2 (permalink)  
Old 09-08-2006
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 976
Hi,

It looks like IcePHP was unable to successfully load your Slice files. Did you check the Apache logs for error messages? This typically occurs when IcePHP cannot run icecpp.exe successfully, or when it does not have sufficient privileges (while running as the Apache process) to access your Slice files.

Hope that helps,
- Mark
Reply With Quote
  #3 (permalink)  
Old 09-09-2006
g00fy g00fy is offline
Registered User
 
Name: Salvania
Organization: Salvania
Project: Database systems
 
Join Date: Dec 2005
Posts: 45
Send a message via ICQ to g00fy
-->
Hi Mark,

The apache logs doesn't show any error. Even not when I turn the debuglevel from both PHP and apache to 'debug'-level. And when I start the apache process from the command prompt, 2 command windows quickly pop up, with the first one containing a lot of source. I managed to stop it, and it's the output from the icecpp-file.

Permissions I don't think is the problem as it's a development machine and I am running everything like Administrator.

Do you have any idea why this is happening? Ice 3.0.1 works without a problem...
__________________
Steven Van Ingelgem
Salvania [http://www.salvania.be/]
Product Descr.: Statistical data analysis
Reply With Quote
  #4 (permalink)  
Old 09-09-2006
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 976
Hi,

Is it possible that IcePHP is using the VC7 version of the Ice run time? I've seen some erratic behavior when the incorrect run time library is used.

- Mark
Reply With Quote
  #5 (permalink)  
Old 09-09-2006
g00fy g00fy is offline
Registered User
 
Name: Salvania
Organization: Salvania
Project: Database systems
 
Join Date: Dec 2005
Posts: 45
Send a message via ICQ to g00fy
-->
Well, that was my thinking too... But I ruled that out... My setup is like this:

1) the files from the Ice-3.1.0-VC60\bin directory are located in the PHP-directory.
2) the php_ice.dll goes into the ext-directory.
3) The (system wide) path variable has been added the php-directory into.

4) The server.exe-directory have the files from the Ice-3.1.0-directory (VC71), and inside this directory there is a dir called 'slice' where the ice-files resides. None of this directories are inside the path-variable.

As far as I can guess they take the correct dll's.

Running filemon I can see it tries a lot of directories finally ending up with the php-directory where it finds icecpp.exe and other dll's...

In a previous post I already got answered that ice for php only is included with the VC60 release because the newer ones are not supported... That's also why I took the files from the VC60 release-msi, and not the VC71...


Do you have any other options I could investigate?


Thanks
__________________
Steven Van Ingelgem
Salvania [http://www.salvania.be/]
Product Descr.: Statistical data analysis
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange SEGV ... joel vennin Help Center 3 08-02-2006 05:10 AM
Ice 3 and the new behaviour with -h 0.0.0.0 mario Comments 2 02-28-2006 01:18 PM
strange exception using IceStorm istvan Bug Reports 5 12-16-2004 12:10 PM
Some strange errors from MSVC.net aerowyn Help Center 7 11-05-2004 05:32 PM
Strange Behaviour galbe Help Center 5 10-19-2003 11:45 PM


All times are GMT -4. The time now is 11:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.