Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WordPress can't locate any of the assets #17

Open
leenaliha opened this issue Dec 21, 2024 · 3 comments
Open

WordPress can't locate any of the assets #17

leenaliha opened this issue Dec 21, 2024 · 3 comments

Comments

@leenaliha
Copy link

leenaliha commented Dec 21, 2024

After following Macos LEMP instructions (https://github.com/digitoimistodude/macos-lemp-setup/blob/master/README.md) and using Dudestack createproject WordPress can't locate any of the assets.

Using Macbook Pro M1

GET https://project.test/wp/wp-includes/css/admin-bar.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:17 GET https://project.test/wp/wp-includes/css/dashicons.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:22 GET https://project.test/wp/wp-includes/js/thickbox/thickbox.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:23 GET https://project.test/wp/wp-admin/css/common.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:26 GET https://project.test/wp/wp-admin/css/dashboard.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:24 GET https://project.test/wp/wp-admin/css/forms.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:25 GET https://project.test/wp/wp-admin/css/admin-menu.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:28 GET https://project.test/wp/wp-admin/css/edit.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:27 GET https://project.test/wp/wp-admin/css/list-tables.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:29 GET https://project.test/wp/wp-admin/css/revisions.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:30 GET https://project.test/wp/wp-admin/css/media.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:31 GET https://project.test/wp/wp-admin/css/themes.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:32 GET https://project.test/wp/wp-admin/css/about.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:33 GET https://project.test/wp/wp-admin/css/nav-menus.css?ver=6.7 net::ERR_ABORTED 404 (Not Found) options-general.php:35

php -v:
PHP 8.3.15 (cli) (built: Dec 17 2024 18:18:02) (NTS) Copyright (c) The PHP Group Zend Engine v4.3.15, Copyright (c) Zend Technologies with Xdebug v3.4.0, Copyright (c) 2002-2024, by Derick Rethans with Zend OPcache v8.3.15, Copyright (c), by Zend Technologies

which php:
/opt/homebrew/opt/[email protected]/bin/php

sudo nginx -t:
nginx: the configuration file /opt/homebrew/etc/nginx/nginx.conf syntax is ok nginx: configuration file /opt/homebrew/etc/nginx/nginx.conf test is successful

nginx/error.log doesn't give any clues of the problem.

@leenaliha
Copy link
Author

leenaliha commented Dec 21, 2024

The Dudestack installation debug:


projects % createproject

Using this start script requires you have dev server installed and working:
https://github.com/digitoimistodude/macos-lemp-setup

Running self-updater...
Password:
From https://github.com/digitoimistodude/dudestack
 * branch            master     -> FETCH_HEAD
Already up to date.

---------------------------------------------------------
createproject start script for macOS, v1.1.7 (2024-12-12)
dudestack v2.5.0 (2024-12-12)
---------------------------------------------------------

Project name in lowercase (without spaces or special characters): 
project

Checking for a GitHub repo...
Enter passphrase for key '/Users/username/.ssh/id_rsa': 
Ensuring git is installed...
Already up to date.
Ensuring composer is installed...
Creating project via composer create-project command...
Creating a "ronilaukkarinen/dudestack" project at "/var/www/project"
Installing ronilaukkarinen/dudestack (dev-master 803b523af305ead96cccdbac6bba306c4d0a7526)
  - Installing ronilaukkarinen/dudestack (dev-master 803b523): Extracting archive
Created project in /var/www/project
> Roots\Bedrock\Installer::addSalts
Loading composer repositories with package information
Updating dependencies                                 
Lock file operations: 156 installs, 0 updates, 0 removals
  - Locking composer/ca-bundle (1.5.4)
  - Locking composer/class-map-generator (1.5.0)
  - Locking composer/composer (2.8.4)
  - Locking composer/installers (v1.12.0)
  - Locking composer/metadata-minifier (1.0.0)
  - Locking composer/pcre (3.3.2)
  - Locking composer/semver (3.4.3)
  - Locking composer/spdx-licenses (1.5.8)
  - Locking composer/xdebug-handler (3.0.5)
  - Locking dealerdirect/phpcodesniffer-composer-installer (v0.7.2)
  - Locking devgeniem/wp-sanitize-accented-uploads (1.2.1)
  - Locking digitoimistodude/air-blocks-acf-example-data (dev-master 6923ee1)
  - Locking digitoimistodude/air-helper (3.1.11)
  - Locking eftec/bladeone (3.52)
  - Locking gettext/gettext (v4.8.12)
  - Locking gettext/languages (2.10.0)
  - Locking graham-campbell/result-type (v1.1.3)
  - Locking johnpbloch/wordpress (6.7.0)
  - Locking johnpbloch/wordpress-core (6.7.0)
  - Locking johnpbloch/wordpress-core-installer (2.0.0)
  - Locking justinrainbow/json-schema (5.3.0)
  - Locking koodimonni-language/en_gb (6.7.1)
  - Locking koodimonni-language/fi (6.7.1)
  - Locking koodimonni-plugin-language/admin-color-schemer-en_gb (1.1)
  - Locking koodimonni-plugin-language/akismet-en_gb (5.3.5)
  - Locking koodimonni-plugin-language/akismet-fi (5.3.5)
  - Locking koodimonni-plugin-language/bbpress-en_gb (2.6.11)
  - Locking koodimonni-plugin-language/bbpress-fi (2.6.11)
  - Locking koodimonni-plugin-language/buddypress-en_gb (9.2.0)
  - Locking koodimonni-plugin-language/buddypress-fi (9.2.0)
  - Locking koodimonni-plugin-language/classic-editor-en_gb (1.6.7)
  - Locking koodimonni-plugin-language/classic-widgets-en_gb (0.3)
  - Locking koodimonni-plugin-language/enable-jquery-migrate-helper-en_gb (1.4.0)
  - Locking koodimonni-plugin-language/health-check-en_gb (1.7.1)
  - Locking koodimonni-plugin-language/hello-dolly-en_gb (1.7.2)
  - Locking koodimonni-plugin-language/livejournal-importer-en_gb (0.5)
  - Locking koodimonni-plugin-language/livejournal-importer-fi (0.5)
  - Locking koodimonni-plugin-language/movabletype-importer-en_gb (0.6.3)
  - Locking koodimonni-plugin-language/movabletype-importer-fi (0.6.3)
  - Locking koodimonni-plugin-language/opml-importer-en_gb (0.2)
  - Locking koodimonni-plugin-language/opml-importer-fi (0.2)
  - Locking koodimonni-plugin-language/performant-translations-en_gb (1.2.0)
  - Locking koodimonni-plugin-language/rss-importer-en_gb (0.3.2)
  - Locking koodimonni-plugin-language/rss-importer-fi (0.3.2)
  - Locking koodimonni-plugin-language/stp-importer-en_gb (0.2)
  - Locking koodimonni-plugin-language/stp-importer-fi (0.2)
  - Locking koodimonni-plugin-language/textpattern-importer-fi (0.2)
  - Locking koodimonni-plugin-language/tumblr-importer-en_gb (1.1)
  - Locking koodimonni-plugin-language/woocommerce-en_gb (9.5.1)
  - Locking koodimonni-plugin-language/woocommerce-fi (9.5.1)
  - Locking koodimonni-plugin-language/wordpress-importer-en_gb (0.8.3)
  - Locking koodimonni-plugin-language/wordpress-importer-fi (0.8.3)
  - Locking koodimonni-plugin-language/wp-front-end-editor-en_gb (2.2.1)
  - Locking koodimonni-plugin-language/wp-jquery-update-test-en_gb (3.0.1)
  - Locking koodimonni-plugin-language/wpcat2tag-importer-en_gb (0.6.2)
  - Locking koodimonni-plugin-language/wpcat2tag-importer-fi (0.6.2)
  - Locking koodimonni-theme-language/twentyeleven-en_gb (4.8)
  - Locking koodimonni-theme-language/twentyeleven-fi (4.8)
  - Locking koodimonni-theme-language/twentyfifteen-en_gb (3.9)
  - Locking koodimonni-theme-language/twentyfifteen-fi (3.9)
  - Locking koodimonni-theme-language/twentyfourteen-en_gb (4.1)
  - Locking koodimonni-theme-language/twentyfourteen-fi (4.1)
  - Locking koodimonni-theme-language/twentynineteen-en_gb (3.0)
  - Locking koodimonni-theme-language/twentynineteen-fi (3.0)
  - Locking koodimonni-theme-language/twentyseventeen-en_gb (3.8)
  - Locking koodimonni-theme-language/twentyseventeen-fi (3.8)
  - Locking koodimonni-theme-language/twentysixteen-en_gb (3.4)
  - Locking koodimonni-theme-language/twentysixteen-fi (3.4)
  - Locking koodimonni-theme-language/twentyten-en_gb (4.3)
  - Locking koodimonni-theme-language/twentyten-fi (4.3)
  - Locking koodimonni-theme-language/twentythirteen-en_gb (4.3)
  - Locking koodimonni-theme-language/twentythirteen-fi (4.3)
  - Locking koodimonni-theme-language/twentytwelve-en_gb (4.4)
  - Locking koodimonni-theme-language/twentytwelve-fi (4.4)
  - Locking koodimonni-theme-language/twentytwenty-en_gb (2.8)
  - Locking koodimonni-theme-language/twentytwenty-fi (2.8)
  - Locking koodimonni-theme-language/twentytwentyfour-en_gb (1.3)
  - Locking koodimonni-theme-language/twentytwentyone-en_gb (1.0)
  - Locking koodimonni-theme-language/twentytwentyone-fi (1.0)
  - Locking koodimonni-theme-language/twentytwentythree-en_gb (1.6)
  - Locking koodimonni-theme-language/twentytwentytwo-en_gb (1.9)
  - Locking koodimonni/composer-dropin-installer (dev-master d10c1d4)
  - Locking mck89/peast (v1.16.3)
  - Locking mustache/mustache (v2.14.2)
  - Locking nb/oxymel (v0.1.0)
  - Locking oscarotero/env (v2.1.1)
  - Locking phpcompatibility/php-compatibility (dev-develop 02835e4)
  - Locking phpcompatibility/phpcompatibility-paragonie (1.3.3)
  - Locking phpcompatibility/phpcompatibility-wp (2.1.5)
  - Locking phpcsstandards/phpcsextra (1.2.1)
  - Locking phpcsstandards/phpcsutils (1.0.12)
  - Locking phpoption/phpoption (1.9.3)
  - Locking psr/container (2.0.2)
  - Locking psr/log (3.0.2)
  - Locking react/promise (v3.2.0)
  - Locking roots/wp-config (1.0.0)
  - Locking seld/jsonlint (1.11.0)
  - Locking seld/phar-utils (1.2.1)
  - Locking seld/signal-handler (2.0.2)
  - Locking squizlabs/php_codesniffer (3.11.2)
  - Locking symfony/console (v7.2.1)
  - Locking symfony/deprecation-contracts (v3.5.1)
  - Locking symfony/filesystem (v7.2.0)
  - Locking symfony/finder (v7.2.0)
  - Locking symfony/polyfill-ctype (v1.31.0)
  - Locking symfony/polyfill-intl-grapheme (v1.31.0)
  - Locking symfony/polyfill-intl-normalizer (v1.31.0)
  - Locking symfony/polyfill-mbstring (v1.31.0)
  - Locking symfony/polyfill-php73 (v1.31.0)
  - Locking symfony/polyfill-php80 (v1.31.0)
  - Locking symfony/polyfill-php81 (v1.31.0)
  - Locking symfony/process (v7.2.0)
  - Locking symfony/service-contracts (v3.5.1)
  - Locking symfony/string (v7.2.0)
  - Locking vlucas/phpdotenv (v5.6.1)
  - Locking wp-cli/cache-command (v2.1.3)
  - Locking wp-cli/checksum-command (v2.3.0)
  - Locking wp-cli/config-command (v2.3.7)
  - Locking wp-cli/core-command (v2.1.18)
  - Locking wp-cli/cron-command (v2.3.1)
  - Locking wp-cli/db-command (v2.1.2)
  - Locking wp-cli/embed-command (v2.0.17)
  - Locking wp-cli/entity-command (v2.8.2)
  - Locking wp-cli/eval-command (v2.2.5)
  - Locking wp-cli/export-command (v2.1.13)
  - Locking wp-cli/extension-command (v2.1.23)
  - Locking wp-cli/i18n-command (v2.6.3)
  - Locking wp-cli/import-command (v2.0.13)
  - Locking wp-cli/language-command (v2.0.22)
  - Locking wp-cli/maintenance-mode-command (v2.1.2)
  - Locking wp-cli/media-command (v2.2.1)
  - Locking wp-cli/mustangostang-spyc (0.6.3)
  - Locking wp-cli/package-command (v2.5.3)
  - Locking wp-cli/php-cli-tools (v0.11.22)
  - Locking wp-cli/rewrite-command (v2.0.14)
  - Locking wp-cli/role-command (v2.0.15)
  - Locking wp-cli/scaffold-command (v2.4.0)
  - Locking wp-cli/search-replace-command (v2.1.7)
  - Locking wp-cli/server-command (v2.0.14)
  - Locking wp-cli/shell-command (v2.0.15)
  - Locking wp-cli/super-admin-command (v2.0.15)
  - Locking wp-cli/widget-command (v2.1.11)
  - Locking wp-cli/wp-cli (v2.11.0)
  - Locking wp-cli/wp-cli-bundle (v2.11.0)
  - Locking wp-cli/wp-config-transformer (v1.4.1)
  - Locking wp-coding-standards/wpcs (3.1.0)
  - Locking wpackagist-plugin/disable-media-pages (3.1.3)
  - Locking wpackagist-plugin/mailgun (2.1.3)
  - Locking wpackagist-plugin/png-to-jpg (4.4)
  - Locking wpackagist-plugin/query-monitor (3.17.0)
  - Locking wpackagist-plugin/simple-history (5.3.0)
  - Locking wpackagist-plugin/so-clean-up-wp-seo (4.0.2)
  - Locking wpackagist-plugin/tiny-compress-images (3.4.4)
  - Locking wpackagist-plugin/two-factor (0.10.0)
  - Locking wpackagist-plugin/wordpress-seo (24.1)
  - Locking wpackagist-plugin/worker (4.9.20)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 156 installs, 0 updates, 0 removals
  - Installing composer/installers (v1.12.0): Extracting archive
  - Installing johnpbloch/wordpress-core-installer (2.0.0): Extracting archive
  - Installing koodimonni/composer-dropin-installer (dev-master d10c1d4): Extracting archive
  - Installing squizlabs/php_codesniffer (3.11.2): Extracting archive
  - Installing dealerdirect/phpcodesniffer-composer-installer (v0.7.2): Extracting archive
  - Installing symfony/process (v7.2.0): Extracting archive
  - Installing symfony/polyfill-php81 (v1.31.0): Extracting archive
  - Installing symfony/polyfill-php80 (v1.31.0): Extracting archive
  - Installing symfony/polyfill-php73 (v1.31.0): Extracting archive
  - Installing symfony/finder (v7.2.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.31.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.31.0): Extracting archive
  - Installing symfony/filesystem (v7.2.0): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.31.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.31.0): Extracting archive
  - Installing symfony/string (v7.2.0): Extracting archive
  - Installing symfony/deprecation-contracts (v3.5.1): Extracting archive
  - Installing psr/container (2.0.2): Extracting archive
  - Installing symfony/service-contracts (v3.5.1): Extracting archive
  - Installing symfony/console (v7.2.1): Extracting archive
  - Installing seld/signal-handler (2.0.2): Extracting archive
  - Installing seld/phar-utils (1.2.1): Extracting archive
  - Installing seld/jsonlint (1.11.0): Extracting archive
  - Installing react/promise (v3.2.0): Extracting archive
  - Installing psr/log (3.0.2): Extracting archive
  - Installing justinrainbow/json-schema (5.3.0): Extracting archive
  - Installing composer/pcre (3.3.2): Extracting archive
  - Installing composer/xdebug-handler (3.0.5): Extracting archive
  - Installing composer/spdx-licenses (1.5.8): Extracting archive
  - Installing composer/semver (3.4.3): Extracting archive
  - Installing composer/metadata-minifier (1.0.0): Extracting archive
  - Installing composer/class-map-generator (1.5.0): Extracting archive
  - Installing composer/ca-bundle (1.5.4): Extracting archive
  - Installing composer/composer (2.8.4): Extracting archive
  - Installing devgeniem/wp-sanitize-accented-uploads (1.2.1): Extracting archive
  - Installing digitoimistodude/air-blocks-acf-example-data (dev-master 6923ee1): Extracting archive
  - Installing digitoimistodude/air-helper (3.1.11): Extracting archive
  - Installing eftec/bladeone (3.52): Extracting archive
  - Installing gettext/languages (2.10.0): Extracting archive
  - Installing gettext/gettext (v4.8.12): Extracting archive
  - Installing johnpbloch/wordpress-core (6.7.0): Extracting archive
  - Installing johnpbloch/wordpress (6.7.0): Extracting archive
  - Installing koodimonni-theme-language/twentytwentytwo-en_gb (1.9): Extracting archive
  - Installing koodimonni-theme-language/twentytwentythree-en_gb (1.6): Extracting archive
  - Installing koodimonni-theme-language/twentytwentyone-en_gb (1.0): Extracting archive
  - Installing koodimonni-theme-language/twentytwentyfour-en_gb (1.3): Extracting archive
  - Installing koodimonni-theme-language/twentytwenty-en_gb (2.8): Extracting archive
  - Installing koodimonni-theme-language/twentytwelve-en_gb (4.4): Extracting archive
  - Installing koodimonni-theme-language/twentythirteen-en_gb (4.3): Extracting archive
  - Installing koodimonni-theme-language/twentyten-en_gb (4.3): Extracting archive
  - Installing koodimonni-theme-language/twentysixteen-en_gb (3.4): Extracting archive
  - Installing koodimonni-theme-language/twentyseventeen-en_gb (3.8): Extracting archive
  - Installing koodimonni-theme-language/twentynineteen-en_gb (3.0): Extracting archive
  - Installing koodimonni-theme-language/twentyfourteen-en_gb (4.1): Extracting archive
  - Installing koodimonni-theme-language/twentyfifteen-en_gb (3.9): Extracting archive
  - Installing koodimonni-theme-language/twentyeleven-en_gb (4.8): Extracting archive
  - Installing koodimonni-plugin-language/wpcat2tag-importer-en_gb (0.6.2): Extracting archive
  - Installing koodimonni-plugin-language/wp-jquery-update-test-en_gb (3.0.1): Extracting archive
  - Installing koodimonni-plugin-language/wp-front-end-editor-en_gb (2.2.1): Extracting archive
  - Installing koodimonni-plugin-language/wordpress-importer-en_gb (0.8.3): Extracting archive
  - Installing koodimonni-plugin-language/woocommerce-en_gb (9.5.1): Extracting archive
  - Installing koodimonni-plugin-language/tumblr-importer-en_gb (1.1): Extracting archive
  - Installing koodimonni-plugin-language/stp-importer-en_gb (0.2): Extracting archive
  - Installing koodimonni-plugin-language/rss-importer-en_gb (0.3.2): Extracting archive
  - Installing koodimonni-plugin-language/performant-translations-en_gb (1.2.0): Extracting archive
  - Installing koodimonni-plugin-language/opml-importer-en_gb (0.2): Extracting archive
  - Installing koodimonni-plugin-language/movabletype-importer-en_gb (0.6.3): Extracting archive
  - Installing koodimonni-plugin-language/livejournal-importer-en_gb (0.5): Extracting archive
  - Installing koodimonni-plugin-language/hello-dolly-en_gb (1.7.2): Extracting archive
  - Installing koodimonni-plugin-language/health-check-en_gb (1.7.1): Extracting archive
  - Installing koodimonni-plugin-language/enable-jquery-migrate-helper-en_gb (1.4.0): Extracting archive
  - Installing koodimonni-plugin-language/classic-widgets-en_gb (0.3): Extracting archive
  - Installing koodimonni-plugin-language/classic-editor-en_gb (1.6.7): Extracting archive
  - Installing koodimonni-plugin-language/buddypress-en_gb (9.2.0): Extracting archive
  - Installing koodimonni-plugin-language/bbpress-en_gb (2.6.11): Extracting archive
  - Installing koodimonni-plugin-language/akismet-en_gb (5.3.5): Extracting archive
  - Installing koodimonni-plugin-language/admin-color-schemer-en_gb (1.1): Extracting archive
  - Installing koodimonni-language/en_gb (6.7.1): Extracting archive
  - Installing koodimonni-theme-language/twentytwentyone-fi (1.0): Extracting archive
  - Installing koodimonni-theme-language/twentytwenty-fi (2.8): Extracting archive
  - Installing koodimonni-theme-language/twentytwelve-fi (4.4): Extracting archive
  - Installing koodimonni-theme-language/twentythirteen-fi (4.3): Extracting archive
  - Installing koodimonni-theme-language/twentyten-fi (4.3): Extracting archive
  - Installing koodimonni-theme-language/twentysixteen-fi (3.4): Extracting archive
  - Installing koodimonni-theme-language/twentyseventeen-fi (3.8): Extracting archive
  - Installing koodimonni-theme-language/twentynineteen-fi (3.0): Extracting archive
  - Installing koodimonni-theme-language/twentyfourteen-fi (4.1): Extracting archive
  - Installing koodimonni-theme-language/twentyfifteen-fi (3.9): Extracting archive
  - Installing koodimonni-theme-language/twentyeleven-fi (4.8): Extracting archive
  - Installing koodimonni-plugin-language/wpcat2tag-importer-fi (0.6.2): Extracting archive
  - Installing koodimonni-plugin-language/wordpress-importer-fi (0.8.3): Extracting archive
  - Installing koodimonni-plugin-language/woocommerce-fi (9.5.1): Extracting archive
  - Installing koodimonni-plugin-language/textpattern-importer-fi (0.2): Extracting archive
  - Installing koodimonni-plugin-language/stp-importer-fi (0.2): Extracting archive
  - Installing koodimonni-plugin-language/rss-importer-fi (0.3.2): Extracting archive
  - Installing koodimonni-plugin-language/opml-importer-fi (0.2): Extracting archive
  - Installing koodimonni-plugin-language/movabletype-importer-fi (0.6.3): Extracting archive
  - Installing koodimonni-plugin-language/livejournal-importer-fi (0.5): Extracting archive
  - Installing koodimonni-plugin-language/buddypress-fi (9.2.0): Extracting archive
  - Installing koodimonni-plugin-language/bbpress-fi (2.6.11): Extracting archive
  - Installing koodimonni-plugin-language/akismet-fi (5.3.5): Extracting archive
  - Installing koodimonni-language/fi (6.7.1): Extracting archive
  - Installing mck89/peast (v1.16.3): Extracting archive
  - Installing mustache/mustache (v2.14.2): Extracting archive
  - Installing nb/oxymel (v0.1.0): Extracting archive
  - Installing oscarotero/env (v2.1.1): Extracting archive
  - Installing phpcsstandards/phpcsutils (1.0.12): Extracting archive
  - Installing phpcompatibility/php-compatibility (dev-develop 02835e4): Extracting archive
  - Installing phpcompatibility/phpcompatibility-paragonie (1.3.3): Extracting archive
  - Installing phpcompatibility/phpcompatibility-wp (2.1.5): Extracting archive
  - Installing roots/wp-config (1.0.0): Extracting archive
  - Installing phpoption/phpoption (1.9.3): Extracting archive
  - Installing graham-campbell/result-type (v1.1.3): Extracting archive
  - Installing vlucas/phpdotenv (v5.6.1): Extracting archive
  - Installing wp-cli/mustangostang-spyc (0.6.3): Extracting archive
  - Installing wp-cli/php-cli-tools (v0.11.22): Extracting archive
  - Installing wp-cli/wp-cli (v2.11.0): Extracting archive
  - Installing wp-cli/widget-command (v2.1.11): Extracting archive
  - Installing wp-cli/super-admin-command (v2.0.15): Extracting archive
  - Installing wp-cli/shell-command (v2.0.15): Extracting archive
  - Installing wp-cli/server-command (v2.0.14): Extracting archive
  - Installing wp-cli/search-replace-command (v2.1.7): Extracting archive
  - Installing wp-cli/scaffold-command (v2.4.0): Extracting archive
  - Installing wp-cli/role-command (v2.0.15): Extracting archive
  - Installing wp-cli/rewrite-command (v2.0.14): Extracting archive
  - Installing wp-cli/package-command (v2.5.3): Extracting archive
  - Installing wp-cli/media-command (v2.2.1): Extracting archive
  - Installing wp-cli/maintenance-mode-command (v2.1.2): Extracting archive
  - Installing wp-cli/language-command (v2.0.22): Extracting archive
  - Installing wp-cli/import-command (v2.0.13): Extracting archive
  - Installing wp-cli/i18n-command (v2.6.3): Extracting archive
  - Installing wp-cli/extension-command (v2.1.23): Extracting archive
  - Installing wp-cli/export-command (v2.1.13): Extracting archive
  - Installing wp-cli/eval-command (v2.2.5): Extracting archive
  - Installing wp-cli/entity-command (v2.8.2): Extracting archive
  - Installing wp-cli/embed-command (v2.0.17): Extracting archive
  - Installing wp-cli/db-command (v2.1.2): Extracting archive
  - Installing wp-cli/cron-command (v2.3.1): Extracting archive
  - Installing wp-cli/core-command (v2.1.18): Extracting archive
  - Installing wp-cli/wp-config-transformer (v1.4.1): Extracting archive
  - Installing wp-cli/config-command (v2.3.7): Extracting archive
  - Installing wp-cli/checksum-command (v2.3.0): Extracting archive
  - Installing wp-cli/cache-command (v2.1.3): Extracting archive
  - Installing wp-cli/wp-cli-bundle (v2.11.0): Extracting archive
  - Installing phpcsstandards/phpcsextra (1.2.1): Extracting archive
  - Installing wp-coding-standards/wpcs (3.1.0): Extracting archive
  - Installing wpackagist-plugin/disable-media-pages (3.1.3): Extracting archive
  - Installing wpackagist-plugin/mailgun (2.1.3): Extracting archive
  - Installing wpackagist-plugin/png-to-jpg (4.4): Extracting archive
  - Installing wpackagist-plugin/query-monitor (3.17.0): Extracting archive
  - Installing wpackagist-plugin/simple-history (5.3.0): Extracting archive
  - Installing wpackagist-plugin/so-clean-up-wp-seo (4.0.2): Extracting archive
  - Installing wpackagist-plugin/tiny-compress-images (3.4.4): Extracting archive
  - Installing wpackagist-plugin/two-factor (0.10.0): Extracting archive
  - Installing wpackagist-plugin/wordpress-seo (24.1): Extracting archive
  - Installing wpackagist-plugin/worker (4.9.20): Extracting archive
    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

    Moving dropin files...

