Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Insatllation: "getting past go"

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 8892 Views
  • Bruce
    Avatar
    Community Member
    29 Posts

    Insatllation: "getting past go" Link to this post

    Hi,
    ... & help.
    I'm trying to install onto a Linux box.
    Red Hat   Linux 2.6.20-1.2320.fc5
    (MySQL 5.0.27)
    (PHP version 5.1.6)
    When I run up the Silverstripe install page, it says "happy campers" *except for:
    1. (in red) GD2 support
    and
    2. "Check that the php.ini setting allow_call_time_pass_reference is on"

    Now the second one I'm picking is a warning only,

    ... but the cryptic "GD2 support"
    tends to suggest I need some "GD2"
    ... so I went & got gd-2.0.35 from www.libgd.org
    and did all the configure/make install routine, only to discover, that the
    php configure parameter --with-gd" needs to be added to the configure line.
    So do I have to now also manually configure php ,make & install to get this going ...
    I'm a bit reluctant to dive in here unless needed.

  • SirSpammenot
    Avatar
    Community Member
    9 Posts

    Re: Insatllation: "getting past go" Link to this post

    I think you are correct. You are going to recompile php no matter what you do.

    My suggestion is to update to newer php if possible. I was using 5.12 and found object handling problems only marked fixed in 5.2.0 version. Minimum php version for SS is actually 5.2 according to download page.

    My old (v10.2) openSuSE box is now 5.2.5 and runs OK.

    Is this your test box, a production box, or a hosted server?

  • Bruce
    Avatar
    Community Member
    29 Posts

    Re: Insatllation: "getting past go" Link to this post

    Okay, I decided to bite the bullet and upgrade php.
    seeing as I would need to re-build it anyway, so I got php 5.2.5 and then ...

    I took the current php configure settings (from phpinfo() ) and used them for 'configure'.
    I'll spare you the sordid details, but after installing pcre, pspell etc, I got a clean 'configure' run.
    'make' seemed to be happy too, but when I got to "make test" things went horribly wrong.

    [root@fedora php-5.2.5]# make test

    Build complete.
    Don't forget to run 'make test'. (sic)

    PHP Warning: PHP Startup: ldap: Unable to initialize module
    Module compiled with module API=20050922, debug=0, thread-safety=0
    PHP compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
    in Unknown on line 0
    PHP Warning: PHP Startup: mysql: Unable to initialize module
    Module compiled with module API=20050922, debug=0, thread-safety=0
    PHP compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
    in Unknown on line 0
    ... etc

    I had removed a parameter '--with-apxs2=/usr/sbin/apxs' which was proving problematic as the files didn't seem to be available, but I don't think that is related.
    This seems to be indicating a need to now re-build all the other applications!
    This is my development box, & I don't what to blow away the system by doing something foolish.
    Can anyone advise where I have gone wrong?

  • SirSpammenot
    Avatar
    Community Member
    9 Posts

    Re: Insatllation: "getting past go" Link to this post

    This is why I stopped fearing and learned to love package management (Its the bomb).

    The libraries that php is calling for LDAP and mySQL access are old... and they didn't get updated when you updated php. So now your php-lib-mysql versions are out of sync. Fear not you are very close...

    From: http://www.php.net/mysql
    Requirements
    In order to have these functions available, you must compile PHP with MySQL support.
    Installation
    For compiling, simply use the --with-mysql[=DIR] configuration option where the optional [DIR] points to the MySQL installation directory.

    So just another compile, add in mysql and LDAP switches (with the correct paths to the mySQL/LDAP sources). Note you may need the sources for the client(s) too - cannot remember. There are more detailed instructions on the php site too.

    email me directly if you want to - I can't check the forum every day like I want.

  • Bruce
    Avatar
    Community Member
    29 Posts

    Re: Insatllation: "getting past go" Link to this post

    Ummm...
    yeah, so

    yum install php-gd


    then re-start httpd
    did the job.
    Kind of embarrassingly simple.
    Installing SilverStripe...
    Installed SilverStripe successfully.
    ... now the fun begins!

    8892 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.