Skip to content

Commit

Permalink
Update 02 - Apache Server.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin9705 authored Oct 22, 2017
1 parent aeea811 commit 70c5b89
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions 4 - Build Website - Front/02 - Apache Server.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit 70c5b89

Please sign in to comment.