Trouble on Solaris 8

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

    Trouble on Solaris 8

    Hi all,

    I'm installing Apache 2.2, PHP 5.04, and mySQL 4.0.21 on a Solaris 8
    machine using prebuilt binaries from sunfreeware.com .

    My apache install went smoothly - the only thing I'm having to work
    around is an inability to use /usr/local - it's an NFS mount to a
    central image, so I'm installing in /opt/local.

    After installing PHP and modifying httpd.conf, I get the following
    error on startup:

    httpd: Syntax error on line 110 of /opt/local/apache2/conf/httpd.conf:
    API module structure `php5_module' in file
    /opt/local/apache2/modules/libphp5.so is garbled - perhaps this is not
    an Apache module DSO?

    Now, I have to confess that I don't have mysql installed yet, but I
    would think that simply loading the php module wouldn't require this,
    would it?

    A search for this message shows one other user has seen it recently,
    but no resolution online.

    No hint in /var/apache/logs - no mention of php at all in any of the
    logs.

    Any clues as to what could be causing this?

    Mark Nelson - markn at i triple e dot org

  • Michael Austin

    #2
    Re: Trouble on Solaris 8

    Mark Nelson wrote:
    [color=blue]
    > Hi all,
    >
    > I'm installing Apache 2.2, PHP 5.04, and mySQL 4.0.21 on a Solaris 8
    > machine using prebuilt binaries from sunfreeware.com .
    >
    > My apache install went smoothly - the only thing I'm having to work
    > around is an inability to use /usr/local - it's an NFS mount to a
    > central image, so I'm installing in /opt/local.
    >
    > After installing PHP and modifying httpd.conf, I get the following
    > error on startup:
    >
    > httpd: Syntax error on line 110 of /opt/local/apache2/conf/httpd.conf:
    > API module structure `php5_module' in file
    > /opt/local/apache2/modules/libphp5.so is garbled - perhaps this is not
    > an Apache module DSO?
    >
    > Now, I have to confess that I don't have mysql installed yet, but I
    > would think that simply loading the php module wouldn't require this,
    > would it?
    >
    > A search for this message shows one other user has seen it recently,
    > but no resolution online.
    >
    > No hint in /var/apache/logs - no mention of php at all in any of the
    > logs.
    >
    > Any clues as to what could be causing this?[/color]

    I would make sure you downloaded the proper libphp5.so (and you transferred it
    in a binary mode) On what platform is your Solaris running? Intel, SPARC, other?

    Also there is/should be an apacheserver.lo g file in the top-level apache
    directory /opt/local/apache2 in your case.
    [color=blue]
    >
    > Mark Nelson - markn at i triple e dot org
    >[/color]


    --
    Michael Austin.
    DBA Consultant
    Donations welcomed. Http://www.firstdbasource.com/donations.html
    :)

    Comment

    • Mark  Nelson

      #3
      Re: Trouble on Solaris 8

      >I would make sure you downloaded the proper libphp5.so

      Thanks Michael, I checked that and it matches up with what I expect for
      my SPARC system:

      # file /usr/local/bin/bash modules/libphp5.so bin/httpd
      /usr/local/bin/bash: ELF 32-bit MSB executable SPARC Version 1,
      dynamically linked, stripped
      modules/libphp5.so: ELF 32-bit MSB dynamic lib SPARC Version 1,
      dynamically linked, not stripped
      bin/httpd: ELF 32-bit MSB executable SPARC Version 1, dynamically
      linked, not stripped

      I would assume that it was transferred properly as it was installed out
      of a Solaris package, not as a raw binary.
      [color=blue]
      >Also there is/should be an apacheserver.lo g file in the top-level apache
      >directory /opt/local/apache2 in your case.[/color]

      No such log - either I'm not getting far enough in startup or it may
      need a define to override the location built into httpd.

      |
      | Mark Nelson markn at i triple e dot org
      |

      Comment

      • Kjell Mesch
        New Member
        • Mar 2006
        • 1

        #4
        I have the same problem.
        Can't find any solution :-(

        /kjell

        Comment

        Working...