[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
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
unable to resolve host
Upgrade from Ubuntu 12.04 to 14.04. Got the following message:
unable to resolve host ip-172-30-0-19
Sulution [4]: add the following line to /etc/hosts
127.0.1.1 ip-172-30-0-19
References:
[1] | Migrate from t1.micro to t2.micro Amazon AWS - Stack Overflow |
[2] | [AWS] Create/Migrate Linux Users on Amazon EC2 |
[3] | apache 2.2 - NameVirtualHost has no effect - Server Fault |
[4] | AWS Developer Forums: sudo: unable to resolve host ... |
[5] | apache - Error message “Forbidden You don't have permission to access / on this server” |
[6] |