9 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
37 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
PHP CodeSniffer Config installed_paths set to ../../phpcompatibility/php-compatibility,../../phpcompatibility/phpcompatibility-paragonie,../../phpcompatibility/phpcompatibility-wp,../../phpcsstandards/phpcsextra,../../phpcsstandards/phpcsutils,../../wp-coding-standards/wpcs
No security vulnerability advisories found.
Loading composer repositories with package information
Updating dependencies                                 
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
37 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Creating a MySQL database for project
Attempt to create MySQL database successful.
Updating .env (credentials for database and plugins)...
Installing WordPress...
Success: WordPress installed successfully.
Removing default WordPress posts and applying settings via WP-CLI...
Success: Deleted post 1.
Success: Deleted post 2.
Success: Value passed for 'blogdescription' option is unchanged.
Success: Updated 'WPLANG' option.
Success: Updated 'current_theme' option.
Success: Updated 'template' option.
Success: Updated 'stylesheet' option.
Warning: The 'twentytwelve' theme could not be found.
Success: Theme already deleted.
Warning: The 'twentythirteen' theme could not be found.
Success: Theme already deleted.
Success: Updated 'permalink_structure' option.
Success: Updated 'timezone_string' option.
Success: Updated 'default_pingback_flag' option.
Success: Updated 'default_ping_status' option.
Success: Updated 'default_comment_status' option.
Success: Updated 'date_format' option.
Success: Updated 'time_format' option.
Success: Updated 'admin_email' option.
Warning: Could not delete 'new_admin_email' option. Does it exist?
Plugin 'air-helper' activated.
Plugin 'disable-media-pages' activated.
Plugin 'so-clean-up-wp-seo' activated.
Plugin 'mailgun' activated.
Plugin 'worker' activated.
Plugin 'png-to-jpg' activated.
Plugin 'query-monitor' activated.
Plugin 'simple-history' activated.
Plugin 'tiny-compress-images' activated.
Plugin 'two-factor' activated.
Plugin 'wordpress-seo' activated.
Success: Activated 11 of 11 plugins.
Plugin 'worker' deactivated.
Success: Deactivated 1 of 1 plugins.
Setting file permissions for local dev server...
Password:
Ensuring mkcert is installed...
Installing mkcert
==> Downloading https://formulae.brew.sh/api/formula.jws.json
#=#=#                                                                           
==> Downloading https://formulae.brew.sh/api/cask.jws.json
#=#=#                                                                           
Warning: mkcert 1.4.4 is already installed and up-to-date.
To reinstall 1.4.4, run:
  brew reinstall mkcert
