Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
18
rated 0 times [  18] [ 0]  / answers: 1 / hits: 20861  / 3 Years ago, sun, october 3, 2021, 5:04:52

First of all - I have looked and tried several approaches including
https://askubuntu.com/questions/94805/apache-server-not-starting/



I am using Ubuntu 14.04 64 bit



I had purged using an answer at serverfault




  • sudo service apache2 stop

  • sudo apt-get --purge remove apache2 sudo apt-get remove apache2-common

  • sudo apt-get autoremove

  • whereis apache2 (gave 3 locations)

  • sudo rm -rf /etc/apache2

  • sudo rm -rf /usr/sbin/apache2

  • sudo rm -rf /usr/lib/apache2



I did




  • sudo apt-get -y install apache2 - says it is the newest version

  • all conf files are in /etc/apache2 /etc/log/apache2/error_log is blank

  • sudo service apache2 restart gives no output - no error - no message

  • http//localhost or 127.0.0.1 say web server not available

  • ps ax | grep -i apache gives 7919 pts/0 S+ 0:00 grep --color=auto -i apache



I am stumped - please help!



Edit - just realized /usr/sbin/apache2 does not exist
and neither does /usr/lib/apache2



After 3 re-installs - how do i get them - pleas help - thx


More From » server

 Answers
3

In 14.04, the apache binaries are located in apache2-bin.



Since you are missing the binaries, you can try reinstalling that package along with apache2.



sudo apt-get install --reinstall apache2 apache2-bin


Then try starting apache again, (Although I believe apache will auto-start itself after installation)



sudo apache2ctl start

[#25531] Sunday, October 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
naldis

Total Points: 257
Total Questions: 101
Total Answers: 111

Location: Kenya
Member since Sat, Feb 25, 2023
1 Year ago
naldis questions
;