From 70c5b89f86da065e55f48d8adef3bd2e4c1eeac4 Mon Sep 17 00:00:00 2001 From: Admin9705 Date: Sun, 22 Oct 2017 09:46:06 -0400 Subject: [PATCH] Update 02 - Apache Server.md --- 4 - Build Website - Front/02 - Apache Server.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/4 - Build Website - Front/02 - Apache Server.md b/4 - Build Website - Front/02 - Apache Server.md index b1b2d7d180..be60dd0999 100644 --- a/4 - Build Website - Front/02 - Apache Server.md +++ b/4 - Build Website - Front/02 - Apache Server.md @@ -31,13 +31,15 @@ sudo apt-get install mysql-server sudo mysql_secure_installation ``` -## Install PHP - +## PHP +Installing PHP ```sh sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql +``` -# If a user requests a directory from the server, Apache will first look for a file called index.html. -# We want to prefer PHP files (for wordpress), so we'll make Apache look for an index.php file first. +If a user requests a directory from the server, Apache will first look for a file called index.html. We want to prefer PHP files (for wordpress), so we'll make Apache look for an index.php file first. + +```sh sudo nano /etc/apache2/mods-enabled/dir.conf ```