[AWS] Upgrade from Ubuntu 12.04 to 14.04


Upgrade from AWS EC2 t1.micro running Ubuntu 12.04 LTS with Apache-2.2 to t2.nano running Ubuntu 14.04 LTS with Apache-2.4. The following is the problems I have.

access / on this server

Upgrade to Apache-2.4 from 2.2. Got the following message:

You don't have permission to access / on this server

Solution:

Add

<Directory />
        Require all granted
</Directory>

to /etc/apache2/sites-available/000-default.conf

<VirtualHost *:80>

      ...

      <Directory />
              Require all granted
      </Directory>
</VirtualHost>

enable apache file and directory indexing

Solution [6]: Edit /etc/apache2/apache2.conf. Find:

<Directory />
      Options FollowSymLinks
      AllowOverride None
      Require all denied
</Directory>

Change to:

<Directory />
      Options Indexes FollowSymLinks
      AllowOverride None
      Require all denied
</Directory>

Then restart apache2:

$ sudo service apache2 restart
# or
$ sudo /etc/init.d/apache2 restart