[MacPorts] #67142: php82-fpm access denied to a file by System Policy of macOS Ventura

MacPorts noreply at macports.org
Fri Mar 24 12:38:02 UTC 2023


#67142: php82-fpm access denied to a file by System Policy of macOS Ventura
--------------------------------+-----------------------
 Reporter:  beskhu              |      Owner:  (none)
     Type:  defect              |     Status:  new
 Priority:  Normal              |  Milestone:
Component:  ports               |    Version:  2.8.1
 Keywords:  php82-fpm, php-fpm  |       Port:  php82-fpm
--------------------------------+-----------------------
 I'm not sure it's a defect since it's the first time I try to setup a LAMP
 server using macports.
 php82-fpm has access denied to a file by System Policy of macOS Ventura.
 Here is the apple console message I identified :

 System Policy: php-fpm82(449) deny(1) file-read-data
 /Volumes/2To/Sites/64.php

 In the apache log I get :

 [Fri Mar 24 12:40:39.953320 2023] [proxy_fcgi:error] [pid 1120] [client
 ::1:49813] AH01071: Got error 'PHP message: PHP Warning:  PHP Request
 Startup: Failed to open stream: Operation not permitted in Unknown on line
 0; Unable to open primary script: /Volumes/2To/Sites/64.php (Operation not
 permitted)', referer: http://localhost/

 And the browser shows :

 No input file specified.

 The file is authorized to everyone, and I allowed php82-fpm and php82 to
 access full disk inside security panel of macOS Ventura.

-- 
Ticket URL: <https://trac.macports.org/ticket/67142>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list