API module structure `php5_module’ in file modules/libphp5.so is garbled – perhaps this is not an Apache module DSO?

While trying ot install php 5 in apache 2.2 I was getting the following error on apache startup: API module structure `php5_module’ in file modules/libphp5.so is garbled – perhaps this is not an Apache module DSO?
although both apache and php work fine run separatelly.
After a lot of debugging and reading I figured I’d do the php thing all over again and then noticed:

libtool: install: warning: remember to run `libtool –finish /kits/php-5.2.9/libs’

AND

You may want to add: /usr/local/lib/php to your php.ini include_path

minor details but they DID NOT help. But I am taking the time to rant a bit: why for the love of god won’t teh installer do the libtool call when it finishes? beats me.

Anyway, the problem is because there is an old version of apache on the system. Get rid of it first. ALL of it. rm -rf does a good job. But don’t delete your sites.
So, if unsure, backup frist.

Related posts

Leave a Reply

This blog is kept spam free by WP-SpamFree.