Install Apache2 Ubuntu

[Solved] Install Apache2 Ubuntu | Shell - Code Explorer | yomemimo.com
Question : start apache2 ubuntu

Answered by : ugly-unicorn-qgnk061c00eg

# Restart Apache 2 server on Linux/Unix
sudo service apache2 restart
# Start Apache 2 server on Linux/Unix
sudo service apache2 start
# Stop Apache 2 server on Linux/Unix
sudo service apache2 stop
# Reload Apache 2 server on Linux/Unix "No downtime!"
sudo service apache2 reload

Source : | Last Update : Mon, 03 Aug 20

Question : reinstal apache2 ubuntu

Answered by : expensive-eagle-pwq7f7dku37h

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

Source : https://askubuntu.com/questions/111770/how-reinstall-apache2 | Last Update : Tue, 11 Aug 20

Question : install apache2 ubuntu

Answered by : clear-crossbill-swi77el2o4l6

sudo apt update
sudo apt install apache2

Source : https://ubuntu.com/tutorials/install-and-configure-apache#2-installing-apache | Last Update : Fri, 19 Nov 21

Question : how to install apache server in ubuntu

Answered by : bobbyk

sudo apt update
sudo apt install apache2

Source : https://ubuntu.com/tutorials/install-and-configure-apache#2-installing-apache | Last Update : Sun, 13 Dec 20

Question : How to install Apache 2 in Ubuntu?

Answered by : harendra

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

Source : https://install-packages.github.io/#!/?os=Ubuntu&module=Apache&version=apache2 | Last Update : Thu, 10 Mar 22

Question : ubuntu install apache

Answered by : fantastic-ferret-mpsjogdjxt13

sudo apt-get install apache2
sudo /etc/init.d/apache2 restart

Source : https://askubuntu.com/questions/111770/how-reinstall-apache2 | Last Update : Sat, 12 Feb 22

Question : Install Apache2 Linux

Answered by : iamatp-on-scratch

sudo apt install apache2 -y

Source : https://pimylifeup.com/raspberry-pi-apache/ | Last Update : Sun, 31 Jul 22

Question : install apache2

Answered by : girz-sebastian

To install laravel v9 you will need apache2, php8 and composerv2 (Ubuntu 20.04/Ubuntu 18.04)
sudo apt update
sudo apt upgrade
Install and start apache2
sudo apt install apache2
sudo service apache2 start
Open: http://localhost:80
sudo service apache2 stop
Install php8
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get install php8.0 php8.0-cli php8.0-common php8.0-xml php8.0-curl
php -v
Enable mods
sudo a2enmod php8.0
sudo a2enmod headers
sudo a2enmod rewrite
Install composerv2
cd /home/user
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
compsoer -V
Install laravel project
composer create-project laravel/laravel example-app
php artisan key:generate --ansi
php artisan serve
Configuration file for apache2 example
cd /etc/apache2
sudo a2dissite 000-default.conf
cd /sites-available
sudo touch appName.conf
sudo nano appName.conf
Copy, paste and configurate:
---------------------------------------------------------------------------------
<VirtualHost *:80>	ServerName name.local // If project is based on multiple env (admin/frontend)	SetEnv ACTIVE_MODULE frontend	DocumentRoot "pathDirectory/laravel/public"	<Directory "pathDirectory/laravel/public"> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted Order allow,deny Allow from all	</Directory>	ErrorLog /var/log/apache2/fileName.err	CustomLog /var/log/apache2/fileName combined
</VirtualHost>
---------------------------------------------------------------------------------
sudo a2ensite appName.conf
sudo service apache2 restart
or
sudo service apache2 start

Source : | Last Update : Wed, 18 May 22

Answers related to install apache2 ubuntu

Code Explorer Popular Question For Shell