Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-30-2005, 11:44 PM
|
#1
|
Member
Registered: Nov 2004
Location: Winnipeg, MB
Distribution: Debian
Posts: 42
Rep:
|
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!
|
|
|
08-31-2005, 12:19 AM
|
#2
|
Member
Registered: Apr 2004
Location: Canada
Distribution: Debian
Posts: 124
Rep:
|
Have you tried editing the config file for Apache?
|
|
|
08-31-2005, 02:36 PM
|
#3
|
Member
Registered: Nov 2004
Location: Winnipeg, MB
Distribution: Debian
Posts: 42
Original Poster
Rep:
|
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.
|
|
|
08-31-2005, 07:04 PM
|
#4
|
Member
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90
Rep:
|
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
|
|
|
09-01-2005, 05:30 AM
|
#5
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
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..
|
|
|
09-01-2005, 09:49 AM
|
#6
|
Member
Registered: Nov 2004
Location: Winnipeg, MB
Distribution: Debian
Posts: 42
Original Poster
Rep:
|
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,
|
|
|
09-01-2005, 10:03 AM
|
#7
|
Member
Registered: Nov 2004
Location: Winnipeg, MB
Distribution: Debian
Posts: 42
Original Poster
Rep:
|
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,
|
|
|
09-08-2005, 01:49 PM
|
#8
|
LQ Newbie
Registered: Aug 2003
Posts: 9
Rep:
|
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...
|
|
|
09-08-2005, 02:11 PM
|
#9
|
Member
Registered: Nov 2004
Location: Winnipeg, MB
Distribution: Debian
Posts: 42
Original Poster
Rep:
|
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 12:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|