Your Panel file permissions are incorrect. You skipped or made a mistake with the chown user:group command. This is covered in our installation guide here: https://pterodactyl.io/panel/1.0/getting_started.html#set-permissions
Remember to also chmod your storage with cd /var/www/pterodactyl/ && chmod -R 755 storage/* bootstrap/cache/
#Weird PHP permissions problem...
51 messages · Page 1 of 1 (latest)
It's all set correctly, matching my nginx.conf user "ngninx".
Tried different PHP versions, re-installed three times
Always same problem
Please please help me, I'm out of ideas 🙏
Please explain the issue you're experiencing in as much detail as possible. Preferably with error messages in a text format or paste link to logs. Nobody can assist you without information that helps to understand the issue. Help us help you. Messages such as "doesn't work" or "i need help" will most likely be ignored.
try that one:
cd /var/www/pterodactyl
chown -R www-data:www-data /var/www/pterodactyl/*
regarding nginx.conf using user=nginx?
shouldnt even have an www-data user without apache, but I'll try later
www-data is also for nginx
chown: invalid user: ‘www-data:www-data’
check which user is using nginx
ps aux|grep nginx|grep -v grep
nginx 32074 0.2 2.8 499180 104624 ? Ss 21:23 0:00 /usr/bin/php /var/www/pelican/artisan queue:work --tries=3
root 32129 0.0 0.0 12068 1884 ? Ss 21:24 0:00 nginx: master process /usr/sbin/nginx
nginx 32130 0.0 0.1 16488 6472 ? S 21:24 0:00 nginx: worker process
nginx 32131 0.0 0.1 16488 5552 ? S 21:24 0:00 nginx: worker process
nginx 32132 0.0 0.1 16488 5552 ? S 21:24 0:00 nginx: worker process
nginx 32133 0.0 0.1 16488 5552 ? S 21:24 0:00 nginx: worker process
also checked every other process
everything related to it running as nginx
expect redis-server running as redis
but that should be normal
and all data in var/www/pterodactyl is owned by nginx?
otherwise just delete every log and gernerate new ones
rm -r /var/www/pterodactyl/storage/logs/*
jep
already did that
also did chache:clear
also deleting every log file
nothing...
@smoky meteor
Your posts show some parts of your setup targeting /var/www/pterodactyl, in your logs and some targeting /var/www/pelican, like your queue worker. Whichever one you decided to go with, I'd go through every file mentioned in the setup docs and make sure it's pointing to the right path.
@ionic crane I tried both
But both panels result in the same perms error
Also completly reinstalled os like three times
Tried it with ptero and pelican @ionic crane, but always re-installed OS before test
But always this
Also tried dif Rocky-Linux distr, Rocky-Linux 9 and 10
This is driving me nuts, I installed Ptero a couple times without any issues in the past
tried it 3x now iwth rock 10 and rocky 9
now trying rocky 8
used to use rocky 8 with ptero without any problem
the only difference is that I'm installing it in UEFI and host-cpu
but that shouldnt be a reason for permission problems
inside working linux
2026/01/23 12:10:22 [error] 99508#0: *3 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/pelican/storage/logs/laravel-2026-01-23.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: file_put_contents(/var/www/pelican/storage/framework/views/e6ce67742db9b6ae2aa4e7cb85211ef0.php): Failed to open stream: Permission denied
Context: {"exception":{}} in /var/www/pelican/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:164
Stack trace:
#0 /var/www/pelican/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(113): Monolog\Handler\StreamHandler->write()
#1 /var/www/pelican/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(44): Monolog\Handler\RotatingFileHandler->write()
#2 /var/www/pelican/vendor/monolog/monolog/src/Monolog/Logger.php(391): Monolog\Handler\AbstractProcessingHandler->handle()
#3 /var/www/pelican/vendor/monolog/monolog/src/Monolog/Logger.php(646): Monolog\Logge...; PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/pelican/storage/logs/laravel-2026-01-23.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: file_put_contents(/var/www/pelican/storage/framework/views/e6ce67742db9b6ae2aa4e7cb85211ef0.php): Failed to open stream: Permission denied
Context: {"exception":{}} in /var/www/pelican/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:164
Your Panel file permissions are incorrect. You skipped or made a mistake with the chown user:group command. This is covered in our installation guide here: https://pterodactyl.io/panel/1.0/getting_started.html#set-permissions
Remember to also chmod your storage with cd /var/www/pterodactyl/ && chmod -R 755 storage/* bootstrap/cache/
but this is pelican now o.o
chown -R nginx:nginx /var/www/pelican/*
~~ might be relevant TBH ~~
nvm it was about mounted fs. unless you have mounted a directory.
nap
ye, did the last re-install with pelican
I don‘t know what it is/was
but the installation with the pelican-script from this one guy is working
maybe some redis / php-fpm combination