# Problem with starting Apache on Gentoo

## Recommended Posts

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 on other sites
It would seem /usr/sbin/apache2 doesn't exist, which is rather odd.

##### Share on other sites
Quote:
 Original post by smart_idiotIt 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 on other sites
On my system, /usr/sbin/apache2 exists. Which version of apache are you using - or more specifically, which version of the apache ebuild?

##### Share on other sites
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 on other sites
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 on other sites
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 on other sites
Quote:
 Original post by mxi 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 on other sites
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 on other sites
I think you're supposed to edit /etc/apache2/conf/apache2.conf and set ServerName to something.

##### Share on other sites
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.

• ### Forum Statistics

• Total Topics
628275
• Total Posts
2981762

• 10
• 11
• 17
• 10
• 9