Linux serverlinux web serverNETWORK ADMINISTRATIONS

[ Laravel setup ] How to install and configure Apache server in your Linux machine

How to install and configure apache2 server in your Linux machine
———————————————————————————————————————-

Step1- Update and upgrade your machine repository
[ sudo apt-get update -y && sudo apt-get upgrade -y ]

Step2- To install Apache, install the latest meta-package apache2 by running:
[ sudo apt-get install apache2 ]

Step3 – After letting the command run, all required packages are installed and we can test it
out by typing in our IP address for the web server.

Step4 – 2.After installing apache2 server give higher priority to index.php file
[ sudo nano /etc/apache2/mods-enabled/dir.conf. ]

** Like this **

DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm

Step5 – Reload your apache server
[ sudo service apache2 reload ] or [ sudo service apache2 restart ]
——————————————————————————————————————————————

source

by 〈o ; o〉Annode

linux web server

Leave a Reply

Your email address will not be published. Required fields are marked *