Hi,

yes, sorry, I think I didn´t look for the error in google very well   :-(

Thank you for your help. I compiled in 64 bits and then I started Apache.

For other people with this problem in HP-UX 11.23 i64 and with the "make" 
compiling in 32 bits, the solution was:

- add the variable "EXTRA_CFLAGS=+DD64" in the file Makefile that the PHP uses.

- do "make clean"

- do "make"

- do "make install"

and then you get the .so library in 64 bits and you can start Apache 
successfully.

 
Regards
Gloria

-----Original Message-----
From: Michael Ludwig [mailto:m...@as-guides.com] 
Sent: viernes, 14 de agosto de 2009 10:23
To: Tomcat Users List
Subject: Re: Error "libphp4.so is not a valid load module: Bad magic number" 
starting Apache

gloria.agu...@accenture.com schrieb:

>        # ./apachectl start
>        Syntax error on line 232 of /opt/hpws/apache/conf/httpd.conf:
>        Cannot load /opt/hpws/apache/modules/libphp4.so into server:
>        '/opt/hpws/apache/modules/libphp4.so' is not a valid load
>        module: Bad magic number

Sorry for being a bit rude. Read on to see the reason for the error.

> But I think the line 232 is good:
>
>        LoadModule php4_module /opt/hpws/apache/modules/libphp4.so

It probably is.

> because this same line with 5 instead of 4 works fine for the PHP 5.

But that has nothing to do with the PHP version number.

> I didn´t find a solution in Internet. Please, could you help me?

Finding the solution usually involves using a search engine such as
Google to find other descriptions of the problem. They will very likely
include the error message. So you should do a search for:

   "not a valid load module: Bad magic number"

Try quoting the message to get verbatim matches. Don't include the
library name in the search as that is an accidental property of your
case.

After some clicking you'll see that it is a 32 vs 64 bit issue.

http://forums.sun.com/thread.jspa?threadID=5263283

So you need to get the correct version for your machine, either 32 or
64 bit. Good luck.

-- 
Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to