i installed apache2 several times using
sudo apt-get install apache2
then after that, i tried to open 127.0.0.1 and localhost on browser
but it is not working.
i checked again the apache if it is already installed using
the result is:
The program 'apache2' is currently not installed. You can install it by typing: sudo apt install apache2-bin Do you want to install it? (N/y)
and when i clicked Y
i entered this command
sudo apache2ctl start
and it shows this:
/usr/sbin/apache2ctl: 143: /usr/sbin/apache2ctl: /usr/sbin/apache2: not found Action 'start' failed.
it looks like i have missing packages.
these are the installed apache packages i have;
apache2 install apache2-bin install apache2-data install apache2-doc install apache2-utils install libapache2-mod-php5.6 install libapache2-mod-svn install libapache2-svn install
Guys, i just remembered. i used whereis apache before to locate the apache directories. and instead of using purge or remove, i deleted all the directories shown on my terminal manually using rm -rf.
Does this affect the future installation of apache?