Firstly,I should introduce my environment:
linux 5
apache 2.2.4
php 5.2.3
mcpp 2.7
db 4.6.21.NC
ice 3.2.1
icephp 3.2.1
this is my installed process:
#apache
cd ../${httpd_version}
./configure -prefix=$httpd_dest --enable-so
make
make install
#mcpp
cd ../${mcpp_version}
patch -p0 < ../mcpp/mcpp-2.7.patch
patch -p0 < ../mcpp/mcpp-2.7.patch2
./configure CFLAGS=-fPIC --enable-mcpplib --disable-shared
make
make install
#db
cd ../${db_version}/build_unix/
../dist/configure --enable-cxx
gmake
#ICE
cd ../../${ice_version}
make
make install
#PHP
cd ../${php_version}
./configure --prefix=$php_dest --with-mysql=$mysql_dest --with-apxs2=$httpd_dest/bin/apxs --enable-track-vars --with-config-file-path=$httpd_dest/conf --enable-ftp --enable-magic-quotes --enable-mbstring --enable-mm=shared --enable-safe-mode --enable-trans-sid --enable-wddx=shared --enable-xml--with-curl --with-openssl --with-xmlrpc --enable-sockets --with-pdo-mysql=$mysql_dest
make
make install
#ICEPHP
cd ../${icephp_version}
cp $source_dir/Make.rules ./config/ -f
export ICE_HOME=/opt/Ice-3.2.1
export PHP_HOME=$php_dest
make
make install
After installation, apache can run correctly,but when I add something as below in php.ini:
extension=IcePHP.so
ice.profiles=/myPHPpath/etc/ice.profiles
And modify the extension_dir to another dir where I put IcePHP.so in it.
Then I create a file(ice.profiles) and a folder(ice.slices) in /myPHPpath/etc
and copy your demo --hello.ice into ice.slices, add some content in ice.profiles:
ice.slice=/myPHPpath/etc/ice.slices/Hello.ice
Then add the directory containing icecpp.exe in my PATH
Now I start apache, the result is:
sh: icecpp: command not found
PHP Fatal error: Unable to start ice module in Unknown on line 0
Why?I tried so hard but can't solve it~~Please help me~~Thank YOU very much!!
My English is poor, forgive me please!

Reply With Quote