Ensuring dhparam is generated...
Generating HTTPS cert for project...

Created a new certificate valid for the following names 📜
 - "project.test"

The certificate is at "./project.test.pem" and the key at "./project.test-key.pem" ✅

It will expire on 20 March 2027 🗓

Ensuring browsersync certs are is installed...

Creating a GitHub repo...
{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest",
  "status": "404"
}
Initializing the GitHub repo...
Initialized empty Git repository in /Users/username/Projects/project/.git/
warning: re-init: ignored --initial-branch=master
Reinitialized existing Git repository in /Users/username/Projects/project/.git/
[master (root-commit) 0604364] First commit - project started
 18 files changed, 1026 insertions(+)
 create mode 100644 .editorconfig
 create mode 100644 .githooks/post-merge
 create mode 100644 .gitignore
 create mode 100644 CHANGELOG.md
 create mode 100644 Capfile
 create mode 100644 Gemfile
 create mode 100644 composer.json
 create mode 100644 config/application.php
 create mode 100644 config/deploy.rb
 create mode 100644 config/environments/development.php
 create mode 100644 config/environments/production.php
 create mode 100644 config/environments/staging.php
 create mode 100644 content/mu-plugins/bedrock-autoloader.php
 create mode 100644 content/plugins/.gitkeep
 create mode 100644 content/themes/.gitkeep
 create mode 100644 index.php
 create mode 100644 scripts/Roots/Bedrock/Installer.php
 create mode 100644 wp-config.php
