Macos Apache/2.4.16中的异常处理程序出错
我正在尝试在Mac OS X Yosemite 10.10.5和Apache服务器版本上安装本地dev env 服务器版本:Apache/2.4.16 Unix服务器构建日期:2015年7月22日 21:03:09 当我将localhost用作urleveled index.html时,会出现以下错误 异常处理程序中出现错误 我尝试调试这个,但找不到解决方案 我还试图更改httpd.conf文件,但仍然没有得到修复Macos Apache/2.4.16中的异常处理程序出错,macos,apache,laravel,exception,Macos,Apache,Laravel,Exception,我正在尝试在Mac OS X Yosemite 10.10.5和Apache服务器版本上安装本地dev env 服务器版本:Apache/2.4.16 Unix服务器构建日期:2015年7月22日 21:03:09 当我将localhost用作urleveled index.html时,会出现以下错误 异常处理程序中出现错误 我尝试调试这个,但找不到解决方案 我还试图更改httpd.conf文件,但仍然没有得到修复 # Deny access to the entirety of your se
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory /Library/WebServer/Documents/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
及
我想在浏览器中查看文件夹结构。是否正在尝试安装laravel?是的,我正在尝试安装laravel。但拉威尔有不同的问题。我有不同的文件夹结构的Laravel。可能的重复现在我已经解决了上述问题,我仍然面临着另一个问题。当我尝试手动为eg提供url时http://localhost/laravel/public 我在异常处理程序中遇到错误。当我使用vhost时,我会得到异常SQLSTATE[HY000][2002]操作超时。这里是虚拟主机文档root/Library/WebServer/Documents/branch/enterprise/public ServerName admin.local ErrorLog/private/var/log/apache2/admin.local-error\u log CustomLog/private/var/log/apache2/admin.local-access\u log common AllowOverride All命令允许,拒绝所有人的允许
DocumentRoot "/Library/WebServer/Documents"
<Directory "/Library/WebServer/Documents">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options FollowSymLinks Multiviews
MultiviewsMatch Any
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>