note 54743 added to ref.msession

From: Date: Thu, 14 Jul 2005 09:18:15 +0000
Subject: note 54743 added to ref.msession
Groups: php.notes 
Request: Send a blank email to php-notes+get-91940@lists.php.net to get a copy of this message
We wanted to use the default-PHP4-RPMs delivered with RedHat and SuSE, and use msession, too. But there is no package containing the precompiled msession-support for PHP. So I did this on my own and I found it very hard, so I'd like to provide the solution here. The files php-msession-030117.tar.gz, phoenix-R1_2_030117E.tar.gz and msession-030130.tar.gz are available at www.mohawksoft.com. ## Compiling the phoenix lib tar xzf phoenix-R1_2_030117E.tar.gz tar xzf msession-030130.tar.gz cd phoenix/src/ cp Linux.mak config.mak vi unixgcc.mak (Now change "-I$(POSTGRES_HOME)/include" to "-I /usr/include/pgsql" which is needed to compile using SuSE 9.3) make mkdir ../lib make install ## Compiling msession server cd .. cd msession make mkdir ../bin make install ## Now untar PHP-Source and replace the files in ext/msession/ with the ones supplied by php-msession-030117.tar.gz ## Configure PHP and include --with-msession=shared,/path/to/phoenix-src-used-above ## Please note: Compile will fail if you use --disable-session or --disable-all ## For example use: ./configure --prefix=/usr/local --with-config-file-path=/etc --disable-all --enable-session --with-msession=shared,/home/sga/compile/phoenix make ## Now there is a msession.so in modules/, but this one does NOT work yet. ## I had to repeat the libtool-command with "--mode=link gcc" and add some libs: ## before the last parameter I added: ## -lstdc++ -lodbc -L/home/sga/compile/phoenix/lib/ -lphoenix ## This was the command I used (you will have to use other paths of course) /bin/sh /home/sga/compile/php-4.3.10/libtool --silent --preserve-dup-deps --mode=link gcc -DPHP_ATOM_INC -I/home/sga/compile/php-4.3.10/include -I/home/sga/compile/php-4.3.10/main -I/home/sga/compile/php-4.3.10 -I/home/sga/compile/php-4.3.10/Zend -I/home/sga/compile/php-4.3.10/ext/xml/expat -I/home/sga/compile/php-4.3.10/TSRM -g -O2 -o ext/msession/msession.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/sga/compile/php-4.3.10/modules -lstdc++ -lodbc -L/home/sga/compile/phoenix/lib/ -lphoenix ext/msession/msession.lo ## Now I could do: cp ext/msession/.libs/msession.so /usr/local/lib/php/extensions/no-debug-non-zts-20020429 ## (Please note the different location I copy the module from) ## Adjust your php.ini to contain "extension=msession.so" and ## "extension_path =/usr/local/lib/php/extensions/no-debug-non-zts-20020429" rcapache2 restart ## Now it worked fine! I hope this helps someone. ---- Manual Page -- http://www.php.net/manual/en/ref.msession.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54743 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54743&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54743&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54743&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54743&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54743&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54743&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54743&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#91940) next »