Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-25-2004, 04:21 PM   #1
Registered: Jan 2004
Location: UK
Distribution: Red Hat 9
Posts: 52

Rep: Reputation: 15
Apache module "not compatible" message

I recently installed MySQL (4.0.17), Apache (2.0.48) and PHP (4.3.4), according to the method in the SAMS "Teach Yourself A, P & M in 24 Hours" book. (In other words, install MySQL from RPM, but compile the other two to ensure they support each other.)

Initially, everything seemed to work, but for no apparent reason something seems to have gone wrong since then. httpd will not now start, giving this error:

httpd: module "/usr/local/src/php-4.3.4/sapi/apache2handler/sapi_apache2.c" is not compatible with this version of Apache.
Please contact the vendor for the correct version.
To my knowledge, I haven't upgraded anything since installation. Can anyone suggest how I can fix the problem?

Also (and this may or may not be related), I seem to have two "httpd.conf" files:

How would I know which one is being used?

Many thanks,
Old 02-25-2004, 05:30 PM   #2
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Linux Mint
Posts: 194

Rep: Reputation: 32
It sounds like you may have two Apache installation (and possibly two PHP). When you installed the RPMs, did you do "rpm -i" or "rpm -U"? If you did "-i" and you had Apache preinstalled from your distro, then you may have installed the new version alongside, rather than "upgrading" via the "-U" option. Just a thought.
Old 02-26-2004, 05:11 AM   #3
Registered: Jan 2004
Location: UK
Distribution: Red Hat 9
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks for the feedback - it's possible there might be two conflicting versions, but I can't immediately see how.

When I installed Linux (RH9, BTW), I deliberately didn't install the Apache, PHP and MySQL packages, because at the time I wanted to have the latest versions and install them in the way the SAMS book suggested. (I would probably just install everything from RPMs now, so long as all the right options were compiled into the packages - still, you live and learn )

To clarify: I only actually installed one RPM (MySQL). The book said to compile Apache and PHP from source (presumably to ensure Apache had MySQL support, and PHP had Apache support) so that's what I did. I'm fairly sure there would not be any RPMs of Apache or PHP installed, but if there are, should I uninstall them so they won't conflict with the compiled versions?

This may all be academic in the end, as I hope to have a dedicated Linux server box soon, where I'll probably just use the RPMs...

Thanks again,
Old 03-10-2004, 02:27 AM   #4
Registered: Jan 2004
Location: UK
Distribution: Red Hat 9
Posts: 52

Original Poster
Rep: Reputation: 15

Since I wrote the last post here, I found I can start/restart Apache manually, using

/usr/local/apache2/bin/apachectl restart
This works perfectly (PHP and all), even though I can't use redhat-config-services to stop and restart the server (it gives the error message above).

Can anyone suggest how I could tweak the appropriate file, so Apache will start properly on boot?

Many thanks,
Old 03-10-2004, 08:49 AM   #5
Senior Member
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,421

Rep: Reputation: 200Reputation: 200Reputation: 200
you need to soft link the apache script into
init directories. If you don't know what I'm talking about use the
red hat management tool.

go to and download webmin.
It's a fabulous admin tool.

It does everything, it's even good at administering MySQL.
I was playing with the same things this weekend, php MySql and
the drudgery removed is astounding.

You'll be able to set up boot servers, make tables, configure apache,
there is also something called "myphpadmin" (or similar) which is fab
for MySQL configuration also.

There's no sense jumping in at the deep end.
Make life simple and learn the fiddly stuff at your own pace.

regards billy


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 01:49 PM
mkinitrd failed with message "no module raid0 found for kernel 2.6.9" ythevenot Red Hat 3 12-07-2004 10:15 PM
httpd: module "mod_perl.c" is not compatible with this version of Apache davidlarsen Linux - Software 2 08-25-2004 08:57 AM
error message when pressing "Next" "BIOS Problems" , help ! HeRCuLeSX Fedora 3 07-21-2004 03:37 PM
SuSE Linux 9.1 Personal: Error message "module usb_uhci not found" johnerskine Linux - Newbie 2 06-24-2004 12:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration