Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 8376  / 3 Years ago, thu, july 1, 2021, 7:02:34

I am newbie in Ubuntu and I removed all apache file following command



sudo chown user /etc/init.d/apache2
sudo chmod 755 /etc/init.d/apache2
sudo rm /etc/init.d/apache2


I know its wrong way to removing apache, now I want to install apache again



Edit
try to reinstal apache



sudo apt-get install --reinstall apache2


working fine,but when I type command



sudo service apache2 start


response as,



apache2: unrecognized service

More From » 12.04

 Answers
3

finally i got the solution



sudo service apache2 stop
sudo apt-get remove --purge $APACHE_PKGS
sudo apt-get install --reinstall apache2

[#24512] Friday, July 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sertold

Total Points: 445
Total Questions: 123
Total Answers: 113

Location: Burundi
Member since Wed, Sep 28, 2022
2 Years ago
sertold questions
Wed, Dec 21, 22, 16:02, 1 Year ago
Fri, Dec 31, 21, 01:50, 2 Years ago
Thu, Jun 16, 22, 23:30, 2 Years ago
Mon, Mar 7, 22, 16:21, 2 Years ago
Tue, Mar 29, 22, 02:11, 2 Years ago
;