Enter passphrase for key '/Users/username/.ssh/id_rsa': 
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Password:
Added vhost, project.test added to /etc/nginx/sites-enabled/
Local environment up and running.
Updating hosts file...
Restarting nginx...
Stopping `nginx`... (might take a while)
==> Successfully stopped `nginx` (label: homebrew.mxcl.nginx)
Warning: Taking root:admin ownership of some nginx paths:
  /opt/homebrew/Cellar/nginx/1.27.3/bin
  /opt/homebrew/Cellar/nginx/1.27.3/bin/nginx
  /opt/homebrew/opt/nginx
  /opt/homebrew/opt/nginx/bin
  /opt/homebrew/var/homebrew/linked/nginx
This will require manual removal of these paths using `sudo rm` on
brew upgrade/reinstall/uninstall.
Warning: nginx must be run as non-root to start at user login!
==> Successfully started `nginx` (label: homebrew.mxcl.nginx)
All done!

Front end: https://project.test
WP-admin:  https://project.test/wp/wp-login.php

Please note! There are no themes installed so you may see a WHITE page. We recommend Air-light which is designed for dudestack: https://github.com/digitoimistodude/air-light - So next git clone air-light and run newtheme.sh or newtheme-wsl.sh under bin/.

Thanks for using createproject start script for macOS, v1.1.7 (2024-12-12)!

