LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-30-2005, 11:44 PM   #1
patitoconejita
Member
 
Registered: Nov 2004
Location: Winnipeg, MB
Distribution: Debian
Posts: 42

Rep: Reputation: 15
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!
 
Old 08-31-2005, 12:19 AM   #2
korozion
Member
 
Registered: Apr 2004
Location: Canada
Distribution: Debian
Posts: 124

Rep: Reputation: 15
Have you tried editing the config file for Apache?
 
Old 08-31-2005, 02:36 PM   #3
patitoconejita
Member
 
Registered: Nov 2004
Location: Winnipeg, MB
Distribution: Debian
Posts: 42

Original Poster
Rep: Reputation: 15
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.
 
Old 08-31-2005, 07:04 PM   #4
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
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
 
Old 09-01-2005, 05:30 AM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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..
 
Old 09-01-2005, 09:49 AM   #6
patitoconejita
Member
 
Registered: Nov 2004
Location: Winnipeg, MB
Distribution: Debian
Posts: 42

Original Poster
Rep: Reputation: 15
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,
 
Old 09-01-2005, 10:03 AM   #7
patitoconejita
Member
 
Registered: Nov 2004
Location: Winnipeg, MB
Distribution: Debian
Posts: 42

Original Poster
Rep: Reputation: 15
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,
 
Old 09-08-2005, 01:49 PM   #8
fraggie
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Rep: Reputation: 0
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...
 
Old 09-08-2005, 02:11 PM   #9
patitoconejita
Member
 
Registered: Nov 2004
Location: Winnipeg, MB
Distribution: Debian
Posts: 42

Original Poster
Rep: Reputation: 15
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)?
 
  


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
webmin troubles - Failed to write to /etc/webmin/module.infos.cache : No space left o coal-fire-ice Linux - Software 1 07-28-2005 10:08 AM
Webmin: The Apache server executable /usr/local/apache2/bin does not exist hektor Linux - Software 0 01-14-2005 06:48 AM
SuSE 9.0, Apache2, and Webmin dkpw Linux - Software 2 08-21-2004 11:21 PM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 11:46 AM
webmin and apache2 esromneb Linux - Networking 0 07-22-2003 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:02 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