XAMPP指向根文件夹外的文件

我在Mac中第一次使用XAMPP。 用尽访问根文件夹(htdocs)以外的问题。当我把我的web应用程序放在htdocs里面时,默认的httpd.conf文件有效,当我尝试将我的web应用程序url指向httpd.conf时,它会抛出错误

我知道要修改根文件夹,我需要更改我的XAMPP / etc / httpd.conf文件

使用默认的XAMPP MAC设置,我试图在XAMPP / etc / httpd.conf文件中更改服务器根目录,文档根目录和目录

ServerRoot "/Users/ravi/Documents/Development/Backbone/backboneboilerplate" DocumentRoot "/Users/ravi/Documents/Development/Backbone/backboneboilerplate" <Directory /> Options FollowSymLinks AllowOverride All Order deny,allow Deny from all </Directory> <Directory "/Users/ravi/Documents/Development/Backbone/backboneboilerplate"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> 

它试图启动XAMPP时抛出错误

httpd:/Applications/XAMPP/xamppfiles/etc/httpd.conf中第54行的语法错误:无法将/Users/ravi/Documents/Development/Backbone/backboneboilerplate/modules/mod_authn_file.so加载到服务器中:无法创build目标文件映像或添加库

ServerRoot“/ Users / ravi / Documents / Development / Backbone / backboneboilerplate”

不应该改变 – 这应该指向Apache安装文件夹; 按照: http : //httpd.apache.org/docs/current/mod/core.html#serverroot

ServerRoot指令设置服务器所在的目录。 通常它将包含子目录conf /和logs /。 其他configuration指令(例如Include或LoadModule)中的相对path取决于此目录。

这是一个chmod问题。 我试图在开发文件夹,骨干文件夹和Backboneboilerplate chmod -r 777 ..它的工作。