By mistake I have applied the command,
sudo rm -rf /etc/init.d/apache2 restart
after that i can't run apache2
How can I solve this?
Reinstall and start Apache with the commands below:
sudo apt-get purge apache2
sudo apt-get install apache2
sudo service apache2 start
apt purge uninstalls the specified app (in this case, apache)
apt install installs the specified app (in this case, apache)
service start starts the specified app (in this case, apache)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With