And the WordPress debugs:

PHP
Version	8.3.15
SAPI	fpm-fcgi
User	username:staff
max_execution_time	30
memory_limit	1024M
upload_max_filesize	100M
post_max_size	100M
display_errors	1
log_errors	1
Database
Server Version	11.6.2-MariaDB-log
Extension	mysqli
Client Version	80315 (8.3.15)
User	root
Host	localhost
Database	kultut
innodb_buffer_pool_size	1073741824 (~1 Gt)
key_buffer_size	134217728 (~128 Mt)
max_allowed_packet	16777216 (~16 Mt)
max_connections	151
WordPress
Version	6.7
Environment Type (Help)	development
Development Mode (Help)	all
WP_DEBUG	true
WP_DEBUG_DISPLAY	true
WP_DEBUG_LOG	false
SCRIPT_DEBUG	true
WP_CACHE	false
CONCATENATE_SCRIPTS	undefined
COMPRESS_SCRIPTS	undefined
COMPRESS_CSS	undefined
WP_ENVIRONMENT_TYPE	development
WP_DEVELOPMENT_MODE	all
Server
Software	nginx
Version	1.27.3
IP Address	127.0.0.1
Host	MacBookPro
OS	Darwin 24.1.0
Architecture	arm64
Basic Auth	false

