Apache - Permissions are missing on a component of the path

前端 未结 6 980
南笙
南笙 2021-02-08 11:03

None of my website images are loaded, although paths are correct. In my Apache logs, I have plenty of :

(13)Permission denied: [client 87.231.108.18:57108] AH00         


        
6条回答
  •  梦毁少年i
    2021-02-08 11:25

    On macOS it might be caused by a user group permission issue.

    Go to httpd.conf file (located at /usr/local/etc/httpd if Apache is installed by Homebrew). Find and change the value in front of User to your computer username (that you log in with). Restart Apache.

    This needs to be done to PHP-FMP as well if you are using that with Apache. Find php-fpm.conf file (usually located at /usr/local/etc/php/7.x/ and find the pool definitions:

    uncomment include=/usr/local/etc/php/7.x/php-fpm.d/*.conf if commented and save the file. now open the recently uncommented file and find user = and change the value of user to your computer username. Now restart PHP service.

提交回复
热议问题