I upgraded to Ubuntu 13.10. At first when running apache after the update, there were missing/broken files, so I simply re-installed apache. I backed up the vhost file.
当试图从浏览器访问我的Laravel项目时,会出现403错误.我已经多次更改根文件夹的权限,但它仍然是禁止的.我不相信这是一个拉威尔的问题,因为我已经在13.04修复了它,我使用相同的文件.
这是我的默认设置.conf文件,位于/sites enabled和/sites available中.我的apache2.conf文件自安装后保持不变.
<VirtualHost *:80>
DocumentRoot /home/brennan/development/MasonACM/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/brennan/development/MasonACM/public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
同样重要的是要注意我的.htaccess文件没有丢失,自13.04网站运行以来,该文件一直没有更改.
UPDATE:
I have apache's host settings working now, but now the browser is displaying the actual code of index.php, meaning apache isn't using php for some reason. I just checked that php was installed, so why wouldn't apache recognize it?