Open TomoakiNagahara opened 1 year ago
http://localhost:8082/op/skeleton/2022/index.php
to match the following conditions:
location ~ \.php$ {
root /www/localhost/;
fastcgi_pass 127.0.0.1:9082;
fastcgi_index index.php;
include fastcgi.conf;
}
# Application root
location /op/skeleton/2022/ {
# Inside location at location
location ~ \.php$ {
try_files null @app-skeleton;
}
# Inaccessible pages
location ~ ([^\w]\.ht>|/op/skeleton/2022/asset/) {
error_page 403 @app-skeleton;
deny all;
}
# Other pages
location /op/skeleton/2022/ {
try_files null @app-skeleton;
}
}
# Transfer to onepiece-framework app-skeleton
location @app-skeleton {
# Include default fastcgi_params settings.
include fastcgi.conf;
root /www/localhost;
fastcgi_pass 127.0.0.1:9082;
# Overwrite fastcgi_params file settings.
fastcgi_param SCRIPT_FILENAME $document_root/op/skeleton/2022/app.php;
fastcgi_param PHP_VALUE "catch_workers_output=no; display_errors=on";
fastcgi_param REDIRECT_STATUS $status;
}
Fatal error: Uncaught Error: Class 'OP\Env' not found in Notice.class.php #40
Bootstrap init missing.
Session start failed.
Did not dispatch to app.php