can't get 5.0.4 to work

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • spam

    #1

    can't get 5.0.4 to work

    Sorry, this is going to be a silly question, but I've been fighting it
    since Saturday...

    I'm installing on an iBook, so Mac OS-X. I get this.. 'PHP Version
    4.3.11' when running phpinfo(). I download the source for 5.0.4,
    configure it ..

    ../configure --with-pgsql=/usr/local/pgsql

    I then make && make install, and the installation finishes successfully.
    Following the instructions in the INSTALL file, I then edit my
    httpd.conf file, as follows ..

    LoadModule php5_module libexec/httpd/libphp5.so
    AddModule mod_php5.c

    (the first line is after I altered it, as there's no *.o file in
    libexec)

    I try to start apache ..

    /usr/sbin/apachectl start
    Syntax error on line 240 of /etc/httpd/httpd.conf:
    Cannot load /usr/libexec/httpd/libphp5.so into server: (reason unknown)
    /usr/sbin/apachectl start: httpd could not be started

    A find reveals that this file doesn't exist anywhere on the machine..

    Help! :-(

    ...
    --
    spam
  • Marcin Dobrucki

    #2
    Re: can't get 5.0.4 to work



    spam wrote:[color=blue]
    > Sorry, this is going to be a silly question, but I've been fighting it
    > since Saturday...
    >
    > I'm installing on an iBook, so Mac OS-X. I get this.. 'PHP Version
    > 4.3.11' when running phpinfo(). I download the source for 5.0.4,
    > configure it ..
    >
    > ./configure --with-pgsql=/usr/local/pgsql[/color]
    ....[color=blue]
    > A find reveals that this file doesn't exist anywhere on the machine..[/color]

    --with-apxs=<path to apxs>

    might help. On my Solaris box, the problem later is caused by
    missing .libs directory (libtool broken? -- the directory should be
    'lib'). I also need to copy the php cli binary by hand (only the
    wrapper scripts are installed by 'make install'. This has been
    happening since about 4.3.9 or something.

    /m

    Comment

    • spam

      #3
      Re: can't get 5.0.4 to work

      Marcin Dobrucki <Marcin.Dobruck i@TAKETHISAWAY. nokia.com> wrote:
      [color=blue]
      > spam wrote:[color=green]
      > > Sorry, this is going to be a silly question, but I've been fighting it
      > > since Saturday...
      > >
      > > I'm installing on an iBook, so Mac OS-X. I get this.. 'PHP Version
      > > 4.3.11' when running phpinfo(). I download the source for 5.0.4,
      > > configure it ..
      > >
      > > ./configure --with-pgsql=/usr/local/pgsql[/color]
      > ...[color=green]
      > > A find reveals that this file doesn't exist anywhere on the machine..[/color]
      >
      > --with-apxs=<path to apxs>
      >
      > might help. On my Solaris box, the problem later is caused by
      > missing .libs directory (libtool broken? -- the directory should be
      > 'lib'). I also need to copy the php cli binary by hand (only the
      > wrapper scripts are installed by 'make install'. This has been
      > happening since about 4.3.9 or something.[/color]

      It was an 'RTFM' moment, I'm afraid.. if I'd scrolled further down the
      INSTALL file, I'd have seen the Mac-OSX section. Mea culpa...

      Still, it's a wonderful moment when you first create a table from within
      a script, rather than having to type it out by hand. Much like losing
      one's virginity, or passing one's driving test...

      Thanks for the advice.

      --
      spam

      Comment

      Working...