Ok, I solved the problem myself. Two things need to be done. First, add lines to the configuration file of your site as follows:
<Directory "/home/yifan/www/janice"> Options ExecCGI AllowOverride all Require all granted </Directory>
After that I can browse the site without a forbidden error. However, the php file is displayed as plain text. I check modems with folders and find php5 is not here. I have no idea why php5 gets lost during the upgrade. So just reinstall it on
sudo apt-get install libapache2-mod-php5
Then the site is restored.
Yifan Sun Nov 01 '13 at 15:12 2013-11-01 15:12
source share