First ever GRAV site: Only displays blank page. Can't find the problem

I am n00b with web server stuff and this is my first time setting up GRAV.

For installation I followed the first option of downloading the grav+admin zip file from the documentation.

My GRAV site just displays a blank page. phpinfo() works with no issue.



$ php -v
PHP 8.0.9 (cli) (built: Jul 30 2021 13:09:07) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.9, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.9, Copyright (c), by Zend Technologies
$ php --ini
Configuration File (php.ini) Path: /etc/php/8.0/cli
Loaded Configuration File:         /etc/php/8.0/cli/php.ini
Scan for additional .ini files in: /etc/php/8.0/cli/conf.d
Additional .ini files parsed:      /etc/php/8.0/cli/conf.d/10-mysqlnd.ini,


$ sudo systemctl status php8.0-fpm
● php8.0-fpm.service - The PHP 8.0 FastCGI Process Manager
   Loaded: loaded (/lib/systemd/system/php8.0-fpm.service; enabled; vendor pre
   Active: active (running) since Thu 2021-08-12 15:26:00 IST; 25min ago
     Docs: man:php-fpm8.0(8)
  Process: 18158 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run
 Main PID: 18153 (php-fpm8.0)
   Status: "Processes active: 0, idle: 4, Requests: 6, slow: 0, Traffic: 0req/
    Tasks: 5 (limit: 1150)
   Memory: 25.0M
   CGroup: /system.slice/php8.0-fpm.service
           ├─18153 php-fpm: master process (/etc/php/8.0/fpm/php-fpm.conf)
           ├─18154 php-fpm: pool pb
           ├─18155 php-fpm: pool pb
           ├─18156 php-fpm: pool www
           └─18157 php-fpm: pool www

Aug 12 15:25:59 localhost systemd[1]: Starting The PHP 8.0 FastCGI Process Man
Aug 12 15:26:00 localhost systemd[1]: Started The PHP 8.0 FastCGI Process Mana
/etc/php/8.0/fpm/pool.d$ head -n 24 pb.conf | tail -n 2
user = caddy
group = caddy

/etc/php/8.0/fpm/pool.d$ cat pb.conf | grep 'listen ='
listen = /run/php/php8.0-fpm-pb.sock
;pm.status_listen =


#personal blog

domain.tld {
tls internal
encode gzip

root * /srv/pb

php_fastcgi unix//run/php/php8.0-fpm-pb.sock

# Begin - Security
# deny all direct access for these folders
rewrite /(\.git|cache|bin|logs|backups|tests)/.* /403

# deny running scripts inside core system folders
rewrite /(system|vendor)/.*\.(txt|xml|md|html|yaml|yml|php|pl|py|cgi|twig|sh|$

# deny running scripts inside user folder
rewrite /user/.*\.(txt|md|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ /403

# deny access to specific files in the root folder
rewrite /(LICENSE\.txt|composer\.lock|composer\.json|nginx\.conf|web\.config|$

respond /403 403
## End - Security

# global rewrite should come last.
try_files {path} {path}/ /index.php?_url={uri}&{query}

I can’t figure out where to look for errors… Please help me.

@pr0m3th3u5, Infra is not my area of expertise, but I do know this issue has come up quite a few times on the forum. You might try searching for blank here on the forum.

I believe the most common cause is permission related, especially the ownership of files.

Yep, it seems ownership is the issue. Followed the permissions section in the docs and it works now!