您好,我一直在寻找互联网文章论坛来解决我的问题,但到目前为止无济于事。我正在尝试在 localhost 上为我的 FuelPHP 开发设置一个 Apache 虚拟主机,但我一直受到错误 403 消息的抨击。这是我目前的设置。
#/etc/apache2/sites-enabled/000-default
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot "/home/supercomputer/Desktop/PHP/fuelProject/public"
ServerName localhost.home
<Directory "/home/supercomputer/Desktop/PHP/fuelProject/public" >
Options Indexes FollowSymLinks MultiViews Includes ExecCGI
AllowOverride All
Order Allow,Deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
我已将我的 Docroot 指向我的fuelProject 中的公用文件夹。另外,为了确保 Apache 可以访问服务器文件,我将所有文件的权限设置为递归地读取、写入和执行,以确保 100% 安全。关于还有什么可能出错的任何线索?
PS:我正在运行ubuntu raring(13.04)
PSS:我正在尝试访问 localhost.home 和 localhost.home/index.php。重新启动服务器时,我还会收到以下警告
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri May 03 15:46:58 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri May 03 15:46:59 2013] [warn] NameVirtualHost *:80 has no VirtualHosts