[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] PHP session control failure - help please



> Hi everybody
> 
> I was doing some testing on sessions and as PHP pkg is not compiled 
> with the --enable-trans-sid  option, I enabled the session.auto_start 
> in the php.ini file (in both httpd and admserv). Reloaded 
> httpd and now 
> any page using 'session_start()' doesn't work. I know its 
> this, because 
> when comented it show the proper page - w/o SID !! -.
> I disabled the session.auto_start and restarted http and admserv and 
> still doesn't work.
> Help please, none of my session enabled sites are working properly.
> 
> ...or maybe someone can lead me in how to recompile PHP ?
> 

Hi,
I'm not sure on the transaction/session control of PHP as I haven't used
it myself as yet, however recompiling I can help :)
Firstly, what Raq/Qube are we on here?

I've successfully managed to recompile php on raq3's and raq4's and to a
limited degree the Qube3's.
On the Raqs, all you need to do is download the latest source from php
(in tar.gz format), unpack, compile with the settings you need then
install, making sure the php.ini is pointed into /etc/httpd/php.ini and
that the apxs path is set to. Here is an example I use on a Raq3:
./configure --with-apxs --enable-ftp --with-mysql
make

Then you need to do a little 'tweak' to apxs:
edit /usr/sbin/apxs (use pico or vi)
Line 80:
my $CFG_SBINDIR       = '/usr/sbin';       # substituted via APACI
install

Note the change to the line I've shown, I think originally it shows a
different path.
Also,
Line 203:
($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+S+W+iaA", @ARGV);
There is a slight change, so easiest is to comment the original, copy
and paste the one I've got above.

After doing that do a
make install
And it should compile happily and work with apache (don't forget to
restart the webserver with /etc/rc.d/init.d/httpd restart)

Hopefully, that'll have you up and running :)

Andy
andy@xxxxxxxxxxxxxxxxxxxxx
http://ineedlinux.info/