General :: Starting And Stopping Apache / No Listening To Sockets Available, Shutting Down?
Sep 16, 2010
I have just installed Ubuntu 10.04 and it works fine. Next, I attempted to install Apache 2.2.16 server on the machine. I was able to get Apache installed but I cant't get it to start. The command I used to get it to start is "apachectl -k start" and got the response "command not found". Then I used the absolute path which is "/home/Administrator/Downloads/apache/bin/apachectl -k start" and got the response"httpd: could not reliably determine ther server's fully qualified domain name, using 127.0.1.1 for ServerName(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80.no listening to sockets available, shutting down". Please advise me on what to do. My eyes hurt from looking at the screen for so long trying different options and reading almost all the apache install instructions that exists. Just ready to have it up and running.
root@HOST [~]# /etc/init.d/httpd start Starting httpd: no listening sockets available, shutting down Unable to open log [FAILED] root@HOST [~]# /etc/init.d/httpd restart Stopping httpd: [FAILED] Starting httpd: no listening sockets available, shutting down Unable to open logs [FAILED] root@HOST [~]# tail -n 10 /var/log/messages Sep 29 17:59:30 localhost avahi-daemon[2870]: New relevant interface wlan0.IPv4 for mDNS. Sep 29 17:59:30 localhost avahi-daemon[2870]: Joining mDNS multicast group on interface wlan0.IPv4 with address 196.219.240.236. Sep 29 17:59:30 localhost avahi-daemon[2870]: Registering new address record for 196.219.240.236 on wlan0. Sep 29 17:59:31 localhost avahi-daemon[2870]: New relevant interface wlan0.IPv6 for mDNS. Sep 29 17:59:31 localhost avahi-daemon[2870]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::223:cdff:fecb:9c5e. Sep 29 17:59:31 localhost avahi-daemon[2870]: Registering new address record for fe80::223:cdff:fecb:9c5e on wlan0. Sep 29 17:59:31 localhost NetworkManager: <info> (wlan0): device state change: 7 -> 8 Sep 29 17:59:31 localhost NetworkManager: <info> Policy set 'Sunsoft1' (wlan0) as default for routing and DNS. Sep 29 17:59:31 localhost NetworkManager: <info> Activation (wlan0) successful, device activated. Sep 29 17:59:31 localhost NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete. What is the problem I have a local server CentOS Linux
Code: [Sun May 22 04:02:06 2011] [notice] SIGHUP received. Attempting to restart (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
Above message is from /etc/httpd/logs/error_log.1. Saturday morning I reinstall my server. After finish, no error. I can access my HTTP server. Monday morning it has crashed. I don't know what is the meaning about this message.
I am very new (since yesterday) to Linux also new to web server setup. I have installed all LAMP components, including SSL as described here: [URL]. I have added LISTEN 443 Wanted to restart the apache server -> no success ! stopped it, now doesn't start at all:
Warning msg=> (98)Address already in use: make_sock: could not bind to address 0.0.0.0:44 no listening sockets available, shutting down . . Failed
I tested Apache and my PHP earlier and it worked. Now after SSL and FTP installation it doesn't work anymore! Also I am wondering about my server name, it is the set IP of the web server, surly i should change that? Only used link for SSL set-up, used diff links for apache php etc (also have java JRE installed as I will need that later for my app) also have GNOME available, but prefer command line.
[root@itsupport ~]# service httpd restart Stopping httpd: [FAILED] Starting httpd: (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 [FAILED] Iam facing the above error when i restart the service httpd
I was logged in as root, made some changes to my users and think I may have inadvertently changed root somehow. Ever since then, my machine runs just fine, I can sudo, Yast, etc without any issues. (Root password is fine) but when I try to log in as root, the system changes the screen display, as if it's going to login, then returns me back to the login prompt without error. If I "ctl+alt+F1", I drop out to the console and can login as root, but cannot startx because the display is already in use.... So, I removed the .X0-lock, but still cannot get the GUI to load. (after running rm /tmp/./X0-lock, I get a fatal error, "can't establish any listening sockets..." "Ctl+Alt+F7" brings me back to the GUI where I am logged in as myself in Gnome) if I login with my user account, everything runs fine and all is well.
I have a bit off a strange one here, my internet stops and starts. One minute it is fine and the next it will not connect to any web pages or even to the router then its fine again. My machine is a new build Pc were I installed 11.04 as a fresh install, everything was fine till a few days ago when this all started up. I connect to my router via a wired network, the new PC also has a second HD with windows 7 on it and that is fine with the net so I know it must be some sort off software issue but I have not idea what.
I'm trying to get a handle on starting/stopping and managing processes. I was playing around with rcconf and things I disabled (or enabled there) didn't take effect. I found the initctl command, so that led me to believe I'm using Upstart instead of all the rc and init directories. Is there any way to tell? Could I be running both? I'm running an Ubuntu 10.04 server.
I'm having trouble working with Xen on debian, I have many centos servers running Xen and have no problems. Everytime I start or stop a XEN vm it kills networking on the host OS for about 30 seconds. It doesn't respond to pings or anything, then it returns and everything works. I have asked about this issue in #xen on freenode.
I had to reinstall my DMZ webserver the other day. Now I cannot figure out for the life of me figure out why Apache refuses to listen on eth1 it will only listen on eth0. I have it setup so that it listens with * I'm not specifying a particular IP for it to listen on. When I do specify it still doesn't work.
I am having a problem in that the Web Server (Apache) keeps stopping. I know this as watchdog is emailing me. Then about 15mins later it starts again. I cannot seem to find why. can anyone give me pointers as where to look to find the issue.
I have this error log in apache it doesn't seems to affect the system but in 4 o 5 days. I have to restart the server cause its work really slow almost impossible to navigate the web pages hosted on it. This is the last 50 lines apache log
whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?
Two days back I installed had setup subversion for my laptop from the following link HOWTO: Setting Up Your Own SVN Server (Using Apache and mod_dav_svn) - Mark S. Kolich
I don't know where I messed up the apache server. Now I am unable to start the apache server. I get the following error message:
I installed Apache, and it works fine. However, when I rebooted my CentOS, httpd did not start automatically. What do I need to do to ensure it starts when the system boots?
Apache is set to start on runlevel 2, 3 and 5, just like MySQL. For some obscure reason this always fails. I tried resetting the runlevels, but this did not help and I always have to start apache manually after reboot.
How can I analyze this problem? In the Apache logs I don't find the cause. Is there an other log I can check?
When I try to start Apache2 (apachectl start) the command prompt returns right away. But when I check the processes (ps ax) I can't find httpd. And when I try to hit the server from a browser I get "the page cannot be displayed" error.
I have a problem, I'm have a course at high school (webserver management) in class this morning we had to install apache, php, ftp and so on but I didn't finish on time so when I got home I was playing around. I'm on wireless here and changed the vm connection from bridge to nat.
normally we had to install apache using yum (yum install httpd) and start the service. that's what I did and then we had to go to firefox (or IE) and type the ip of our server. but when I do I get "problem loading page" instead of the apache default page. I've set httpd runlever 2 to 5 to on and rebooted. but still not working.
Boot of a new minimal system hangs on "Stopping save kernel messages" or "stopping system v runlevel compatibility". I have ubuntu minimal iso x86_64 from usb stick created with unetbootin (don't have a cd drive on the machine in question), and after that I didsudo aptitude install gnome-terminal network-manager-gnome gdm geditsudo rebootnever got a system back. Annoyingly I can't boot into the recovery mode either, and it seems the keyboard is only semi-responsive (i.e. many dead keys when at the grub menu).qualms about reinstalling, but I've done this a few times and ended up at the same place every time.
We have installed apache 2.2.15 webserver on A rhel 5 Linux 64 box using the user wwwadm group www
We can start the webserver using root and it works fine but we dont have root access forever so we want the wwwadm user to have all the rights and we can start/stop/restart the Apache server using this wwwadm user.
I put this file in cgi-bin folder of Apache server. Here is my problem : when I run this file with shell as root user it makes change to iptables, but when I use my browser to run this file, it doesn't make any change. I'm sure this is because Apache doesn't have permission to manipulate iptables. How can I start Apache as a user with root privileges ?
I am trying to install Zend Server, and that went well. Apache and all the other items were installed.
But when I go to start Apache, I get this error:
Quote:
root@laptop:~# /etc/init.d/apache2 restart * Restarting web server apache2 Syntax error on line 6 of /etc/apache2/sites-enabled/zendserver_gui.conf: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration [fail] And on line 6: php_admin_flag tidy.clean_output off The rest of the file is below:
Quote:
# Warning: Modifying this file will break the Zend Server Administration Interface Listen 127.0.0.1:10083 NameVirtualHost 127.0.0.1:10083 # do not allow override of this value for the UI's Vhost as it should always be off when generating non-html content such as dynamic images code....
First post here so I'll do my best to provide the information needed.
System:
Dell Poweredge R310 Xeon 3460 2.8Ghz 4x2GB ram 4x 160GB Sata 7.2k (RAID 10) Ubuntu Server 64bit
If I type as root, "reboot" or "shutdown -r now", nothing happenings - except the apache2 process stops + the usual "System is going down for reboot now". If I type "shutdown -h now" the system goes down.
Upon booting the server back up, MySQL starts correctly, but Apache2 does not - I have to run "service apache2 start", and it starts up fine.
I feel the 2 issues are related. I've reinstalled apache2 completely (configs and all) and this didn't help - I used yum to install/reinstall it.
I have an Ubuntu 10.04.1 AMD64 server running Apache with SSL. In the past, even though I have a passphrase on my key file, I have only needed it if I manually restarted Apache2, never after reboot.
I recently switched from a self-signed cert to one from a CA. I'm not sure if this is what caused it, I also installed a few packages (AWStats, PHPSysInfo and Munin) that all interact with the webserver.
Anyway, I just noticed that now after a reboot Apache starts but doesn't work. I need to kill that process and start a new one with the passphrase (maybe on the console it is prompting me, I mainly use SSH access since the server is headless).
Why did Ubuntu used to 'remember' the passphrase on the self-signed cert but now I need to provide it?
My sever auto-updates so it would be annoying to have this thing go down regularly after a patch that requires a reboot.
In December I finally filled up my root partition and broke Suse 11.1. I therefore resized my partitions and installed Suse 11.3 on /root. I didn't not touch my /home partition.
I notice that when I leave my machine and come back the screen has locked. I have tried to turn off the screensaver, but it hasn't worked. I have Googled, but unfortunately the screen shots don't look like what I have and the instructions to stop this do not seem to match what I am seeing on the screen.
I am trying to retrieve an interface's MAC address using netlink address. I got to a point, where I am able to parse the reply for 'RTM_GETLINK' till 'case IFLA_ADDRESS'. After that, I have no idea to print the MAC address.
There are some sites which allow you to listen the mp3 song like [url]
I have found the most simple way to get mp3 file
(1)Sometimes you get address ending with .mp3 so just copy the whole URI and use in terminal wget "PasteWhatYouCopied"
(2)But in the link I have mentioned there is no mp3 link in address bar.
Here I found out in totem-plugin-viewer(that is the thing that plays your file in browser).Just Click the button next to sound and select copy
In example taken above it is [url]
And use just like before wget "PasteWhatYouCopied" -O output.wma
Also notice that you have the song as output.wma in current folder of terminal.
(3)If there is a video on webpage then either wait for it to get completely downloaded & get it from /tmp.Remember don't close the page till video gets downloaded completely & you copied it from /tmp then only close that tab.
(4)There is a firefox addon 'unplug' which can help for flv because after sending file to download via unplug you can close that tab.