@leenaliha
Copy link
Author

leenaliha commented Dec 21, 2024

Could probably relate to some problems with nginx / php-fpm.

Could probably try to uninstall / remove all the packages with related confs and reinstalling macos-lemp. Now can't locate any errors which could cause the problem.

/opt/homebrew/etc/nginx/nginx.conf:

user username staff;

worker_processes 18;

events {
  multi_accept on;
  accept_mutex on;
  worker_connections 1024;
}

http {
  ##
  # Optimization
  ##

  sendfile on;
  sendfile_max_chunk 512k;
  tcp_nopush on;
  tcp_nodelay on;
  keepalive_timeout 120;
  keepalive_requests 100000;
  types_hash_max_size 2048;
  server_tokens off;
  client_body_buffer_size 128k;
  client_max_body_size 10m;
  client_header_buffer_size 1k;
  large_client_header_buffers 4 32k;
  output_buffers 1 32k;
  postpone_output 1460;

  server_names_hash_max_size 1024;
  #server_names_hash_bucket_size 64;
  # server_name_in_redirect off;

  include /opt/homebrew/etc/nginx/mime.types;
  default_type application/octet-stream;

  ##
  # Logging Settings
  ##

log_format custom '$remote_addr - $remote_user [$time_local] "$request" '
                    '$status $body_bytes_sent "$http_referer" '
                    '"$http_user_agent" "$request_time"';
  access_log off;
  access_log /var/log/nginx/access.log custom;
  error_log /var/log/nginx/error.log;

  ##
  # Virtual Host Configs
  ##

  include /opt/homebrew/etc/nginx/sites-enabled/*;
}

/opt/homebrew/etc/nginx/php.conf:

location ~ \.php$ {
  proxy_intercept_errors on;
  try_files $uri /index.php;
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  include fastcgi_params;
  fastcgi_read_timeout 300;
  fastcgi_buffer_size 128k;
  fastcgi_buffers 8 128k;
  fastcgi_busy_buffers_size 128k;
  fastcgi_temp_file_write_size 128k;
  fastcgi_index index.php;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  fastcgi_pass 127.0.0.1:9000;
}

/opt/homebrew/etc/php/8.3/php-fpm.d/www.conf:

; Start a new pool named 'www'.
; the variable $pool can be used in any directive and will be replaced by the
; pool name ('www' here)
[www]

; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
; - 'chdir'
; - 'php_values'
; - 'php_admin_values'
; When not set, the global prefix (or /opt/homebrew/Cellar/[email protected]/8.3.15) applies instead.
; Note: This directive can also be relative to the global prefix.
; Default Value: none
;prefix = /path/to/pools/$pool

; Unix user/group of the child processes. This can be used only if the master
; process running user is root. It is set after the child process is created.
; The user and group can be specified either by their name or by their numeric
; IDs.
; Note: If the user is root, the executable needs to be started with
;       --allow-to-run-as-root option to work.
; Default Values: The user is set to master process running user by default.
;                 If the group is not set, the user's group is used.
user = username
group = staff

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
;                            a specific port;
;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
;                            a specific port;
;   'port'                 - to listen on a TCP socket to all addresses
;                            (IPv6 and IPv4-mapped) on a specific port;
;   '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = 127.0.0.1:9000

; Set listen(2) backlog.
; Default Value: 511 (-1 on Linux, FreeBSD and OpenBSD)
;listen.backlog = 511

; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions. The owner
; and group can be specified either by name or by their numeric IDs.
; Default Values: Owner is set to the master process running user. If the group
;                 is not set, the owner's group is used. Mode is set to 0660.
;listen.owner = username
;listen.group = staff
;listen.mode = 0660

; When POSIX Access Control Lists are supported you can set them using
; these options, value is a comma separated list of user/group names.
; When set, listen.owner and listen.group are ignored
;listen.acl_users =
;listen.acl_groups =

; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
; must be separated by a comma. If this value is left blank, connections will be
; accepted from any ip address.
; Default Value: any
;listen.allowed_clients = 127.0.0.1

; Set the associated the route table (FIB). FreeBSD only
; Default Value: -1
;listen.setfib = 1

; Specify the nice(2) priority to apply to the pool processes (only if set)
; The value can vary from -19 (highest priority) to 20 (lower priority)
; Note: - It will only work if the FPM master process is launched as root
;       - The pool processes will inherit the master process priority
;         unless it specified otherwise
; Default Value: no set
; process.priority = -19

; Set the process dumpable flag (PR_SET_DUMPABLE prctl for Linux or
; PROC_TRACE_CTL procctl for FreeBSD) even if the process user
; or group is different than the master process user. It allows to create process
; core dump and ptrace the process for the pool user.
; Default Value: no
; process.dumpable = yes

; Choose how the process manager will control the number of child processes.
; Possible Values:
;   static  - a fixed number (pm.max_children) of child processes;
;   dynamic - the number of child processes are set dynamically based on the
;             following directives. With this process management, there will be
;             always at least 1 children.
;             pm.max_children      - the maximum number of children that can
;                                    be alive at the same time.
;             pm.start_servers     - the number of children created on startup.
;             pm.min_spare_servers - the minimum number of children in 'idle'
;                                    state (waiting to process). If the number
;                                    of 'idle' processes is less than this
;                                    number then some children will be created.
;             pm.max_spare_servers - the maximum number of children in 'idle'
;                                    state (waiting to process). If the number
;                                    of 'idle' processes is greater than this
;                                    number then some children will be killed.
;             pm.max_spawn_rate    - the maximum number of rate to spawn child
;                                    processes at once.
;  ondemand - no children are created at startup. Children will be forked when
;             new requests will connect. The following parameter are used:
;             pm.max_children           - the maximum number of children that
;                                         can be alive at the same time.
;             pm.process_idle_timeout   - The number of seconds after which
;                                         an idle process will be killed.
; Note: This value is mandatory.
pm = dynamic

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
; CGI. The below defaults are based on a server without much resources. Don't
; forget to tweak pm.* to fit your needs.
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
; Note: This value is mandatory.
pm.max_children = 5

; The number of child processes created on startup.
; Note: Used only when pm is set to 'dynamic'
; Default Value: (min_spare_servers + max_spare_servers) / 2
pm.start_servers = 2

; The desired minimum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.min_spare_servers = 1

; The desired maximum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 3

; The number of rate to spawn child processes at once.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
; Default Value: 32
;pm.max_spawn_rate = 32

; The number of seconds after which an idle process will be killed.
; Note: Used only when pm is set to 'ondemand'
; Default Value: 10s
;pm.process_idle_timeout = 10s;

; The number of requests each child process should execute before respawning.
; This can be useful to work around memory leaks in 3rd party libraries. For
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
; Default Value: 0
;pm.max_requests = 500

; The URI to view the FPM status page. If this value is not set, no URI will be
; recognized as a status page. It shows the following information:
;   pool                 - the name of the pool;
;   process manager      - static, dynamic or ondemand;
;   start time           - the date and time FPM has started;
;   start since          - number of seconds since FPM has started;
;   accepted conn        - the number of request accepted by the pool;
;   listen queue         - the number of request in the queue of pending
;                          connections (see backlog in listen(2));
;   max listen queue     - the maximum number of requests in the queue
;                          of pending connections since FPM has started;
;   listen queue len     - the size of the socket queue of pending connections;
;   idle processes       - the number of idle processes;
;   active processes     - the number of active processes;
;   total processes      - the number of idle + active processes;
;   max active processes - the maximum number of active processes since FPM
;                          has started;
;   max children reached - number of times, the process limit has been reached,
;                          when pm tries to start more children (works only for
;                          pm 'dynamic' and 'ondemand');
; Value are updated in real time.
; Example output:
;   pool:                 www
;   process manager:      static
;   start time:           01/Jul/2011:17:53:49 +0200
;   start since:          62636
;   accepted conn:        190460
;   listen queue:         0
;   max listen queue:     1
;   listen queue len:     42
;   idle processes:       4
;   active processes:     11
;   total processes:      15
;   max active processes: 12
;   max children reached: 0
;
; By default the status page output is formatted as text/plain. Passing either
; 'html', 'xml' or 'json' in the query string will return the corresponding
; output syntax. Example:
;   http://www.foo.bar/status
;   http://www.foo.bar/status?json
;   http://www.foo.bar/status?html
;   http://www.foo.bar/status?xml
;
; By default the status page only outputs short status. Passing 'full' in the
; query string will also return status for each pool process.
; Example:
;   http://www.foo.bar/status?full
;   http://www.foo.bar/status?json&full
;   http://www.foo.bar/status?html&full
;   http://www.foo.bar/status?xml&full
; The Full status returns for each process:
;   pid                  - the PID of the process;
;   state                - the state of the process (Idle, Running, ...);
;   start time           - the date and time the process has started;
;   start since          - the number of seconds since the process has started;
;   requests             - the number of requests the process has served;
;   request duration     - the duration in µs of the requests;
;   request method       - the request method (GET, POST, ...);
;   request URI          - the request URI with the query string;
;   content length       - the content length of the request (only with POST);
;   user                 - the user (PHP_AUTH_USER) (or '-' if not set);
;   script               - the main script called (or '-' if not set);
;   last request cpu     - the %cpu the last request consumed
;                          it's always 0 if the process is not in Idle state
;                          because CPU calculation is done when the request
;                          processing has terminated;
;   last request memory  - the max amount of memory the last request consumed
;                          it's always 0 if the process is not in Idle state
;                          because memory calculation is done when the request
;                          processing has terminated;
; If the process is in Idle state, then informations are related to the
; last request the process has served. Otherwise informations are related to
; the current request being served.
; Example output:
;   ************************
;   pid:                  31330
;   state:                Running
;   start time:           01/Jul/2011:17:53:49 +0200
;   start since:          63087
;   requests:             12808
;   request duration:     1250261
;   request method:       GET
;   request URI:          /test_mem.php?N=10000
;   content length:       0
;   user:                 -
;   script:               /home/fat/web/docs/php/test_mem.php
;   last request cpu:     0.00
;   last request memory:  0
;
; Note: There is a real-time FPM status monitoring sample web page available
;       It's available in: /opt/homebrew/Cellar/[email protected]/8.3.15/share/php/fpm/status.html
;
; Note: The value must start with a leading slash (/). The value can be
;       anything, but it may not be a good idea to use the .php extension or it
;       may conflict with a real PHP file.
; Default Value: not set
;pm.status_path = /status

; The address on which to accept FastCGI status request. This creates a new
; invisible pool that can handle requests independently. This is useful
; if the main pool is busy with long running requests because it is still possible
; to get the status before finishing the long running requests.
;
; Valid syntaxes are:
;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
;                            a specific port;
;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
;                            a specific port;
;   'port'                 - to listen on a TCP socket to all addresses
;                            (IPv6 and IPv4-mapped) on a specific port;
;   '/path/to/unix/socket' - to listen on a unix socket.
; Default Value: value of the listen option
;pm.status_listen = 127.0.0.1:9001

; The ping URI to call the monitoring page of FPM. If this value is not set, no
; URI will be recognized as a ping page. This could be used to test from outside
; that FPM is alive and responding, or to
; - create a graph of FPM availability (rrd or such);
; - remove a server from a group if it is not responding (load balancing);
; - trigger alerts for the operating team (24/7).
; Note: The value must start with a leading slash (/). The value can be
;       anything, but it may not be a good idea to use the .php extension or it
;       may conflict with a real PHP file.
; Default Value: not set
;ping.path = /ping

; This directive may be used to customize the response of a ping request. The
; response is formatted as text/plain with a 200 response code.
; Default Value: pong
;ping.response = pong

; The access log file
; Default: not set
;access.log = log/$pool.access.log

; The access log format.
; The following syntax is allowed
;  %%: the '%' character
;  %C: %CPU used by the request
;      it can accept the following format:
;      - %{user}C for user CPU only
;      - %{system}C for system CPU only
;      - %{total}C  for user + system CPU (default)
;  %d: time taken to serve the request
;      it can accept the following format:
;      - %{seconds}d (default)
;      - %{milliseconds}d
;      - %{milli}d
;      - %{microseconds}d
;      - %{micro}d
;  %e: an environment variable (same as $_ENV or $_SERVER)
;      it must be associated with embraces to specify the name of the env
;      variable. Some examples:
;      - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
;      - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
;  %f: script filename
;  %l: content-length of the request (for POST request only)
;  %m: request method
;  %M: peak of memory allocated by PHP
;      it can accept the following format:
;      - %{bytes}M (default)
;      - %{kilobytes}M
;      - %{kilo}M
;      - %{megabytes}M
;      - %{mega}M
;  %n: pool name
;  %o: output header
;      it must be associated with embraces to specify the name of the header:
;      - %{Content-Type}o
;      - %{X-Powered-By}o
;      - %{Transfert-Encoding}o
;      - ....
;  %p: PID of the child that serviced the request
;  %P: PID of the parent of the child that serviced the request
;  %q: the query string
;  %Q: the '?' character if query string exists
;  %r: the request URI (without the query string, see %q and %Q)
;  %R: remote IP address
;  %s: status (response code)
;  %t: server time the request was received
;      it can accept a strftime(3) format:
;      %d/%b/%Y:%H:%M:%S %z (default)
;      The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
;      e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
;  %T: time the log has been written (the request has finished)
;      it can accept a strftime(3) format:
;      %d/%b/%Y:%H:%M:%S %z (default)
;      The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
;      e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
;  %u: remote user
;
; Default: "%R - %u %t \"%m %r\" %s"
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{milli}d %{kilo}M %C%%"

; A list of request_uri values which should be filtered from the access log.
;
; As a security precuation, this setting will be ignored if:
;     - the request method is not GET or HEAD; or
;     - there is a request body; or
;     - there are query parameters; or
;     - the response code is outwith the successful range of 200 to 299
;
; Note: The paths are matched against the output of the access.format tag "%r".
;       On common configurations, this may look more like SCRIPT_NAME than the
;       expected pre-rewrite URI.
;
; Default Value: not set
;access.suppress_path[] = /ping
;access.suppress_path[] = /health_check.php

; The log file for slow requests
; Default Value: not set
; Note: slowlog is mandatory if request_slowlog_timeout is set
;slowlog = log/$pool.log.slow

; The timeout for serving a single request after which a PHP backtrace will be
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
;request_slowlog_timeout = 0

; Depth of slow log stack trace.
; Default Value: 20
;request_slowlog_trace_depth = 20

; The timeout for serving a single request after which the worker process will
; be killed. This option should be used when the 'max_execution_time' ini option
; does not stop script execution for some reason. A value of '0' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
;request_terminate_timeout = 0

; The timeout set by 'request_terminate_timeout' ini option is not engaged after
; application calls 'fastcgi_finish_request' or when application has finished and
; shutdown functions are being called (registered via register_shutdown_function).
; This option will enable timeout limit to be applied unconditionally
; even in such cases.
; Default Value: no
;request_terminate_timeout_track_finished = no

; Set open file descriptor rlimit.
; Default Value: system defined value
;rlimit_files = 1024

; Set max core size rlimit.
; Possible Values: 'unlimited' or an integer greater or equal to 0
; Default Value: system defined value
;rlimit_core = 0

; Chroot to this directory at the start. This value must be defined as an
; absolute path. When this value is not set, chroot is not used.
; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
; of its subdirectories. If the pool prefix is not set, the global prefix
; will be used instead.
; Note: chrooting is a great security feature and should be used whenever
;       possible. However, all PHP paths will be relative to the chroot
;       (error_log, sessions.save_path, ...).
; Default Value: not set
;chroot =

; Chdir to this directory at the start.
; Note: relative path can be used.
; Default Value: current directory or / when chroot
;chdir = /var/www

; Redirect worker stdout and stderr into main error log. If not set, stdout and
; stderr will be redirected to /dev/null according to FastCGI specs.
; Note: on highloaded environment, this can cause some delay in the page
; process time (several ms).
; Default Value: no
;catch_workers_output = yes

; Decorate worker output with prefix and suffix containing information about
; the child that writes to the log and if stdout or stderr is used as well as
; log level and time. This options is used only if catch_workers_output is yes.
; Settings to "no" will output data as written to the stdout or stderr.
; Default value: yes
;decorate_workers_output = no

; Clear environment in FPM workers
; Prevents arbitrary environment variables from reaching FPM worker processes
; by clearing the environment in workers before env vars specified in this
; pool configuration are added.
; Setting to "no" will make all environment variables available to PHP code
; via getenv(), $_ENV and $_SERVER.
; Default Value: yes
;clear_env = no

; Limits the extensions of the main script FPM will allow to parse. This can
; prevent configuration mistakes on the web server side. You should only limit
; FPM to .php extensions to prevent malicious users to use other extensions to
; execute php code.
; Note: set an empty value to allow all extensions.
; Default Value: .php
;security.limit_extensions = .php .php3 .php4 .php5 .php7

; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
; the current environment.
; Default Value: clean env
;env[HOSTNAME] = $HOSTNAME
;env[PATH] = /usr/local/bin:/usr/bin:/bin
;env[TMP] = /tmp
;env[TMPDIR] = /tmp
;env[TEMP] = /tmp

; Additional php.ini defines, specific to this pool of workers. These settings
; overwrite the values previously defined in the php.ini. The directives are the
; same as the PHP SAPI:
;   php_value/php_flag             - you can set classic ini defines which can
;                                    be overwritten from PHP call 'ini_set'.
;   php_admin_value/php_admin_flag - these directives won't be overwritten by
;                                     PHP call 'ini_set'
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.

; Defining 'extension' will load the corresponding shared extension from
; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
; overwrite previously defined php.ini values, but will append the new value
; instead.

; Note: path INI options can be relative and will be expanded with the prefix
; (pool, global or /opt/homebrew/Cellar/[email protected]/8.3.15)

; Default Value: nothing is defined by default except the values in php.ini and
;                specified at startup with the -d argument
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]
;php_flag[display_errors] = off
;php_admin_value[error_log] = /var/log/fpm-php.www.log
;php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 32M

catch_workers_output = yes
php_flag[display_errors] = On
php_admin_value[error_log] = /var/log/fpm-php.www.log 
slowlog = /var/log/fpm-php.slow.log 
php_admin_flag[log_errors] = On
php_admin_value[memory_limit] = 1024M
request_slowlog_timeout = 10
php_admin_value[upload_max_filesize] = 100M
php_admin_value[post_max_size] = 100M

@leenaliha
Copy link
Author

I reinstalled macOS LEMP and went through the installation process again, but the issue persisted, likely due to nginx configuration settings.

I performed a fresh WordPress installation directly into the root directory of the project at /var/www/project using the same environment (macOS LEMP as provided by you). It’s now working as expected.

Additionally, while trying Dudestack, I had to hardcode the .env variables into /askvars.sh to ensure the WordPress installation was successful. Without this, the installation was failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant