我在我的MAC系统(操作系统:macOS High Sierra)上使用XAMP,我按照以下步骤操作:我有权限问题,但我无法理解为什么......
httpd.conf
文件中的我的XAMP上有默认配置:
<IfModule unixd_module>
User daemon
Group daemon
</IfModule>
我在htdocs
目录中有一个laravel项目:
/ Applications / XAMPP / xamppfiles / htdocs / sites有2个站点:
drwxrwxr-x 5 daemon daemon 160 Dec 2 07:11 beinstyle
drwxrwxr-x 5 daemon daemon 160 Dec 2 07:10 conlineltd
在该网站目录中,我有日志目录:
drwxrwxr-x 2 daemon daemon 64 Nov 29 18:26 logs
httpd.conf configuration for:
Listen 80
Listen 8080
# Virtual hosts
Include etc/extra/httpd-vhosts.conf // included
httpd-vhosts.conf
<VirtualHost *:8080>
ServerAdmin conlineltd.com
DocumentRoot "/Applications/XAMPP/htdocs/sites/conlineltd/project/public"
DirectoryIndex index.php
ServerName conlineltd.com
ServerAlias www.conlineltd.com
ErrorLog "/Applications/XAMPP/htdocs/sites/conlineltd/logs/"
CustomLog "/Applications/XAMPP/htdocs/sites/conlineltd/logs/" common
</VirtualHost>
<VirtualHost *:8080>
ServerAdmin beinstyle.com
DocumentRoot "/Applications/XAMPP/htdocs/sites/beinstyle/project/public"
DirectoryIndex index.php
ServerName beinstyle.com
ServerAlias www.beinstyle.com
ErrorLog "/Applications/XAMPP/htdocs/sites/beinstyle/logs/"
CustomLog "/Applications/XAMPP/htdocs/sites/beinstyle/logs/" common
</VirtualHost>
我运行以下命令:
`sudo dseditgroup -o checkmember -m macbook daemon` after checking the command return yes!
sudo dseditgroup -o edit -a macbook -t user daemon
来自apache的错误日志:
(21)是目录:AH00091:httpd:无法打开错误日志文件/ Applications / XAMPP / htdocs / sites / beinstyle / logs /。 AH00015:无法打开日志
我的系统登录用户是macbook我是否需要将他添加到守护程序组?
我是linux系统权限主题的新手,也许我想念一些简单的东西,请你帮忙!!