Sign in to follow this  
Q-Parser

Problem with starting Apache on Gentoo

Recommended Posts

Q-Parser    168
Hi! I have a problem with Apache. I am not able to get it to work. I emerged Apache and wanted to start it with
/etc/init.d/apache2 start
and the output was * Apache2 has detected a syntax error in your configuration files: /sbin/runscript.sh: line 44: /usr/sbin/apache2: No such file or directory I wanted to edit that script but I couldn't find the mistake there. Could anybody help me with this? I even tried to re-emerged the package but it didn't help. Thanks

Share this post


Link to post
Share on other sites
Q-Parser    168
Quote:
Original post by smart_idiot
It would seem /usr/sbin/apache2 doesn't exist, which is rather odd.

Actually, /usr/sbin/apache2 doesn't exist! I don't know why. I wonder where it might have been placed, if ever. Is there another possible path where it could be located?

Share this post


Link to post
Share on other sites
jdhardy    469
On my system, /usr/sbin/apache2 exists. Which version of apache are you using - or more specifically, which version of the apache ebuild?

Share this post


Link to post
Share on other sites
Q-Parser    168
This is weird. It seems like I have no apache installed at all! I'm going to emerge the newest apache (apache-2.0.52) and I'll see if the problem persists. But how can I run "/etc/init.d/apache2 start" when there's no apache? Or is it independent of what is installed or not? I'm confused now.

Share this post


Link to post
Share on other sites
jdhardy    469
You should ask in the Gentoo forums; you'll probably get a better response there. All I can say is "works for me".

AFAIK /etc/init.d/apache2 is pulled in by the apache ebuild - so I haven't a clue what the problem is, unless your portage is borked.

Share this post


Link to post
Share on other sites
mx    122
i don't have the solution (thus sorry for bothering you), I've got an opinion (and maybe advice):

- remove gentoo, install eg. Slackware and compile all by own... it's much better as gentoo automagic installations, which will screw things...

regards,
m.

Share this post


Link to post
Share on other sites
Q-Parser    168
Quote:
Original post by mx
i don't have the solution (thus sorry for bothering you), I've got an opinion (and maybe advice):

You were right, it isn't the solution!

I have re-emerged apache all over and I've encountered another trouble, and I don't know what it is. When I try to start apache2 I get this:
* Starting apache2...
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ !! ]

Share this post


Link to post
Share on other sites
Q-Parser    168
I finally found out where the problem was. I had to add line "127.0.0.1 locahost" to /etc/hosts. It works fine now. Thanks for suggestions, nevertheless.

Share this post


Link to post
Share on other sites
Q-Parser    168
I don't know. Good thing is, that it works for now. Apache just didn't like my name of HOSTNAME as I set it to something different than localhost. But I may try what you suggested.

Share this post


Link to post
Share on other sites
Sign in to follow this