Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

reinstal apache2 ubuntu

sudo apt-get --purge remove apache2
sudo apt-get autoremove
sudo apt-get install apache2
sudo /etc/init.d/apache2 restart
Comment

linux apache start

sudo service apache2 start
sudo service apache2 restart
sudo service apache2 stop

OR 

sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 stop
Comment

install apache2 ubuntu

sudo apt update
sudo apt install apache2
Comment

ubuntu apache2 command

sudo systemctl start apache2
sudo systemctl stop apache2
sudo systemctl restart apache2
sudo systemctl status apache2
Comment

start apache server in ubuntu

# Start Apache 2 server on Linux/Unix
sudo apt install apache2

# allow uncomplicated firewall
sudo ufw allow 'Apache'

# start the server
sudo service apache2 start

# /var/www/html/index.html is now live on =>
http://localhost/ 

# Stop Apache 2 server on Linux/Unix
sudo service apache2 stop

#remove apache2 packages
$ sudo apt-get purge apache2 apache2-utils apache2-bin apache2.2-common

# cleanup
$ sudo apt-get autoremove
Comment

PREVIOUS NEXT
Code Example
Shell :: how to uninstall create-react-app 
Shell :: installing ncurses library 
Shell :: linux sort folders by size 
Shell :: manjaro clean up disk space 
Shell :: remove heroku remote 
Shell :: install gparted ubuntu 
Shell :: ultimate power plan windows 10 
Shell :: uninstall pgadmin3 drive linux 
Shell :: Please move or remove them before you merge. 
Shell :: how to change hostname in ubuntu 
Shell :: restart crontab 
Shell :: remove xampp from ubuntu 
Shell :: rclone ubuntu install guide tutorial 
Shell :: check ubuntu version 
Shell :: refusing to merge unrelated histories bitbucket 
Shell :: conda update existing environment from yml 
Shell :: ubuntu check process on port 
Shell :: permission denied running shell script 
Shell :: cmd list dotnet frameworks installed 
Shell :: install neovim 0.5 ubuntu 
Shell :: linux caps lock escape swap 
Shell :: install openjdk8 in ubuntu 
Shell :: set git user name and user email 
Shell :: powershell get input from user 
Shell :: error: you need to resolve your current index first git 
Shell :: public ip linux 
Shell :: remove ruby from mac 
Shell :: how to install pip on mac 
Shell :: delete postmaster.pid mac 
Shell :: github desktop for ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =