LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   apache2 and webmin (https://www.linuxquestions.org/questions/linux-networking-3/apache2-and-webmin-358715/)

patitoconejita 08-30-2005 11:44 PM

apache2 and webmin
 
I've fought with this one very hard and don't see the end at the end of the tunnel. I just can't get apache to play nice with webmin.

If I do:

Code:

ps -A | grep apache
20793 ?        00:00:00 apache2
20795 ?        00:00:00 apache2
20796 ?        00:00:00 apache2
20797 ?        00:00:00 apache2
20798 ?        00:00:00 apache2
20799 ?        00:00:00 apache2

So apache2 seems to be running. However, I can't use webmin to configure apache; hitting the "start apache" button gives the following error:

Code:

Failed to start apache : Apache does not appear to be running :
Starting web server: Apache2apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName.

The same occurs if I try to start apache2 from the command line.

This is occurring in Knoppix 4.0 hard disk installation and using unstable Debian branch.

I'd greatly appreciate some help!

korozion 08-31-2005 12:19 AM

Have you tried editing the config file for Apache?

patitoconejita 08-31-2005 02:36 PM

Yes, that's why I'm using webmin for, since I'm minimally experienced with apache and prefer the organization given by webmin for editing apache configuration.

I'm quite stuck with this and not much help in google.

jdogpc 08-31-2005 07:04 PM

Re: apache2 and webmin
 
Quote:


ps -A | grep apache
20793 ? 00:00:00 apache2
20795 ? 00:00:00 apache2
20796 ? 00:00:00 apache2
20797 ? 00:00:00 apache2
20798 ? 00:00:00 apache2
20799 ? 00:00:00 apache2
[/code]

Failed to start apache : Apache does not appear to be running :
Starting web server: Apache2apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName.
[/code]
The error 'Could not the server's fully qualified domain name, using 127.0.0.1 for ServerName.' is not fatal and pache should start aldow it reports that error.

Check your httpd.conf for this line 'Listen SOMETHING:80' edit it and change to 'Listen youripaddress:80' and restart apache.
Now try to connect to the web server.

JdogPC

peter_robb 09-01-2005 05:30 AM

Depending on your distro, the files are different names and can be in different locations..
Check your Webmin module config very carefully..
esp where apachectl and apachectl2 are present..
Standard names would have 2 added to the end..

patitoconejita 09-01-2005 09:49 AM

Ok guys, this morning I found the solution, and it took a lot of guess work, because the documentation on this is terrible.

It turns out that, for apache2, one needs to provide the following in the "Modules Config" section:


Apache server root directory: /etc/apache2
Path to httpd executable: /usr/sbin/apache2
Command to start apache: /etc/init.d/apache2 start
Command to stop apache: /etc/init.d/apache2 stop
Path to httpd.conf: /etc/apache2/apache2.conf


and leave the rest at the default values.

Thanks to all,

patitoconejita 09-01-2005 10:03 AM

The most frustrating part was guessing that "Path to httpd.conf" should be /etc/apache2/apache2.conf!!
Everybody talks about httpd.conf, but nobody says that there are two such files in a Debian system, one in /etc/apache/ and the other in /etc/apache2/.
The latter is empty, but the mere fact that there's both an apache and apache2 directories makes it very confusing, and I'm still not sure whether everything is properly setup.
My website is running fine, but given all these misunderstandings, it may show some surprises later. Cross fingers and wait for better documentation.

Cheers,

fraggie 09-08-2005 01:49 PM

Quote:

Originally posted by patitoconejita
Ok guys, this morning I found the solution, and it took a lot of guess work, because the documentation on this is terrible.

It turns out that, for apache2, one needs to provide the following in the "Modules Config" section:


Apache server root directory: /etc/apache2
Path to httpd executable: /usr/sbin/apache2
Command to start apache: /etc/init.d/apache2 start
Command to stop apache: /etc/init.d/apache2 stop
Path to httpd.conf: /etc/apache2/apache2.conf


and leave the rest at the default values.

Thanks to all,

Ok, jumping in here :)
i did all that , but now when i click on the apache icon in webmin it takes me to the reconfigure panel..
seems i need to select some active modules.
I have no idea which ones are running and the "newbie, keep away just press reconfigure button"
keeps sending me back to the reconfigure panel...

patitoconejita 09-08-2005 02:11 PM

Quote:

Originally posted by fraggie
Ok, jumping in here :)
i did all that , but now when i click on the apache icon in webmin it
takes me to the reconfigure panel..

What do you want to do by pressing the "apache icon" (don't know which one
you're talking about)?


All times are GMT -5. The time now is 02:16 PM.