[Klug-general] Updating PHP

Nathan Friend nathan.friend at gmail.com
Fri Oct 3 12:13:20 UTC 2008


Thanks Allen there's a lot more to this than I initially thought.

PHP 5.2.6 now successfully installed, although I cant take the credit thank
you Stuart!  Next step is to recompile Apache so it can see the updated PHP
install.  Should keep me busy this weekend...

Nathan.

On Fri, Oct 3, 2008 at 10:03 AM, AllenJB <allen at allenjb.me.uk> wrote:

> You have '--disable-session', which is disabling session support.
> Judging from the error messages, sqlite support requires session support.
>
> Other issues:
>
> You should check the output of "./configure --help" to see if there are
> replacements for the options that have been removed. From the looks of
> it, using your new set of options will compile a CGI module, not an
> Apache2 module. Also make sure that the libraries are where configure
> looks for them. Consult Suse experts for this information.
>
> You're enabling magic_quotes. Be aware that this feature is deprecated
> and will be removed in PHP6 (finally!). Safe mode is also gone in PHP6.
>
> Memory limit is now a purely configure-time option. Iy no longer needs
> to be enabled at compile-time.
>
> AllenJB
>
> Nathan Friend wrote:
> > I'm attempting to upgrade PHP 4.4.0 on my server to 5.2.6.
> > <http://5.2.6.>  My configure command was:
> >
> > './configure' '--prefix=/usr' '--datadir=/usr/share/php'
> > '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share'
> > '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib'
> > '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin'
> > '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit'
> > '--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild'
> > '--disable-ctype' '--disable-session' '--without-mysql' '--disable-cli'
> > '--without-pear' '--with-openssl' '--with-apxs2=/usr/sbin/apxs2-prefork'
> > 'i586-suse-linux'
> >
> > But I had to take out
> > '--with-openssl'
> > '--with-apxs2=/usr/sbin/apxs2-prefork'
> > '--with-_lib=lib'
> > '--enable-memory-limit'
> >
> > and add
> > --enable-force-cgi-redirect
> >
> > for it to work without errors or warnings.  I guess there have been a
> > lot of changes in PHP since 4.4.0!
> >
> > When I run make all looks good until:
> >
> > ext/sqlite/sqlite.o: In function `zm_startup_sqlite':
> > /php-5.2.6/ext/sqlite/sqlite.c:1065: undefined reference to
> > `php_session_register_module'
> > ext/sqlite/sess_sqlite.o: In function `ps_gc_sqlite':
> > /php-5.2.6/ext/sqlite/sess_sqlite.c:186: undefined reference to
> `ps_globals'
> > /php-5.2.6/ext/sqlite/sess_sqlite.c:186: undefined reference to
> `ps_globals'
> > ext/sqlite/sess_sqlite.o:(.data+0x1c): undefined reference to
> > `php_session_create_id'
> > collect2: ld returned 1 exit status
> > make: *** [sapi/cgi/php-cgi] Error 1
> >
> > Any ideas?
> >
> > Cheers,
> >
> > Nathan.
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/kent/attachments/20081003/536c966d/attachment.htm 


More information about the Kent mailing list