LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-25-2004, 03:21 PM   #1
tawalker
Member
 
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:

Code:
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:

Code:
/etc/httpd/conf/httpd.conf
/usr/local/apache2/conf/httpd.conf
How would I know which one is being used?

Many thanks,
Tim
 
Old 02-25-2004, 04:30 PM   #2
tk31337
Member
 
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, 04:11 AM   #3
tawalker
Member
 
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,
Tim
 
Old 03-10-2004, 01:27 AM   #4
tawalker
Member
 
Registered: Jan 2004
Location: UK
Distribution: Red Hat 9
Posts: 52

Original Poster
Rep: Reputation: 15
Update

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

Code:
/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,
Tim.
 
Old 03-10-2004, 07:49 AM   #5
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
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.

alternatively:
go to
www.webim.com 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
 
  


Reply



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 12:49 PM
mkinitrd failed with message "no module raid0 found for kernel 2.6.9" ythevenot Red Hat 3 12-07-2004 09:15 PM
httpd: module "mod_perl.c" is not compatible with this version of Apache davidlarsen Linux - Software 2 08-25-2004 07:57 AM
error message when pressing "Next" "BIOS Problems" , help ! HeRCuLeSX Fedora 3 07-21-2004 02:37 PM
SuSE Linux 9.1 Personal: Error message "module usb_uhci not found" johnerskine Linux - Newbie 2 06-24-2004 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:18 AM.

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