Rachel Rawlings on 29 Jan 2016 08:17:49 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Apache2 weird problem


The apache daemon is normally taken care of by apachectl, as Keith said above.

Look in /etc/init.d for your server control script (apache2, iirc, for Ubuntu) and do

$ sudo service apache2 status
$ sudo service apache2 configtest

If you have no running process and no errors, you can start the daemon again, but mist likely there's either an error in the config or a permission problem on thr logs (which have to be writable by apache).

If you have no daemon at all, then back up /etc/apache2 and do 'apt-get install --reinstall'

On Jan 29, 2016 12:04 AM, "Josh Zenker" <jzenker@gmail.com> wrote:
On my Ubuntu 14.04.3 system, it looks like the apache2 binary is actually installed by the apache2-bin package.

$ dpkg -L apache2-bin | grep '/usr/sbin'
/usr/sbin
/usr/sbin/apache2

Have you tried reinstalling apache2-bin? I believe it is a dependency for apache2 and may not have been reinstalled in your previous steps.

On Thu, Jan 28, 2016 at 11:34 PM, Bill Patterson <patterson@computer.org> wrote:
Dear Colleagues -

I don't know how it happened.  I was debugging PHP with NetBeans, and after a distraction I went back to it and found that the server wasn't running.  I tried to restart Apache.  I completely removed and purged it and reinstalled it.  It now says it is installed but if I type "apache2 -v" it says the program isn't installed:

me@mymachine:~$ sudo apt-get install apache2
[sudo] password for me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
me@mymachine:~$ apache2 -v
The program 'apache2' is currently not installed. You can install it by typing:
sudo apt-get install apache2-bin
me@mymachine:~$


any ideas?

Bill
___________________________________________________________________________
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


___________________________________________________________________________
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

___________________________________________________________________________
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