
macOS Catalina 10.15.3 시스템에 PHP를 로컬로 설치했습니다.
php -i
phpinfo()
PHP Version => 7.3.11
Nginx를 실행하여 정적 파일을 제공하고 있습니다.
Nginx와 PHP가 스크립트 파일을 제공하도록 만드는 가장 쉬운 방법은 무엇입니까? 나는 거기에 수많은 기사가 있다는 것을 알고 있지만 모두 다양하고 모든 것이 내 요구에 적합하지는 않습니다. 나는 살펴 보았다https://www.php.net/manual/en/install.fpm.install.phpphp.ini
그런데 웹서버에 사용하고 있는 것을 찾을 수 없나요 ? 아직 PHP 파일을 제공할 수 없기 때문에 단순히 루트에 파일을 배치하고 다음을 사용할 수는 없습니다.phpinfo()
php -i | grep "Configuration File"
Configuration File (php.ini) Path => /etc
Loaded Configuration File => (none)
로컬 설정에 대한 추가 정보;
server {
listen 8080;
server_name localhost;
#charset koi8-r;
access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm index.php;
}
따라서 설치를 시도하면 PHP-FPM
즉시 재미와 게임(온라인 참조)이 시작됩니다.
$ brew tap homebrew/dupes
$ brew tap homebrew/php
$ brew install --without-apache --with-fpm php71
Error: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated.
Error: homebrew/php was deprecated. This tap is now empty as all its formulae were migrated.
Error: invalid option: --without-apache
몇 가지 단서를 제공하거나 올바른 방향으로 나에게 조언을 해줄 수 있다면 좋을 것입니다.