Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
Hi ppl,
I have been using apache as a local server for testing my html and php scripts. It was working fine for a month but now gives following error. I know nothing about networking so plz help me. Wat could be causing this problem?
[HTML]
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[/HTML]
If this returns something like:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
Then another webserver is already running.
Another thingie that might be wrong that you have to put the FQDN in the hosts file(/etc/hosts) (No not the nice way for you purists, i know, but it will get the job done for now). So take your fully qualified domain name (host.domain.com) and put it in the host file with the ip-address.
If it works now then there is a more nicer way, but that will require you to configure your resolv.conf correctly and that you host is in the DNS tables.
Does that mean another instance of apache is running?
this is so weird !!! If apache is already running, y am i getting this problem? If its not apache, how to find out what it is?
I tried to kill apache with:
sudo killall -u www-data
Then i did
apache2ctl restart
It gave more errors:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
yes. Indeed so. I recently installed the mysql apache module and by mistake i installed the apache1 module instead of apache2 which was already installed.
I dont know y aptitude installed apache1 to fulfill the dependencies instead of throwing an error...
Since u r on debian can u tell me how 2 remove all apache1 components? I tried it 1 by 1 but it gets very confusing.
Maybe u know better.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.