469,297 Members | 2,134 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,297 developers. It's quick & easy.

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

Feb 21 '06 #1
3 2552
Mark Nelson wrote:
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?
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.log file in the top-level apache
directory /opt/local/apache2 in your case.

Mark Nelson - markn at i triple e dot org

--
Michael Austin.
DBA Consultant
Donations welcomed. Http://www.firstdbasource.com/donations.html
:)
Feb 21 '06 #2
>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.
Also there is/should be an apacheserver.log file in the top-level apache
directory /opt/local/apache2 in your case.


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
|

Feb 21 '06 #3
I have the same problem.
Can't find any solution :-(

/kjell
Mar 23 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tony | last post: by
1 post views Thread by Mark Nelson | last post: by
reply views Thread by Bob Swerdlow | last post: by
reply views Thread by Michael Iatauro | last post: by
1 post views Thread by Chris Todhunter | last post: by
12 posts views Thread by Winbatch | last post: by
13 posts views Thread by Mary Lei | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.