Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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

how to install apache server in ubuntu

sudo apt update
sudo apt install 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 :: crontab delay after reboot 
Shell :: set git origin 
Shell :: update cargo 
Shell :: remove staged files git 
Shell :: apache/2.4.41 (ubuntu) server at localhost port 80 error 
Shell :: install haskell stack 
Shell :: how to pull branch from github 
Shell :: stop minecraft server command line 
Shell :: how to remove remote ulr 
Shell :: usb sound card not working ubuntu 
Shell :: doc to pdf linux 
Shell :: sudo apt-get install podman 
Shell :: The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server at Port 80 
Shell :: how to install chocolatey on windows 10 
Shell :: shell read file line by line 
Shell :: nginx: invalid option: "restart" 
Shell :: express-generator ejs 
Shell :: find text in files ubuntu 
Shell :: revert to a particular commit git 
Shell :: search not working windows 11 
Shell :: virtualbox mac install brew 
Shell :: * branch master - FETCH_HEAD 
Shell :: ubuntu measure execution time 
Shell :: add pg_config to path 
Shell :: fix windows and linux time 
Shell :: bash check if variable is number 
Shell :: install tqdm 
Shell :: npm ignore scripts 
Shell :: ufw allow port range 
Shell :: how to verify if pip installed a package 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =