Bill Patterson on 29 Jan 2016 14:19:48 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Apache2 weird problem |
# Thank you. That moved us forward.
So now, while I was no longer told that apache does not exist, I
was given a set of errors which I could then track down. It seems
that there was a process hanging, in spite of rebooting that could
be determined by
netstat -ltnp | grep ':80' #then I entered kill -9 1271 where 1271 was the pid for the process revealed by the netstat command. # My apache then lived until the next reboot, and then the problem returned. I could do the same thing on the next boot to get my apache back. BUT now there are 2 problems: I have to do this to make apache start although it should just start on boot, AND NetBeans does not link correctly with apache. # FYI, here is how I took the suggestion to get to this next point: root@mymachine:/var/log/apache2# apt-get install --reinstall apache2-bin Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 69 not upgraded. Need to get 0 B/839 kB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 243515 files and directories currently installed.) Preparing to unpack .../apache2-bin_2.4.7-1ubuntu4.9_amd64.deb ... Unpacking apache2-bin (2.4.7-1ubuntu4.9) over (2.4.7-1ubuntu4.9) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up apache2-bin (2.4.7-1ubuntu4.9) ... root@mymachine:/var/log/apache2# apache2ctl start AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information. root@mymachine:/var/log/apache2# ls access.log error.log other_vhosts_access.log root@mymachine:/var/log/apache2# cat access.log root@mymachine:/var/log/apache2# cat error.log root@mymachine:/var/log/apache2# cat other_vhosts_access.log -------------------------------------- On 01/29/2016 04:12 PM, Josh Zenker wrote: OK, so it's actually the /usr/sbin/apache2 binary that's missing. That's provided by apache2-bin, so you'll need to do |
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug