Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-08-2005
silva silva is offline
Registered User
 
 
Join Date: Apr 2004
Location: China,shannxi
Posts: 7
Unhappy IcePHP, test okey,but apply demo error?help me

My env:

RedHat 9.0 (linux core:2.4.20-8)
Ice-2.1.2(source)
IcePHP-2.1.2
Apache2.0.54
PHP-5.0.4

first ,I have finsh the compile process of third party and Ice source, completed the test.

then,I compliled the php-5.0.4 with IcePHP, and install, test the info.php okey(php+apache okey),test the allTests.py okey(ice-php okey).

my php configure command is in the list,
HTML Code:
./configure --with-ice=shared,$ICE_HOME --with-libxml-dir=/usr/lib --with-apxs2=/usr/local/apache2/bin/apxs
I hava copy the IcePHP/demo/Hello to my webroot directory,and modify my php.ini,because i have not use profile ,then i add the ice.slice directly.
HTML Code:
ice.slice=/home/webroot/Hello.ice
extension_dir=/home/setupfiles/php-5.0.4/modules
extension=ice.so
when I use the firework to visite the http://127.0.0.1/hello.php, error occur,

Quote:
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Warning: Unknown: Failed opening '/home/webroot/hello.php' for inclusion (include_path='.:/usr/local/bin/php') in Unknown on line 0
when I enter the /usr/local/bin, and excute the "php -c php.ini -f /home/webroot/hello.php",there a quote occured,
Quote:
Fatal error: Call to undefined function Ice_loadProfile() in /home/webroot/hello.php on line 20
and I guess it may be a configure problem, and try some way, like,copy the icecpp to /usr/bin, like, copy the ice.so to anywhere ,hehe,but, have still the problem.

could you help me!
__________________
No man is born wise or learned!
Reply With Quote
  #2 (permalink)  
Old 07-08-2005
silva silva is offline
Registered User
 
 
Join Date: Apr 2004
Location: China,shannxi
Posts: 7
Cool

hehe, I have resolve the problem .

the reason is the privalege of my webroot folder . use the "chmod 755 -R /home/webroot
", then okey!

I am so naive!

thank you!
__________________
No man is born wise or learned!
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
a IcePHP compile error nightsuns Help Center 3 11-29-2005 06:41 AM
run demo\ice\hello, error!! wwj Help Center 7 06-15-2005 04:43 AM
Freeze test error wwwtiger Help Center 5 11-09-2004 10:15 PM
Why Run test errorH miaolin Help Center 1 11-05-2004 08:13 AM
Who can give me the readme of test and demo jeylee Help Center 0 12-08-2003 02:37 AM


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


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