Re: [ubuntu-in] Apache2 error 98 : make_sock: Unable to connect to port 0.0.0.0:80
On Sun, Aug 1, 2010 at 10:34 AM, Rajat Khanduja rajatkhanduj...@gmail.com wrote: using http://localhost or http://127.0.0.1 results in the list of files/folders in that folder. I tried accessing some php files as well, I only get the option of download the file. You need to install libapache2-mod-php(or libapache-mod-php if you installed apache 1.x) package and then reload apache. -- ubuntu-in mailing list ubuntu-in@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
Re: [ubuntu-in] Apache2 error 98 : make_sock: Unable to connect to port 0.0.0.0:80
On Saturday 31 July 2010 11:56 PM, Rajat Khanduja wrote: I've tried to follow a variety of steps from a few things that I found on the net. Could someone please tell me how I can get it running I get the error mentioned in subject whenever I try to start Apache2. It was working file sometime ago, but recently I started facing this trouble. I've tried using ps -e |grep httpd and ps -e| grep apache but there was no result. Actually this is happening because some other process has bound port 80 on which Apache again tries bind, but fails to do so. To find out which process has bound port 80, do lsof -i :80 which will give you back something like COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME python 5748 manish4u IPv4 3932411 0t0 TCP localhost:80 (LISTEN) This output I got since I am using Django webserver (which is just an example) Now since you have a the PID of the process, you may want to terminate it. Use kill pid like for the last example use kill 5748 And still the process is not killing, you might want to send the KILL signal instead of TERM signal, but remember, this *can* corrupt the application which is currently bound to the port. Sending the KILL signal is by kill -9 pid Your ps -e |grep httpd and ps -e| grep apache didnt work since apache was not started, some other process was bound to the port. This ps might work if apache failed to stop properly or something like that. Many of the things I told were from how you explained your problem. If you have more details, do post it here. -- Manish -- ubuntu-in mailing list ubuntu-in@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
Re: [ubuntu-in] Apache2 error 98 : make_sock: Unable to connect to port 0.0.0.0:80
On Sat, Jul 31, 2010 at 11:56 PM, Rajat Khanduja rajatkhanduj...@gmail.com wrote: I've tried to follow a variety of steps from a few things that I found on the net. Could someone please tell me how I can get it running I get the error mentioned in subject whenever I try to start Apache2. It was working file sometime ago, but recently I started facing this trouble. I've tried using ps -e |grep httpd and ps -e| grep apache but there was no result. Try as root netstat -avnp | grep 80 This will give you the process id of the process which has blocked port 80. Terminate the process and try again. regards Vivek -- The hidden harmony is better than the obvious!! -- ubuntu-in mailing list ubuntu-in@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
Re: [ubuntu-in] Apache2 error 98 : make_sock: Unable to connect to port 0.0.0.0:80
After making some changes here and there...and unistalling Boa (which I had installed and forgotten about) I succeeded in starting Apache. Now the status says its running (and unlike during the problem, it starts on startup) .. But yet I'm unable to connect to localhost through a browser. What should I do? I was using Apache, until recently, without much problem to simulate a localserver. Thank you for the quick response. -- ubuntu-in mailing list ubuntu-in@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
Re: [ubuntu-in] Apache2 error 98 : make_sock: Unable to connect to port 0.0.0.0:80
On 1 August 2010 10:26, Rajat Khanduja rajatkhanduj...@gmail.com wrote: After making some changes here and there...and unistalling Boa (which I had installed and forgotten about) I succeeded in starting Apache. Now the status says its running (and unlike during the problem, it starts on startup) .. But yet I'm unable to connect to localhost through a browser. What should I do? I was using Apache, until recently, without much problem to simulate a localserver. Thank you for the quick response. How are you connecting using the browser? http://127.0.0.1 does not work? And what is the error you are seeing? -balaji -- http://balajin.net/blog http://flic.kr/balajijegan -- ubuntu-in mailing list ubuntu-in@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
Re: [ubuntu-in] Apache2 error 98 : make_sock: Unable to connect to port 0.0.0.0:80
using http://localhost or http://127.0.0.1 results in the list of files/folders in that folder. I tried accessing some php files as well, I only get the option of download the file. 2010/8/1 Balaji Narayanan (பாலாஜி நாராயணன்) li...@balajin.net On 1 August 2010 10:26, Rajat Khanduja rajatkhanduj...@gmail.com wrote: After making some changes here and there...and unistalling Boa (which I had installed and forgotten about) I succeeded in starting Apache. Now the status says its running (and unlike during the problem, it starts on startup) .. But yet I'm unable to connect to localhost through a browser. What should I do? I was using Apache, until recently, without much problem to simulate a localserver. Thank you for the quick response. How are you connecting using the browser? http://127.0.0.1 does not work? And what is the error you are seeing? -balaji -- http://balajin.net/blog http://flic.kr/balajijegan -- ubuntu-in mailing list ubuntu-in@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-in -- ubuntu-in mailing list ubuntu-in@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-in